B2G OMX video decode
From MozillaWiki
Contents
Thread model
- State machine thread
- Decode thread
- OMX Callback thread
State machine thread
A/V synchronisation is handled by the state machine. It examines the audio playback time and compares this to the next frame in the queue of video frames. If it is time to play the video frame it is then displayed, otherwise it schedules the state machine to run again at the time of the next frame.