Go to the documentation of this file.
45 #include "vpx_integer.h"
50 #if defined(__GNUC__) && __GNUC__
51 #define DEPRECATED __attribute__ ((deprecated))
52 #elif defined(_MSC_VER)
59 #ifndef DECLSPEC_DEPRECATED
60 #if defined(__GNUC__) && __GNUC__
61 #define DECLSPEC_DEPRECATED
62 #elif defined(_MSC_VER)
63 #define DECLSPEC_DEPRECATED __declspec(deprecated)
65 #define DECLSPEC_DEPRECATED
72 #define UNUSED __attribute__ ((unused))
85 #define VPX_CODEC_ABI_VERSION (2 + VPX_IMAGE_ABI_VERSION)
153 #define VPX_CODEC_CAP_DECODER 0x1
154 #define VPX_CODEC_CAP_ENCODER 0x2
155 #define VPX_CODEC_CAP_XMA 0x4
165 typedef long vpx_codec_flags_t;
166 #define VPX_CODEC_USE_XMA 0x00000001
174 typedef const struct vpx_codec_iface vpx_codec_iface_t;
235 #define VPX_VERSION_MAJOR(v) ((v>>16)&0xff)
236 #define VPX_VERSION_MINOR(v) ((v>>8)&0xff)
237 #define VPX_VERSION_PATCH(v) ((v>>0)&0xff)
240 #define vpx_codec_version_major() ((vpx_codec_version()>>16)&0xff)
243 #define vpx_codec_version_minor() ((vpx_codec_version()>>8)&0xff)
246 #define vpx_codec_version_patch() ((vpx_codec_version()>>0)&0xff)
383 #if defined(VPX_DISABLE_CTRL_TYPECHECKS) && VPX_DISABLE_CTRL_TYPECHECKS
384 # define vpx_codec_control(ctx,id,data) vpx_codec_control_(ctx,id,data)
385 # define VPX_CTRL_USE_TYPE(id, typ)
386 # define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ)
387 # define VPX_CTRL_VOID(id, typ)
399 # define vpx_codec_control(ctx,id,data) vpx_codec_control_##id(ctx,id,data)\
414 # define VPX_CTRL_USE_TYPE(id, typ) \
415 static vpx_codec_err_t \
416 vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) UNUSED;\
418 static vpx_codec_err_t \
419 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\
420 return vpx_codec_control_(ctx, ctrl_id, data);\
434 # define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ) \
435 DECLSPEC_DEPRECATED static vpx_codec_err_t \
436 vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) DEPRECATED UNUSED;\
438 DECLSPEC_DEPRECATED static vpx_codec_err_t \
439 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\
440 return vpx_codec_control_(ctx, ctrl_id, data);\
454 # define VPX_CTRL_VOID(id) \
455 static vpx_codec_err_t \
456 vpx_codec_control_##id(vpx_codec_ctx_t*, int) UNUSED;\
458 static vpx_codec_err_t \
459 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id) {\
460 return vpx_codec_control_(ctx, ctrl_id);\
492 #define VPX_CODEC_MEM_ZERO 0x1
493 #define VPX_CODEC_MEM_WRONLY 0x2
494 #define VPX_CODEC_MEM_FAST 0x4
552 unsigned int num_maps);