Go to the documentation of this file.
45 #include "vpx_integer.h"
50 #if defined(__GNUC__) && __GNUC__
51 #define DEPRECATED __attribute__ ((deprecated))
52 #define DECLSPEC_DEPRECATED
53 #elif defined(_MSC_VER)
55 #define DECLSPEC_DEPRECATED __declspec(deprecated)
58 #define DECLSPEC_DEPRECATED
65 #define UNUSED __attribute__ ((unused))
78 #define VPX_CODEC_ABI_VERSION (2 + VPX_IMAGE_ABI_VERSION)
146 #define VPX_CODEC_CAP_DECODER 0x1
147 #define VPX_CODEC_CAP_ENCODER 0x2
148 #define VPX_CODEC_CAP_XMA 0x4
158 typedef long vpx_codec_flags_t;
159 #define VPX_CODEC_USE_XMA 0x00000001
167 typedef const struct vpx_codec_iface vpx_codec_iface_t;
228 #define VPX_VERSION_MAJOR(v) ((v>>16)&0xff)
229 #define VPX_VERSION_MINOR(v) ((v>>8)&0xff)
230 #define VPX_VERSION_PATCH(v) ((v>>0)&0xff)
233 #define vpx_codec_version_major() ((vpx_codec_version()>>16)&0xff)
236 #define vpx_codec_version_minor() ((vpx_codec_version()>>8)&0xff)
239 #define vpx_codec_version_patch() ((vpx_codec_version()>>0)&0xff)
376 #if defined(VPX_DISABLE_CTRL_TYPECHECKS) && VPX_DISABLE_CTRL_TYPECHECKS
377 # define vpx_codec_control(ctx,id,data) vpx_codec_control_(ctx,id,data)
378 # define VPX_CTRL_USE_TYPE(id, typ)
379 # define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ)
380 # define VPX_CTRL_VOID(id, typ)
392 # define vpx_codec_control(ctx,id,data) vpx_codec_control_##id(ctx,id,data)\
407 # define VPX_CTRL_USE_TYPE(id, typ) \
408 static vpx_codec_err_t \
409 vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) UNUSED;\
411 static vpx_codec_err_t \
412 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\
413 return vpx_codec_control_(ctx, ctrl_id, data);\
427 # define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ) \
428 DECLSPEC_DEPRECATED static vpx_codec_err_t \
429 vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) DEPRECATED UNUSED;\
431 DECLSPEC_DEPRECATED static vpx_codec_err_t \
432 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\
433 return vpx_codec_control_(ctx, ctrl_id, data);\
447 # define VPX_CTRL_VOID(id) \
448 static vpx_codec_err_t \
449 vpx_codec_control_##id(vpx_codec_ctx_t*, int) UNUSED;\
451 static vpx_codec_err_t \
452 vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id) {\
453 return vpx_codec_control_(ctx, ctrl_id);\
485 #define VPX_CODEC_MEM_ZERO 0x1
486 #define VPX_CODEC_MEM_WRONLY 0x2
487 #define VPX_CODEC_MEM_FAST 0x4
545 unsigned int num_maps);