mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
05b11eda62
Reading large MP3 files from a slow medium, such as an SD card, takes several seconds. This is too long for interactive applications like the music app. With this patch, the OmxDecoder reads large MP3 file in smaller chunks and hands over each chunk individually to the MP3 parser. Reading the file is done in the I/O thread, which is allowed to block, parsing is done on the main thread. The current chunk size is 8 MiB, which is small enough to not cause any delay. |
||
---|---|---|
.. | ||
mediaresourcemanager | ||
Makefile.in | ||
MediaOmxDecoder.cpp | ||
MediaOmxDecoder.h | ||
MediaOmxReader.cpp | ||
MediaOmxReader.h | ||
MediaOmxStateMachine.h | ||
moz.build | ||
MP3FrameParser.cpp | ||
MP3FrameParser.h | ||
MPAPI.h | ||
OMXCodecProxy.cpp | ||
OMXCodecProxy.h | ||
OmxDecoder.cpp | ||
OmxDecoder.h |