diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2014-02-11 21:12:23 -0800 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2014-02-11 21:12:23 -0800 |
commit | 70d9664fb25946afb062e674b365ea7a5348869d (patch) | |
tree | 834a2c70aaa8697696f01a97b705cf74aa758275 /examples/decode_with_drops.c | |
parent | 9453c6472630cf1485161ef7499e658f5c378ceb (diff) | |
download | libvpx-70d9664fb25946afb062e674b365ea7a5348869d.tar libvpx-70d9664fb25946afb062e674b365ea7a5348869d.tar.gz libvpx-70d9664fb25946afb062e674b365ea7a5348869d.tar.bz2 libvpx-70d9664fb25946afb062e674b365ea7a5348869d.zip |
Adding API to get vpx encoder/decoder interface.
Change-Id: I137e5e6585356792913e1e84da6c0a439c5153a5
Diffstat (limited to 'examples/decode_with_drops.c')
-rw-r--r-- | examples/decode_with_drops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/decode_with_drops.c b/examples/decode_with_drops.c index e8fc0766b..c6f7d43b9 100644 --- a/examples/decode_with_drops.c +++ b/examples/decode_with_drops.c @@ -76,7 +76,7 @@ int main(int argc, char **argv) { int frame_cnt = 0; FILE *outfile = NULL; vpx_codec_ctx_t codec; - vpx_codec_iface_t *iface = NULL; + const VpxInterface *decoder = NULL; VpxVideoReader *reader = NULL; const VpxVideoInfo *info = NULL; int n = 0; @@ -104,13 +104,13 @@ int main(int argc, char **argv) { info = vpx_video_reader_get_info(reader); - iface = get_codec_interface(info->codec_fourcc); - if (!iface) + decoder = get_vpx_decoder_by_fourcc(info->codec_fourcc); + if (!decoder) die("Unknown input codec."); - printf("Using %s\n", vpx_codec_iface_name(iface)); + printf("Using %s\n", vpx_codec_iface_name(decoder->interface())); - if (vpx_codec_dec_init(&codec, iface, NULL, 0)) + if (vpx_codec_dec_init(&codec, decoder->interface(), NULL, 0)) die_codec(&codec, "Failed to initialize decoder."); while (vpx_video_reader_read_frame(reader)) { |