B2G OMX video decode

From MozillaWiki
Jump to: navigation, search

Thread model

  • State machine thread
  • Decode thread
  • OMX Callback thread
B2G OMX decoding

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.

RunStateMachine

Decode thread

Decode thread

OMX Callback thread

Decode thread

References