| CPC G06F 11/1044 (2013.01) [G06F 11/327 (2013.01); G06F 11/328 (2013.01)] | 19 Claims |

|
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.
|