Preliminary support of VP9 HW encoder on Android.

Not fully tested yet. Verified in test loopback application
with fake VP9 codec factory.
Assume that encoder generates bitstream in non flexible mode with
one temporal and one spatial layers.

R=magjed@webrtc.org

Review URL: https://codereview.webrtc.org/1451953002 .

Cr-Commit-Position: refs/heads/master@{#10695}
This commit is contained in:
Alex Glaznev
2015-11-18 13:06:42 -08:00
parent 2557b86e76
commit ad948c42a1
3 changed files with 65 additions and 8 deletions

View File

@ -856,7 +856,7 @@ void MediaCodecVideoDecoderFactory::SetEGLContext(
webrtc::VideoDecoder* MediaCodecVideoDecoderFactory::CreateVideoDecoder(
VideoCodecType type) {
if (supported_codec_types_.empty()) {
ALOGE << "No HW video decoder for type " << (int)type;
ALOGW << "No HW video decoder for type " << (int)type;
return NULL;
}
for (VideoCodecType codec_type : supported_codec_types_) {
@ -866,7 +866,7 @@ webrtc::VideoDecoder* MediaCodecVideoDecoderFactory::CreateVideoDecoder(
AttachCurrentThreadIfNeeded(), type, render_egl_context_);
}
}
ALOGE << "Can not find HW video decoder for type " << (int)type;
ALOGW << "Can not find HW video decoder for type " << (int)type;
return NULL;
}