1.VTC:
Get the arguments from the user
each VOL is stored in a separate bitstream
2. Allocate memory
Allocate memory for the display_vop which is used for composition purposes
程式碼說明:
留下記憶體給VOP
display_vop =AllocVop(display_width,display_height,0);
安排給VOP每一個像素多少位元
PutVopBitsPerPixel(bits_per_pixel, display_vop);
3. Calculate the time between two frames to be displayed in ms
4. Trace capabilities
The settings by the users should be done at the top of this file!
Please DO NOT MODIFY any values below here !
這部分的程式碼有
Level 1 data
Level 2 data
Level 3 data
這些分別描述影像的YUV
5. Initializations
Random access
Scalability
SA-IDCT
6. decode
Process all bitstreams in parallel,
decode each VOL of each VO and compose
then the respective image to be displayed out
Then again decode each VOL of each VO up to the next display time etc.
7. Freeing of display_vop, VOLs, bitstream structures and trace files
圖4.3 MPEG4 decoder 的流程圖