Go to the documentation of this file.
46 #include "vpx_integer.h"
51 #if defined(__GNUC__) && __GNUC__
52 #define DEPRECATED __attribute__ ((deprecated))
53 #elif defined(_MSC_VER)
60 #ifndef DECLSPEC_DEPRECATED
61 #if defined(__GNUC__) && __GNUC__
62 #define DECLSPEC_DEPRECATED
63 #elif defined(_MSC_VER)
64 #define DECLSPEC_DEPRECATED __declspec(deprecated)
66 #define DECLSPEC_DEPRECATED
73 #define UNUSED __attribute__ ((unused))
86 #define VPX_CODEC_ABI_VERSION (2 + VPX_IMAGE_ABI_VERSION)
154 #define VPX_CODEC_CAP_DECODER 0x1
155 #define VPX_CODEC_CAP_ENCODER 0x2
156 #define VPX_CODEC_CAP_XMA 0x4
166 typedef long vpx_codec_flags_t;
167 #define VPX_CODEC_USE_XMA 0x00000001
175 typedef const struct vpx_codec_iface vpx_codec_iface_t;
234 #define VPX_VERSION_MAJOR(v) ((v>>16)&0xff)
235 #define VPX_VERSION_MINOR(v) ((v>>8)&0xff)
236 #define VPX_VERSION_PATCH(v) ((v>>0)&0xff)
239 #define vpx_codec_version_major() ((vpx_codec_version()>>16)&0xff)
242 #define vpx_codec_version_minor() ((vpx_codec_version()>>8)&0xff)
245 #define vpx_codec_version_patch() ((vpx_codec_version()>>0)&0xff)
382 #if defined(VPX_DISABLE_CTRL_TYPECHECKS) && VPX_DISABLE_CTRL_TYPECHECKS
383 # define vpx_codec_control(ctx,id,data) vpx_codec_control_(ctx,id,data)
384 # define VPX_CTRL_USE_TYPE(id, typ)
385 # define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ)
386 # define VPX_CTRL_VOID(id, typ)
398 # define vpx_codec_control(ctx,id,data) vpx_codec_control_##id(ctx,id,data)\
413 # define VPX_CTRL_USE_TYPE(id, typ) \
414 static vpx_codec_err_t \
415 vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) UNUSED;\
417 static vpx_codec_err_t \
418 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\
419 return vpx_codec_control_(ctx, ctrl_id, data);\
433 # define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ) \
434 DECLSPEC_DEPRECATED static vpx_codec_err_t \
435 vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) DEPRECATED UNUSED;\
437 DECLSPEC_DEPRECATED static vpx_codec_err_t \
438 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\
439 return vpx_codec_control_(ctx, ctrl_id, data);\
453 # define VPX_CTRL_VOID(id) \
454 static vpx_codec_err_t \
455 vpx_codec_control_##id(vpx_codec_ctx_t*, int) UNUSED;\
457 static vpx_codec_err_t \
458 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id) {\
459 return vpx_codec_control_(ctx, ctrl_id);\
490 #define VPX_CODEC_MEM_ZERO 0x1
491 #define VPX_CODEC_MEM_WRONLY 0x2
492 #define VPX_CODEC_MEM_FAST 0x4
550 unsigned int num_maps);