DescriptionReland "Prepare MediaCodecVideoEncoder for surface textures.""
This reverts commit 12f680214e28dc5f0a13ac8afc0d1445f89e67e6.
Original cl in https://codereview.webrtc.org/1396073003/
Prepare MediaCodecVideoEncoder for surface textures.
This refactors MediaVideoEncoder to prepare for adding support to encode from textures. The C++ layer does not have any functional changes.
- Moves ResetEncoder to always work on the codec thread
- Adds use of ThreadChecker.
- Change Java MediaEncoder.Init to return true or false and introduce method getInputBuffers.
- Add simple unit test for Java MediaCodecVideoEncoder.
The pure revert of the revert is in patchset 1.
Patchset 2, moves getting the input buffer to before storing pending timestamps etc to fix b/24984012.
BUG=webrtc:4993
b/24984012
Committed: https://crrev.com/9576e548368b34e150c3e6d19e889de9f0f67e96
Cr-Commit-Position: refs/heads/master@{#10622}
Patch Set 1 #Patch Set 2 : Moved getting inputbuffer to before storing pending frames. #
Total comments: 18
Patch Set 3 : Addressed review comments. #Patch Set 4 : Rebased #
Total comments: 6
Patch Set 5 : Rebased #Patch Set 6 : Addressed magjeds comments. #
Messages
Total messages: 18 (6 generated)
|