Newer
Older
Michael Niedermayer
committed
AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size, int keyframe);
void av_bitstream_filter_close(AVBitStreamFilterContext *bsf);
extern AVBitStreamFilter dump_extradata_bsf;
extern AVBitStreamFilter remove_extradata_bsf;
extern AVBitStreamFilter mp3_header_compress_bsf;
extern AVBitStreamFilter mp3_header_decompress_bsf;
Baptiste Coudurier
committed
extern AVBitStreamFilter mjpega_dump_header_bsf;
Baptiste Coudurier
committed
extern AVBitStreamFilter imx_dump_header_bsf;
Michael Niedermayer
committed
Panagiotis Issaris
committed
/**
* Reallocates the given block if it is not large enough, otherwise it
* does nothing.
*
* @see av_realloc
Panagiotis Issaris
committed
*/
void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
Panagiotis Issaris
committed
/* for static data only */
Panagiotis Issaris
committed
/**
* Frees all static arrays and reset their pointers to 0.
* Call this function to release all statically allocated tables.
Panagiotis Issaris
committed
*/
attribute_deprecated void av_free_static(void);
Panagiotis Issaris
committed
/**
* Allocation of static arrays.
*
* @warning Do not use for normal allocation.
*
* @param[in] size The amount of memory you need in bytes.
* @return Block of memory of the requested size.
Panagiotis Issaris
committed
*/
attribute_deprecated void *av_mallocz_static(unsigned int size);
Panagiotis Issaris
committed
Panagiotis Issaris
committed
/**
* Copy image 'src' to 'dst'.
*/
Panagiotis Issaris
committed
void av_picture_copy(AVPicture *dst, const AVPicture *src,
int pix_fmt, int width, int height);
Panagiotis Issaris
committed
/**
* Crop image top and left side
*/
Panagiotis Issaris
committed
int av_picture_crop(AVPicture *dst, const AVPicture *src,
int pix_fmt, int top_band, int left_band);
Panagiotis Issaris
committed
/**
* Pad image
*/
Panagiotis Issaris
committed
int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt,
int padtop, int padbottom, int padleft, int padright, int *color);
Panagiotis Issaris
committed
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
attribute_deprecated void img_copy(AVPicture *dst, const AVPicture *src,
int pix_fmt, int width, int height);
attribute_deprecated int img_crop(AVPicture *dst, const AVPicture *src,
int pix_fmt, int top_band, int left_band);
attribute_deprecated int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt,
int padtop, int padbottom, int padleft, int padright, int *color);
#endif
extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v);
/* error handling */
#if EINVAL > 0
#define AVERROR(e) (-(e)) /**< returns a negative error code from a POSIX error code, to return from library functions. */
#define AVUNERROR(e) (-(e)) /**< returns a POSIX error code from a library function error return value. */
#else
/* some platforms have E* and errno already negated. */
#define AVERROR(e) (e)
#define AVUNERROR(e) (e)
#endif
#define AVERROR_UNKNOWN AVERROR(EINVAL) /**< unknown error */
#define AVERROR_IO AVERROR(EIO) /**< i/o error */
#define AVERROR_NUMEXPECTED AVERROR(EDOM) /**< number syntax expected in filename */
#define AVERROR_INVALIDDATA AVERROR(EINVAL) /**< invalid data found */
#define AVERROR_NOMEM AVERROR(ENOMEM) /**< not enough memory */
#define AVERROR_NOFMT AVERROR(EILSEQ) /**< unknown format */
#define AVERROR_NOTSUPP AVERROR(ENOSYS) /**< operation not supported */
#ifdef __cplusplus
}
#endif