Coding and decoding method and device with parameter set and electronic device
Abstract
Provided are methods and devices for encoding and decoding using parameter sets, and electronic equipment. In the method for encoding, an encoder determines parameter sets and/or virtual parameter sets for a slice, wherein the virtual parameter set is a data structure which is generated by loading information acquired from a bitstream into a syntax structure of an existing parameter set and/or a preset syntax structure and includes tool parameters and/or control parameters; and the encoder writes identification number (ID)(s) of the parameter sets and/or virtual parameter sets into a bitstream. Using the method, encoding and decoding efficiency is improved.
Claims
exact text as granted — not AI-modified1 . A method for encoding using parameter sets, comprising:
determining, by an encoder, parameter sets and/or virtual parameter sets for a slice, wherein the virtual parameter set is a data structure which is generated by loading information acquired from a bitstream into a syntax structure of an existing parameter set and/or a preset syntax structure and comprises tool parameters and/or control parameters; and writing, by the encoder, identification numbers (IDs) of the parameter sets and/or virtual parameter sets into a bitstream.
2 . The method according to claim 1 , wherein
determining, by the encoder, the parameter sets and/or virtual parameter sets for the slice comprises: judging, by the encoder, whether at least one of following conditions meets or not: tool parameters and/or control parameters for encoding current slice are the same as tool parameters and/or control parameters of the existing parameter set, the tool parameters and/or control parameters for encoding the current slice are the same as tool parameters and/or control parameters in an existing virtual parameter set; if a judgment result is positive, determining, by the encoder, the existing parameter set with the same tool parameters and/or control parameters as the parameter set for the slice, and/or determining the existing virtual parameter set with the same tool parameters and/or control parameters as the virtual parameter set for the slice; and if the judgment result is negative, employing, by the encoder, a generated parameter set as the parameter set for the slice, and/or employing a constructed virtual parameter set as the virtual parameter set for the slice; writing, by the encoder, the IDs of the parameter sets and/or virtual parameter sets into the bitstream comprises: writing, by the encoder, an ID of the parameter set with the same tool parameters and/or control parameters and/or an ID of the virtual parameter set with the same tool parameters and/or control parameters into one of following bitstreams: a Slice Header (SH) bitstream, a bitstream employing the parameter set with the same tool parameters and/or control parameters and/or a bitstream employing the virtual parameter set with the same tool parameters and/or control parameters.
3 . (canceled)
4 . The method according to claim 1 , wherein writing, by the encoder, the IDs of the parameter sets and/or virtual parameter sets into the bitstream comprises:
when the encoder identifies that the tool parameters and/or control parameters for the current encoding slice are partially but not completely the same as the tool parameters and/or control parameters of the parameter set, setting, by the encoder, a value of a syntax element corresponding to the ID of the parameter set in an SH of the current encoding slice as a first preset value, and writing the first preset value into the bitstream using an entropy coding method; and/or setting, by the encoder, a value of a syntax element corresponding to a parameter set ID of the parameter set comprising the tool parameters and/or the control parameters as a second preset value, and writing the second preset value into the bitstream using the entropy coding method; when the encoder identifies that the tool parameters and/or control parameters for the current encoding slice are completely different from the tool parameters and/or control parameters of the parameter set, generating, by the encoder, a parameter set comprising the tool parameters and/or control parameters for the current encoding slice; allocating an ID to the parameter set for the current encoding slice; and setting the value of the syntax element corresponding to the ID of the parameter set in the SH of the current encoding slice to be the ID of the generated parameter set, and writing the ID of the generated parameter set into the bitstream using the entropy coding method.
5 . The method according to claim 1 , wherein
determining, by the encoder, the parameter sets and/or virtual parameter sets for the slice comprises: judging, by the encoder, whether the tool parameters and/or control parameters for the current encoding slice are partially but not completely the same as the tool parameters and/or control parameters in the parameter sets or not, and a virtual parameter set with tool parameters and/or control parameters completely the same as the tool parameters and/or control parameters for the current encoding slice is able to be constructed or not; if a judgment result is positive, constructing, by the encoder, a virtual parameter set by loading data in the existing parameter sets as the virtual parameter set for the slice, and determining the ID of the virtual parameter set for the slice; and if the judgment result is negative, generating, by the encoder, a parameter set comprising the tool parameters and/or the control parameters, and allocating an ID to the generated parameter set; writing, by the encoder, the IDs of the parameter sets and/or virtual parameter sets into the bitstream comprises: setting, by the encoder, the value of the syntax element corresponding to the parameter set ID in the SH of the current encoding slice as the ID of the generated virtual parameter set, and writing the value into the bitstream using an entropy coding method; and/or setting, by the encoder, the value of the syntax element corresponding to the parameter set ID in the parameter set comprising the tool parameters and/or the control parameters as the ID of the virtual parameter set, and writing the ID of the generated virtual parameter set into the bitstream using the entropy coding method; or setting, by the encoder, the value of the syntax element corresponding to the parameter set ID in the SH of the current encoding slice as the ID of the generated parameter set, and writing the ID of the generated parameter set into the bitstream using the entropy coding method.
6 . (canceled)
7 . (canceled)
8 . A method for decoding using parameter sets, comprising:
generating, by a decoder, a virtual parameter set, wherein the virtual parameter set is a data structure which is generated by loading information acquired from a bitstream into a structure of an existing parameter set and/or a preset data element structure and comprises tool parameters and/or control parameters; allocating, by the decoder, an identification number (ID) to the virtual parameter set; and activating, by the decoder, the virtual parameter set according to the ID of the virtual parameter set, and configuring tool parameters and/or control parameters for slice decoding process according to parameters in the virtual parameter set.
9 . (canceled)
10 . (canceled)
11 . The method according to claim 8 , wherein
generating, by the decoder, the virtual parameter set comprises: generating, by the decoder, the virtual parameter set by loading information acquired from one or more independent elements of the bitstream into a syntax structure of the existing parameter set or a preset syntax structure, wherein the virtual parameter set comprises all and/or a part of information comprised in the one or more independent elements in the bitstream; allocating, by the decoder, the ID to the virtual parameter set comprises: allocating, by the decoder, an ID reserved for the virtual parameter set to the virtual parameter set.
12 . The method according to claim 11 , wherein generating, by the decoder, the virtual parameter set by loading the information acquired from one or more independent elements of the bitstream into the syntax structure of the existing parameter set or the preset syntax structure comprises:
decomposing, by the decoder, the ID of the parameter set directly or indirectly referred to by the slice into index numbers of the one or more independent elements for constructing the virtual parameter set according to the ID of the parameter set directly or indirectly referred to by the slice; and acquiring, by the decoder, the information from the one or more independent elements in the bitstream according to the index numbers of the one or more independent elements, and generating the virtual parameter set according to the syntax structure of the existing parameter set or the preset syntax structure.
13 .- 22 . (canceled)
23 . A device for encoding using parameter sets, wherein the device for encoding using parameter sets is applied to an encoder and comprises:
a first determination component, configured to determine parameter sets and/or virtual parameter sets for a slice, wherein the virtual parameter set is a data structure which is generated by loading information acquired from a bitstream into a data element structure of an existing parameter set and/or a preset data element structure and comprises tool parameters and/or control parameters; and a first processing component, configured to write identification numbers (IDs) of the parameter sets and/or virtual parameter sets into a bitstream.
24 . The device according to claim 23 , wherein
the first determination component comprises: a first judgment component, configured to judge whether at least one of following conditions meets or not: tool parameters and/or control parameters for encoding a current slice are the same as tool parameters and/or control parameters of the existing parameter set, the tool parameters and/or control parameters for encoding the current slice are the same as tool parameters and/or control parameters in an existing virtual parameter set; a second determination component, configured to, if a judgment result of the first judgment component is positive, determine the existing parameter set which is determined by the first judgment component to have the same tool parameters and/or control parameters as the parameter set for the slice, and/or determine the existing virtual parameter set which is determined by the first judgment component to have the same tool parameters and/or control parameters as the virtual parameter set for the slice; and a third determination component, configured to, if the judgment result of the first judgment component is negative, employ a generated parameter set as the parameter set for the slice, and/or employ a constructed virtual parameter set as the virtual parameter set for the slice; the first processing component is configured to write an ID of the parameter set which is determined by the first judgment component to have the same tool parameters and/or control parameters and/or an ID of the virtual parameter set which is determined by the first judgment component to have the same tool parameters and/or control parameters into one of following bitstreams: a Slice Header (SH) bitstream, a bitstream employing the parameter set with the same tool parameters and/or control parameters and/or a bitstream employing the virtual parameter set with the same tool parameters and/or control parameters.
25 . (canceled)
26 . The device according to claim 23 , wherein the first processing component comprises:
a second judgment component, configured to identify that the tool parameters and/or control parameters for the current encoding slice are partially but not completely the same as the tool parameters and/or control parameters of the parameter set; a first setting component, configured to set a value of a syntax element corresponding to the ID of the parameter set in an SH of the current encoding slice as a first preset value; a second processing component, configured to write the first preset value into the bitstream using an entropy coding method; and/or a second setting component, configured to set a value of a syntax element corresponding to a parameter set ID of the parameter set comprising the tool parameters and/or the control parameters as a second preset value; a third processing component, configured to write the second preset value into the bitstream using the entropy coding method; a third judgment component, configured to identify that the tool parameters and/or control parameters for the current encoding slice are completely different from the tool parameters and/or control parameters of the parameter set; a first generation component, configured to generate a parameter set comprising the tool parameters and/or control parameters for the current encoding slice; a first allocation component, configured to allocate an ID to the parameter set for the current encoding slice; a third setting component, configured to set the value of the syntax element corresponding to the ID of the parameter set in the SH of the current encoding slice to be the ID of the generated parameter set; and a fourth processing component, configured to write the ID of the generated parameter set into the bitstream using the entropy coding method.
27 . The device according to claim 23 , wherein
the first determination component comprises: a fourth judgment component, configured to judge, by the encoder, whether the tool parameters and/or control parameters for the current encoding slice are partially but not completely the same as the tool parameters and/or control parameters in the parameter set or not, and a virtual parameter set with a tool parameters and/or control parameters completely the same as the tool parameters and/or control parameters for the current encoding slice is able to be constructed or not; a fifth processing component, configured to, if a judgment result of the fourth judgment component is positive, construct, by the encoder, a virtual parameter set based on the data in the existing parameter sets as the virtual parameter set for the slice; a fourth determination component, configured to determine the ID of the virtual parameter set for the slice; a second generation component, configured to, if the judgment result of the fourth judgment component is negative, generate a parameter set comprising the tool parameters and/or the control parameters; and a second allocation component, configured to allocate an ID to the generated parameter set; the first processing component comprises: a fourth setting component, configured to set the value of the syntax element corresponding to the parameter set ID in the SH of the current encoding slice as the ID of the generated virtual parameter set; a fifth processing component, configured to write the value into the bitstream using an entropy coding method; and/or a fifth setting component, configured to set the value of the syntax element corresponding to the parameter set ID in the parameter set comprising the tool parameters and/or the control parameters as the ID of the virtual parameter set; a sixth processing component, configured to write the ID of the generated virtual parameter set into the bitstream using the entropy coding method; or a sixth setting component, configured to set the value of the syntax element corresponding to the parameter set ID in the SH of the current encoding slice as the ID of the generated parameter set; and a seventh processing component, configured to write the ID of the generated parameter set into the bitstream using the entropy coding method.
28 . (canceled)
29 . A device for decoding using parameter sets, wherein the device for decoding using parameter sets is applied to a decoder and comprises:
a third generation component, configured to generate a virtual parameter set, wherein the virtual parameter set is a data structure which is generated by loading information acquired from a bitstream into a data element structure of an existing parameter set and/or a preset data element structure and comprises tool parameters and/or control parameters; a third allocation component, configured to allocate an identification number (ID) to the virtual parameter set; a first activation component, configured to activate the virtual parameter set according to the ID of the virtual parameter set; and a first decoding component, configured to configure tool parameters and/or control parameters for slice decoding process according to parameters in the virtual parameter set.
30 . (canceled)
31 . (canceled)
32 . The device according to claim 29 , wherein
the third generation component is configured to generate the virtual parameter set by loading information acquired from one or more independent elements of the bitstream into a syntax structure of the existing parameter set or a preset syntax structure, wherein the virtual parameter set comprises all and/or a part of information comprised in the one or more independent elements in the bitstream; the third allocation component comprises: a fourth allocation component, configured to allocate an ID reserved for the virtual parameter set to the virtual parameter set.
33 . The device according to claim 32 , wherein the third generation component comprises:
a decomposition component, configured to decompose the ID of the parameter set directly or indirectly referred to by the slice into index numbers of the one or more independent elements for constructing the virtual parameter set according to the ID of the parameter set directly or indirectly referred to by the slice; and a fourth generation component, configured to acquire the information from the one or more independent elements in the bitstream according to the index numbers of the one or more independent elements, and generate the virtual parameter set according to the syntax structure of the existing parameter set or the preset syntax structure.
34 .- 41 . (canceled)Join the waitlist — get patent alerts
Track US2015249837A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.