diff options
author | John Koleszar <jkoleszar@google.com> | 2010-09-21 10:35:52 -0400 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2010-09-23 14:58:43 -0400 |
commit | fa7a55bb043a6abfc661a8d06a2611b54372fe1c (patch) | |
tree | 98090f133249c74923eed5171ad7d38f13c9294b /vp8 | |
parent | 12651b3c2b91697920c73ebb121a44e4dd767d32 (diff) | |
download | libvpx-fa7a55bb043a6abfc661a8d06a2611b54372fe1c.tar libvpx-fa7a55bb043a6abfc661a8d06a2611b54372fe1c.tar.gz libvpx-fa7a55bb043a6abfc661a8d06a2611b54372fe1c.tar.bz2 libvpx-fa7a55bb043a6abfc661a8d06a2611b54372fe1c.zip |
Add getter functions for the interface data symbols
Having these symbols be available as functions rather than data is
occasionally more convenient. Implemented this way rather than a
get-codec-by-id style to avoid creating a link-time dependency
between the encoder and the decoder.
Fixes issue #169
Change-Id: I319f281277033a5e7e3ee3b092b9a87cce2f463d
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/exports_dec | 1 | ||||
-rw-r--r-- | vp8/exports_enc | 1 | ||||
-rw-r--r-- | vp8/vp8_cx_iface.c | 2 | ||||
-rw-r--r-- | vp8/vp8_dx_iface.c | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/vp8/exports_dec b/vp8/exports_dec index f9b985c86..100ac5c27 100644 --- a/vp8/exports_dec +++ b/vp8/exports_dec @@ -1 +1,2 @@ data vpx_codec_vp8_dx_algo +text vpx_codec_vp8_dx diff --git a/vp8/exports_enc b/vp8/exports_enc index 996701113..29ff35ef7 100644 --- a/vp8/exports_enc +++ b/vp8/exports_enc @@ -1 +1,2 @@ data vpx_codec_vp8_cx_algo +text vpx_codec_vp8_cx diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c index e3f99c08d..f8a4de85b 100644 --- a/vp8/vp8_cx_iface.c +++ b/vp8/vp8_cx_iface.c @@ -1079,7 +1079,7 @@ static vpx_codec_enc_cfg_map_t vp8e_usage_cfg_map[] = #ifndef VERSION_STRING #define VERSION_STRING #endif -vpx_codec_iface_t vpx_codec_vp8_cx_algo = +CODEC_INTERFACE(vpx_codec_vp8_cx) = { "WebM Project VP8 Encoder" VERSION_STRING, VPX_CODEC_INTERNAL_ABI_VERSION, diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c index e7e535638..f19cb9a30 100644 --- a/vp8/vp8_dx_iface.c +++ b/vp8/vp8_dx_iface.c @@ -653,7 +653,7 @@ vpx_codec_ctrl_fn_map_t vp8_ctf_maps[] = #ifndef VERSION_STRING #define VERSION_STRING #endif -vpx_codec_iface_t vpx_codec_vp8_dx_algo = +CODEC_INTERFACE(vpx_codec_vp8_dx) = { "WebM Project VP8 Decoder" VERSION_STRING, VPX_CODEC_INTERNAL_ABI_VERSION, |