Use direct submit decoding for MediaCodec. Based on my profiling of a few devices, dequeueInputBuffer and queueInputBuffer don't take much time anyway. It allows us to stop our semi-busy looping which saves power. The depacketizer can avoid expensive synchronization and additional context switching which costs time and CPU cycles.

This commit is contained in:
Cameron Gutman committed 2015-03-09 01:49:52 -05:00
1 parent 899387caa1
commit 2ab67380d6
4 files changed
+56 -143

No files matched your search

Binary file not shown.