Experimental parameter for setting a render time limit in MediaCodecRenderer
Currently, MediaCodecRenderer's render loop does not have any time limit. We always try to drain and feed as much buffers as possible. This may lead to a pattern of feeding phase takes too much time from previous loop, which makes the next draining phase drops all buffers, making these buffers available for feeding all at once, and the pattern keeps repeating. This CL adds an experimental parameter for setting a time limit. If the time limit is exceeded, the feeding process stops even if more input could be fed. The default behavior is unchanged ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=219820386
Showing
with
25 additions
and
1 deletions
Please
register
or
sign in
to comment