Decoding method and electronic device

JP2026520376APending Publication Date: 2026-06-23HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-05-06
Publication Date
2026-06-23

Smart Images

  • Figure 2026520376000001_ABST
    Figure 2026520376000001_ABST
Patent Text Reader

Abstract

Embodiments of this application provide a decoding method and an electronic device. The decoding method includes the steps of: first receiving a first bitstream, the first bitstream comprising a model identifier and a second bitstream, the second bitstream being generated based on an encoded signal; obtaining model information when the value of the model identifier is a preset identifier value; then performing model reconstruction based on the model information to obtain a decoded model; and decoding the second bitstream based on the decoded model to obtain a reconstructed signal. In this way, the decoding model on the decoder side and the encoding model on the encoder side are updated synchronously, or the decoding model used for decoding on the decoder side and the encoding model used for encoding on the encoder side are switched synchronously.
Need to check novelty before this filing date? Find Prior Art

Claims

1. A decoding method, The steps include receiving a first bitstream, the first bitstream comprising a model identifier and a second bitstream, the second bitstream being generated based on an encoded signal, and When the value of the aforementioned model identifier is a pre-set identifier value, the steps include obtaining model information, The steps include: performing model reconstruction based on the aforementioned model information to obtain a decoded model; The steps include decoding the second bitstream based on the decoding model to obtain a reconstructed signal, and A method that includes this.

2. When the value of the model identifier is the pre-set identifier value, the first bitstream further includes a third bitstream, the third bitstream being generated based on the model information of the decoding model. Obtaining the aforementioned model information means Parsing the third bitstream from the first bitstream, Obtaining the model information of the decoding model based on the third bitstream The method according to claim 1, including the method described in claim 1.

3. When the value of the model identifier is the pre-set identifier value, the first bitstream further includes index information corresponding to the model information of the decoding model, Obtaining the aforementioned model information means Parsing the index information corresponding to the model information of the decoding model from the first bitstream, To obtain the model information of the decoding model based on the index information corresponding to the model information of the decoding model. The method according to claim 1, including the method described in claim 1.

4. The aforementioned pre-set identifier value indicates that the model information of the decoding model is stored in a pre-set storage location within the remote electronic device. Obtaining the aforementioned model information means The method according to claim 1, comprising obtaining the model information of the decoding model from the pre-set storage location.

5. The aforementioned model identifier is an Elementary Stream (ES) field, and the method is as follows: The method according to any one of claims 1 to 4, further comprising the step of parsing a field in the first bitstream corresponding to the model identifier to obtain the value of the model identifier.

6. The target bitstream type of the first bitstream is the type of bitstream encapsulated according to the target container format or the type of bitstream encapsulated according to the target transport protocol, the model identifier is a field in the target container format, and the method is The steps include: decapsulating the first bitstream according to the target container format to obtain the field corresponding to the model identifier; The steps include: parsing the field corresponding to the model identifier to obtain the value of the model identifier; The method according to any one of claims 1 to 4, further comprising:

7. The target bitstream type of the first bitstream is the type of bitstream encapsulated according to the target transport protocol, the model identifier is a field in the target transport protocol, and the method is The steps include: decapsulating the first bitstream in accordance with the target transport protocol to obtain the field corresponding to the model identifier; The steps include: parsing the field corresponding to the model identifier to obtain the value of the model identifier; The method according to any one of claims 1 to 4, further comprising:

8. The aforementioned model identifier represents the type of the decoding model, and the method is When the value of the model identifier is the pre-configured identifier value, the further step includes determining whether or not there is a decoding model of the type corresponding to the pre-configured identifier value. Performing model reconstruction based on the aforementioned model information to obtain the decoded model is, The method according to any one of claims 1 to 7, further comprising, when no decoding model of the type corresponding to the pre-configured identifier value exists, performing a model reconstruction based on the model information to obtain the decoding model of the type corresponding to the pre-configured identifier value.

9. Parsing the third bitstream from the first bitstream is: The method according to claim 2, comprising parsing the first bitstream according to the target bitstream type of the first bitstream to obtain the third bitstream.

10. The target bitstream type is an ES type, the first bitstream further comprises a first ES packet, the first ES packet comprises the second bitstream, the third bitstream and the model identifier, Obtaining the third bitstream by parsing the first bitstream according to the target bitstream type of the first bitstream is: This includes reading the third bitstream from the first ES packet, This method is The method according to claim 9, further comprising the step of reading the second bitstream from the first ES packet.

11. The aforementioned target bitstream type is a type of bitstream encapsulated according to the target container format, Obtaining the third bitstream by parsing the first bitstream according to the target bitstream type of the first bitstream is: Decapsulating the first bitstream according to the target container format to obtain a second ES packet, Reading the third bitstream from the second ES packet and Includes, This method is The method according to claim 9, further comprising the step of reading the second bitstream from the second ES packet.

12. The aforementioned target bitstream type is a type of bitstream encapsulated according to the target container format, Obtaining the third bitstream by parsing the first bitstream according to the target bitstream type of the first bitstream is: Decapsulating the first bitstream according to the target container format to obtain a third ES packet, a fourth ES packet, the type of the third ES packet, and the type of the fourth ES packet, Reading the third bitstream from the third ES packet and Includes, The third type of ES packet is a pre-configured type. This method is The method according to claim 9, further comprising the step of reading the second bitstream from the fourth ES packet, wherein the type of the fourth ES packet is a media type.

