summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-07-15 23:01:51 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-07-15 23:01:51 -0700
commitf1f3d092c2b1a5c418b313eeb484beed67e194d5 (patch)
tree870fd92ca1a2bb9ab6a28cb4b6bd02ab1ad2ff9c /examples
parent998cff61652a114ed61dd392a72432fd9c5fe317 (diff)
parentf332c6305ec55fb2bc98198721696fcf0283b0ae (diff)
downloadlibvpx-f1f3d092c2b1a5c418b313eeb484beed67e194d5.tar.gz
libvpx-f1f3d092c2b1a5c418b313eeb484beed67e194d5.tar.bz2
libvpx-f1f3d092c2b1a5c418b313eeb484beed67e194d5.zip
Merge "Renames interface field in VpxInterface"
Diffstat (limited to 'examples')
-rw-r--r--examples/decode_to_md5.c4
-rw-r--r--examples/decode_with_drops.c4
-rw-r--r--examples/postproc.c4
-rw-r--r--examples/set_maps.c6
-rw-r--r--examples/simple_decoder.c4
-rw-r--r--examples/simple_encoder.c6
-rw-r--r--examples/twopass_encoder.c6
-rw-r--r--examples/vp8cx_set_ref.c6
-rw-r--r--examples/vpx_temporal_svc_encoder.c6
9 files changed, 23 insertions, 23 deletions
diff --git a/examples/decode_to_md5.c b/examples/decode_to_md5.c
index 28d1ad569..1c56303e3 100644
--- a/examples/decode_to_md5.c
+++ b/examples/decode_to_md5.c
@@ -104,9 +104,9 @@ int main(int argc, char **argv) {
if (!decoder)
die("Unknown input codec.");
- printf("Using %s\n", vpx_codec_iface_name(decoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(decoder->codec_interface()));
- if (vpx_codec_dec_init(&codec, decoder->interface(), NULL, 0))
+ if (vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0))
die_codec(&codec, "Failed to initialize decoder");
while (vpx_video_reader_read_frame(reader)) {
diff --git a/examples/decode_with_drops.c b/examples/decode_with_drops.c
index af1aa636b..a20fdac09 100644
--- a/examples/decode_with_drops.c
+++ b/examples/decode_with_drops.c
@@ -108,9 +108,9 @@ int main(int argc, char **argv) {
if (!decoder)
die("Unknown input codec.");
- printf("Using %s\n", vpx_codec_iface_name(decoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(decoder->codec_interface()));
- if (vpx_codec_dec_init(&codec, decoder->interface(), NULL, 0))
+ if (vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0))
die_codec(&codec, "Failed to initialize decoder.");
while (vpx_video_reader_read_frame(reader)) {
diff --git a/examples/postproc.c b/examples/postproc.c
index be08e920b..59c50b139 100644
--- a/examples/postproc.c
+++ b/examples/postproc.c
@@ -86,9 +86,9 @@ int main(int argc, char **argv) {
if (!decoder)
die("Unknown input codec.");
- printf("Using %s\n", vpx_codec_iface_name(decoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(decoder->codec_interface()));
- res = vpx_codec_dec_init(&codec, decoder->interface(), NULL,
+ res = vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL,
VPX_CODEC_USE_POSTPROC);
if (res == VPX_CODEC_INCAPABLE)
die_codec(&codec, "Postproc not supported by this decoder.");
diff --git a/examples/set_maps.c b/examples/set_maps.c
index 4ba38ee4d..af8c58255 100644
--- a/examples/set_maps.c
+++ b/examples/set_maps.c
@@ -193,9 +193,9 @@ int main(int argc, char **argv) {
die("Failed to allocate image.");
}
- printf("Using %s\n", vpx_codec_iface_name(encoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(encoder->codec_interface()));
- res = vpx_codec_enc_config_default(encoder->interface(), &cfg, 0);
+ res = vpx_codec_enc_config_default(encoder->codec_interface(), &cfg, 0);
if (res)
die_codec(&codec, "Failed to get default codec config.");
@@ -214,7 +214,7 @@ int main(int argc, char **argv) {
if (!(infile = fopen(argv[4], "rb")))
die("Failed to open %s for reading.", argv[4]);
- if (vpx_codec_enc_init(&codec, encoder->interface(), &cfg, 0))
+ if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0))
die_codec(&codec, "Failed to initialize encoder");
while (vpx_img_read(&raw, infile)) {
diff --git a/examples/simple_decoder.c b/examples/simple_decoder.c
index 8c150510a..33187584c 100644
--- a/examples/simple_decoder.c
+++ b/examples/simple_decoder.c
@@ -123,9 +123,9 @@ int main(int argc, char **argv) {
if (!decoder)
die("Unknown input codec.");
- printf("Using %s\n", vpx_codec_iface_name(decoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(decoder->codec_interface()));
- if (vpx_codec_dec_init(&codec, decoder->interface(), NULL, 0))
+ if (vpx_codec_dec_init(&codec, decoder->codec_interface(), NULL, 0))
die_codec(&codec, "Failed to initialize decoder.");
while (vpx_video_reader_read_frame(reader)) {
diff --git a/examples/simple_encoder.c b/examples/simple_encoder.c
index af58091ae..dc9bc06b1 100644
--- a/examples/simple_encoder.c
+++ b/examples/simple_encoder.c
@@ -207,9 +207,9 @@ int main(int argc, char **argv) {
if (keyframe_interval < 0)
die("Invalid keyframe interval value.");
- printf("Using %s\n", vpx_codec_iface_name(encoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(encoder->codec_interface()));
- res = vpx_codec_enc_config_default(encoder->interface(), &cfg, 0);
+ res = vpx_codec_enc_config_default(encoder->codec_interface(), &cfg, 0);
if (res)
die_codec(&codec, "Failed to get default codec config.");
@@ -227,7 +227,7 @@ int main(int argc, char **argv) {
if (!(infile = fopen(infile_arg, "rb")))
die("Failed to open %s for reading.", infile_arg);
- if (vpx_codec_enc_init(&codec, encoder->interface(), &cfg, 0))
+ if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0))
die_codec(&codec, "Failed to initialize encoder");
while (vpx_img_read(&raw, infile)) {
diff --git a/examples/twopass_encoder.c b/examples/twopass_encoder.c
index 8bca18c7e..369b1d890 100644
--- a/examples/twopass_encoder.c
+++ b/examples/twopass_encoder.c
@@ -168,9 +168,9 @@ int main(int argc, char **argv) {
if (!writer)
die("Failed to open %s for writing", outfile_arg);
- printf("Using %s\n", vpx_codec_iface_name(encoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(encoder->codec_interface()));
- res = vpx_codec_enc_config_default(encoder->interface(), &cfg, 0);
+ res = vpx_codec_enc_config_default(encoder->codec_interface(), &cfg, 0);
if (res)
die_codec(&codec, "Failed to get default codec config.");
@@ -193,7 +193,7 @@ int main(int argc, char **argv) {
if (!(infile = fopen(infile_arg, "rb")))
die("Failed to open %s for reading", infile_arg);
- if (vpx_codec_enc_init(&codec, encoder->interface(), &cfg, 0))
+ if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0))
die_codec(&codec, "Failed to initialize encoder");
while (vpx_img_read(&raw, infile)) {
diff --git a/examples/vp8cx_set_ref.c b/examples/vp8cx_set_ref.c
index 9b6d11b28..46a40cae6 100644
--- a/examples/vp8cx_set_ref.c
+++ b/examples/vp8cx_set_ref.c
@@ -138,9 +138,9 @@ int main(int argc, char **argv) {
die("Failed to allocate image.");
}
- printf("Using %s\n", vpx_codec_iface_name(encoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(encoder->codec_interface()));
- res = vpx_codec_enc_config_default(encoder->interface(), &cfg, 0);
+ res = vpx_codec_enc_config_default(encoder->codec_interface(), &cfg, 0);
if (res)
die_codec(&codec, "Failed to get default codec config.");
@@ -157,7 +157,7 @@ int main(int argc, char **argv) {
if (!(infile = fopen(argv[3], "rb")))
die("Failed to open %s for reading.", argv[3]);
- if (vpx_codec_enc_init(&codec, encoder->interface(), &cfg, 0))
+ if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0))
die_codec(&codec, "Failed to initialize encoder");
while (vpx_img_read(&raw, infile)) {
diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c
index e4616ef69..a5f1a2705 100644
--- a/examples/vpx_temporal_svc_encoder.c
+++ b/examples/vpx_temporal_svc_encoder.c
@@ -474,7 +474,7 @@ int main(int argc, char **argv) {
if (!encoder)
die("Unsupported codec.");
- printf("Using %s\n", vpx_codec_iface_name(encoder->interface()));
+ printf("Using %s\n", vpx_codec_iface_name(encoder->codec_interface()));
width = strtol(argv[4], NULL, 0);
height = strtol(argv[5], NULL, 0);
@@ -496,7 +496,7 @@ int main(int argc, char **argv) {
}
// Populate encoder configuration.
- res = vpx_codec_enc_config_default(encoder->interface(), &cfg, 0);
+ res = vpx_codec_enc_config_default(encoder->codec_interface(), &cfg, 0);
if (res) {
printf("Failed to get config: %s\n", vpx_codec_err_to_string(res));
return EXIT_FAILURE;
@@ -574,7 +574,7 @@ int main(int argc, char **argv) {
cfg.ss_number_layers = 1;
// Initialize codec.
- if (vpx_codec_enc_init(&codec, encoder->interface(), &cfg, 0))
+ if (vpx_codec_enc_init(&codec, encoder->codec_interface(), &cfg, 0))
die_codec(&codec, "Failed to initialize encoder");
if (strncmp(encoder->name, "vp8", 3) == 0) {