The present application relates to the technical field of
cloud computing, and specifically relates to a method for parallel decoding and rendering of a sequence of
JPEG images. The method comprises the following step: on the basis of CPU concurrent
programming, using a thread allocation policy to perform
Huffman decoding on received
JPEG images, so as to generate a sequence of frames processed in parallel. In the present application, by using CPU concurrent
programming and a thread allocation policy, the efficiency of
Huffman decoding is greatly improved and the time taken for preliminary
processing is reduced; by means of independent decoding of threads, the
throughput and efficiency are significantly improved; furthermore, in view of an isolation writing policy and a
video memory allocation policy, data is efficiently written into a GPU
video memory, thereby reducing
data operations and increasing the speed; the
parallel computing capability of a GPU makes IDCT and YUV-to-TGB conversion rapid and efficient, thereby reducing the
delay and improving the output quality; by means of a shared
video memory buffer policy, the utilization of hardware resources is optimized; and by using
OpenGL rendering, the smoothness of rendering and the visual effect are ensured. On the basis of a combination of these optimizations, the speed and quality of
image processing are significantly improved, thereby laying a
solid foundation for real-time applications.