VIDEO DECODING METHOD
A video encoding method includes steps of: determining how many cores of one or more processors are capable of processing video frames; identifying a number of parallel processable frames according to types of video frames; and determining when the determination is that the number of the parallel processable frames is greater than or equal to the number of the cores of the processors which can process the video frames, frame level parallel decoding the parallel processable frames and, when the determination is that the number of the parallel processable frames is less than the number of cores of the processors, which can process video frames, retaining one parallel processable frame to be parallel decoded at a macroblock level, and the other parallel processable frames to be parallel decoded at a frame level.
1 . A video encoding method comprising:
determining how many cores of one or more processors are capable of processing video frames;
identifying a number of parallel processable frames according to types of video frames; and
determining when the determination is that the number of the parallel processable frames is greater than or equal to the number of the cores of the processors which can process the video frames, frame level parallel decoding the parallel processable frames and, when the determination is that the number of the parallel processable frames is less than the number of cores of the processors, which can process video frames, retaining one parallel processable frame to be parallel decoded at a macroblock level, and the other parallel processable frames to be parallel decoded at a frame level.
2 . The video encoding method of claim 1 , further comprising steps before the step verifying a number of cores of processors which is capable of processing video frames:
a plurality of threads of processors waiting for receiving video frames; and
determining when the determination is that a signal of processable video frames is received, processing the step determining how many cores of one or more processors are capable of processing video frames and, when the determination is that there is no signal of processable video frame is received, returning to the step waiting for receiving video frames.
3 . The video encoding method of claim 2 , further comprising a step after decoding the parallel processable frame:
determining whether there is a not decoded video frame, if yes, returning to the step determining how many cores of one or more processors are capable of processing video frames, if no, the processing is end.
4 . A video encoding method comprising:
identifying a number of parallel processable frames according to types of video frames;
determining how many cores of one or more processors are capable of processing video frames; and
determining when the determination is that the number of the parallel processable frames is greater than or equal to the number of the cores of the processors which can process the video frames, frame level parallel decoding the parallel processable frames and, when the determination is that the number of the parallel processable frames is less than the number of cores of the processors, which can process video frames, retaining one parallel processable frame to be parallel decoded at a macroblock level, and the other parallel processable frames to be parallel decoded at a frame level.
5 . The video encoding method of claim 4 , further comprising steps before the step verifying a number of parallel processable frames according to types of the video frames:
a plurality of threads of processors waiting for receiving video frames; and
determining when the determination is that a signal of processable video frames is received, processing the step identifying a number of parallel processable frames according to types of video frames and, when the determination is that there is no signal of processable video frame is received, returning to the step waiting for receiving video frames.
6 . The video encoding method of claim 4 , further comprising a step after decoding the parallel processable frame:
determining whether there is a not decoded video frame, if yes, returning to the step identifying a number of parallel processable frames according to types of video frames, if no, the processing is end.