[MPlayer-users] About main loop of mplayer
Kwon, Owen
owen.kwon at intel.com
Mon Dec 22 04:20:36 CET 2008
Hello
I am conducting an experiment on power saving using mplayer. Following is my brief opinion on mplayer main loop. I don't have much experience in multimedia player, so the concern may not be valid.
About saving power during playback
- The main loop seems to wake up and decode audio data by the size of sound device buffer. In some HW platforms, decoding as many chunk of frames and idling longer saves power.
About use of multi thread
- Related to above opinion, creating separte thread for filling audio and video buffer, and using kind of watermark to manage the size of decoded buffer may be an idea, I think. The main loop may just sync timing and output the decoded frames to output devices. I don't know how does mplayer make use of multithreading enough.
Thanks,
Owen
More information about the MPlayer-users
mailing list