Refactor HardwareVideoDecoderTest.
Bug: webrtc:7760 Change-Id: I25d5bd83b5ca9b109b9064486caa8238d7ecd613 Reviewed-on: https://webrtc-review.googlesource.com/6841 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20268}
This commit is contained in:
committed by
Commit Bot
parent
ed23be91b8
commit
f7b5bd6a9e
@ -78,9 +78,9 @@ public class HardwareVideoEncoderTest {
|
||||
// # Mock classes
|
||||
/**
|
||||
* Mock encoder callback that allows easy verification of the general properties of the encoded
|
||||
* frame such as width and height.
|
||||
* frame such as width and height. Also used from HardwareVideoDecoderTest.
|
||||
*/
|
||||
private static class MockEncoderCallback implements VideoEncoder.Callback {
|
||||
static class MockEncoderCallback implements VideoEncoder.Callback {
|
||||
private BlockingQueue<EncodedImage> frameQueue = new LinkedBlockingQueue<>();
|
||||
|
||||
public void onEncodedFrame(EncodedImage frame, VideoEncoder.CodecSpecificInfo info) {
|
||||
@ -294,7 +294,7 @@ public class HardwareVideoEncoderTest {
|
||||
return useTextures ? generateTextureFrame(width, height) : generateI420Frame(width, height);
|
||||
}
|
||||
|
||||
private void testEncodeFrame(
|
||||
static void testEncodeFrame(
|
||||
VideoEncoder encoder, VideoFrame frame, VideoEncoder.EncodeInfo info) {
|
||||
int numTries = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user