Merge "examples: use function to get iface pointers"

This commit is contained in:
Johann 2011-03-04 06:01:46 -08:00 committed by Code Review
commit e38c1680d6
5 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
#define VPX_CODEC_DISABLE_COMPAT 1 #define VPX_CODEC_DISABLE_COMPAT 1
#include "vpx/vpx_decoder.h" #include "vpx/vpx_decoder.h"
#include "vpx/vp8dx.h" #include "vpx/vp8dx.h"
#define interface (&vpx_codec_vp8_dx_algo) #define interface (vpx_codec_vp8_dx())
@EXTRA_INCLUDES @EXTRA_INCLUDES

View File

@ -2,7 +2,7 @@
#define VPX_CODEC_DISABLE_COMPAT 1 #define VPX_CODEC_DISABLE_COMPAT 1
#include "vpx/vpx_decoder.h" #include "vpx/vpx_decoder.h"
#include "vpx/vp8dx.h" #include "vpx/vp8dx.h"
#define interface (&vpx_codec_vp8_dx_algo) #define interface (vpx_codec_vp8_dx())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES

View File

@ -19,7 +19,7 @@
#define VPX_CODEC_DISABLE_COMPAT 1 #define VPX_CODEC_DISABLE_COMPAT 1
#include "vpx/vpx_encoder.h" #include "vpx/vpx_encoder.h"
#include "vpx/vp8cx.h" #include "vpx/vp8cx.h"
#define interface (&vpx_codec_vp8_cx_algo) #define interface (vpx_codec_vp8_cx())
#define fourcc 0x30385056 #define fourcc 0x30385056
@EXTRA_INCLUDES @EXTRA_INCLUDES

View File

@ -2,7 +2,7 @@
#define VPX_CODEC_DISABLE_COMPAT 1 #define VPX_CODEC_DISABLE_COMPAT 1
#include "vpx/vpx_encoder.h" #include "vpx/vpx_encoder.h"
#include "vpx/vp8cx.h" #include "vpx/vp8cx.h"
#define interface (&vpx_codec_vp8_cx_algo) #define interface (vpx_codec_vp8_cx())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ENC_INCLUDES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ENC_INCLUDES

View File

@ -33,7 +33,7 @@ Initializing The Codec
---------------------- ----------------------
The decoder is initialized by the following code. This is an example for The decoder is initialized by the following code. This is an example for
the VP8 decoder, but the code is analogous for all algorithms. Replace the VP8 decoder, but the code is analogous for all algorithms. Replace
`&vpx_codec_vp8_dx_algo` with a pointer to the interface exposed by the `vpx_codec_vp8_dx()` with a pointer to the interface exposed by the
algorithm you want to use. The `cfg` argument is left as NULL in this algorithm you want to use. The `cfg` argument is left as NULL in this
example, because we want the algorithm to determine the stream example, because we want the algorithm to determine the stream
configuration (width/height) and allocate memory automatically. This configuration (width/height) and allocate memory automatically. This