13. The method according to claim 12, wherein the pre-configured type is a metadata type.

14. The target bitstream type is a type of bitstream encapsulated according to the target container format, wherein the first bitstream further comprises a fourth bitstream and a fifth bitstream, the fifth bitstream comprises the second bitstream, the fourth bitstream comprises the third bitstream, and the model identifier is located in the fourth bitstream or the fifth bitstream. Obtaining the third bitstream by parsing the first bitstream according to the target bitstream type of the first bitstream is: Decapsulating the fourth bitstream according to the target container format to obtain a fifth ES packet and the type of the fifth ES packet, Reading the third bitstream from the fifth ES packet and Includes, The type of the fifth ES packet is a pre-configured type. This method is The steps include decapsulating the fifth bitstream according to the target container format to obtain a sixth ES packet and the type of the sixth ES packet, The step of reading the second bitstream from the sixth ES packet, wherein the type of the sixth ES packet is a media type, and The method according to claim 9, further comprising:

15. The target bitstream type is a type of bitstream encapsulated according to a target transport protocol, wherein the first bitstream further comprises a sixth bitstream and a seventh bitstream, the seventh bitstream comprises the second bitstream, the sixth bitstream comprises the third bitstream, and the model identifier is located in the sixth bitstream or the seventh bitstream. Obtaining the third bitstream by parsing the first bitstream according to the target bitstream type of the first bitstream is: Decapsulating the first bitstream in accordance with the target transport protocol to obtain the sixth bitstream, Decapsulating the sixth bitstream according to the target container format to obtain the seventh ES packet and the type of the seventh ES packet, Reading the third bitstream from the seventh ES packet and Includes, The type of the seventh ES packet is a pre-configured type. This method is The steps include: decapsulating the seventh bitstream, which has been decapsulated from the first bitstream according to the target container format, to obtain an eighth ES packet and the type of the eighth ES packet; The step of reading the second bitstream from the eighth ES packet, wherein the type of the eighth ES packet is a media type, and The method according to claim 9, further comprising:

16. The first bitstream further includes an index file, the index file includes index information for the sixth bitstream and index information for the seventh bitstream, the index information for the sixth bitstream precedes the index information for the seventh bitstream, Decapsulating the first bitstream in accordance with the target transport protocol to obtain the sixth bitstream is: Decapsulating the first bitstream in accordance with the target transport protocol to obtain the index file and multiple bitstreams, The index information of the sixth bitstream is read from the index file, and the sixth bitstream is determined from the plurality of bitstreams based on the index information of the sixth bitstream. The method according to claim 15, including the method described in claim 15.

17. The first bitstream further includes an index file, and the attribute information of the initialization tag in the index file includes the index information of the sixth bitstream. Decapsulating the first bitstream in accordance with the target transport protocol to obtain the sixth bitstream is: Decapsulating the first bitstream according to the target transport protocol to obtain the index file and multiple bitstreams, The index information of the sixth bitstream is read from the attribute information of the initialization tag of the index file, and the sixth bitstream is determined from the plurality of bitstreams based on the index information of the sixth bitstream. The method according to claim 15, including the method described in claim 15.

18. The reconstructed signal contains M frames, M first ES packets, each of the M first ES packets contains N ninth ES packets and MN tenth ES packets, each of the ninth ES packets contains one sub-bitstream and one second bitstream, each of the tenth ES packets contains one second bitstream, M and N are positive integers, and M is greater than or equal to N. Reading the third bitstream from the first ES packet is: Reading N subbitstreams from the aforementioned N 9th ES packets, The process involves concatenating the N sub-bitstreams to obtain the third bitstream. Includes, Reading the second bitstream from the first ES packet is: The method according to claim 10, comprising reading N second bitstreams from the N ninth ES packets and using the MN tenth ES packets as MN second bitstreams.

19. Obtaining the model information of the decoding model based on the third bitstream is: Parsing the model information from the third bitstream, or Parsing the encoded data of the model information from the third bitstream, and decoding the encoded data of the model information to obtain the model information. The method according to claim 2 or any one of claims 9 to 18, including the following:

20. The method according to any one of claims 1 to 19, wherein the model information includes model structure information or model parameters.

21. A decoding device, A bitstream receiving module configured to receive a first bitstream, wherein the first bitstream includes a model identifier and a second bitstream, the second bitstream being generated based on an encoded signal, and the bitstream receiving module... A decapsulation module configured to obtain model information when the value of the model identifier is a pre-set identifier value, and a further decapsulation module configured to perform model reconstruction based on the model information to obtain a decoded model, A decoder configured to decode the second bitstream based on the aforementioned decoding model and obtain a reconstructed signal, A device that includes this.

22. An electronic device including memory and a processor, The memory is coupled to the processor. The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device becomes capable of executing the decoding method described in any one of claims 1 to 20.

23. A chip comprising one or more interface circuits and one or more processors, A chip in which one or more processors receive or transmit data via one or more interface circuits, and when one or more processors execute a computer instruction, a step of the method according to any one of claims 1 to 20 is performed.

24. A computer-readable storage medium, The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer or processor, the computer or processor is able to execute the decoding method described in any one of claims 1 to 20.

25. A computer program product, The computer program product includes a computer instruction, wherein when the computer instruction is executed by a computer or processor, the steps of the method according to any one of claims 1 to 20 are performed.