US 12,222,804 B2
Encoding and decoding method, apparatus and device based on erasure pool, and storage medium
Xinliang Zhang, Shandong (CN)
Assigned to SHANDONG YINGXIN COMPUTER TECHNOLOGIES CO., LTD., Shandong (CN)
Appl. No. 18/271,437
Filed by SHANDONG YINGXIN COMPUTER TECHNOLOGIES CO., LTD., Shandong (CN)
PCT Filed Feb. 28, 2022, PCT No. PCT/CN2022/078231
§ 371(c)(1), (2) Date Jul. 7, 2023,
PCT Pub. No. WO2022/199328, PCT Pub. Date Sep. 29, 2022.
Claims priority of application No. 202110325954.X (CN), filed on Mar. 26, 2021.
Prior Publication US 2024/0061743 A1, Feb. 22, 2024
Int. Cl. G06F 11/00 (2006.01); G06F 11/10 (2006.01); G06F 11/32 (2006.01)
CPC G06F 11/1044 (2013.01) [G06F 11/327 (2013.01); G06F 11/328 (2013.01)] 19 Claims
OG exemplary drawing
 
1. An encoding and decoding method based on an erasure pool, comprising:
storing by a processing process which is run in the erasure pool, upon receiving original data that needs to be subjected to data encoding and decoding by the processing process, the original data into a shared memory;
sending an encoding and decoding signal to an encoding and decoding process by the processing process, so that the encoding and decoding process obtains the original data from the shared memory after receiving the encoding and decoding signal, and calls a hard codec plug-in to perform a hard encoding and decoding operation;
controlling by the processing process, in a case that a failure or hot plugging occurs to the accelerator chip, which will lead to a failure of the encoding and decoding operation, the encoding and decoding process to call a soft codec plug-in to perform a soft encoding and decoding operation; and
obtaining by the processing process, after the encoding and decoding process completes the encoding and decoding operation, an encoding and decoding result from the shared memory,
wherein the encoding and decoding process obtaining the original data from the shared memory after receiving the encoding and decoding signal, and calling the hard codec plug-in to perform the hard encoding and decoding operation specifically comprises:
obtaining, by the encoding and decoding process, the original data from the shared memory after receiving the encoding and decoding signal; and
calling, by the encoding and decoding process, a driver API of an accelerator chip by calling a hard codec plug-in interface, and calling a corresponding encoding and decoding function to perform the hard encoding and decoding operation by utilizing the accelerator chip.