Skip to content
Snippets Groups Projects
avcodec.h 93.6 KiB
Newer Older
  • Learn to ignore specific revisions
  •                                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 noise_bsf;
    
    extern AVBitStreamFilter mp3_header_compress_bsf;
    extern AVBitStreamFilter mp3_header_decompress_bsf;
    
    extern AVBitStreamFilter mjpega_dump_header_bsf;
    
    extern AVBitStreamFilter imx_dump_header_bsf;
    
    /* memory */
    
     * Reallocates the given block if it is not large enough, otherwise it
     * does nothing.
     *
     * @see av_realloc
    
    void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
    
     * Frees all static arrays and reset their pointers to 0.
     * Call this function to release all statically allocated tables.
    
    attribute_deprecated void av_free_static(void);
    
     * 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.
    
    attribute_deprecated void *av_mallocz_static(unsigned int size);
    
    void av_picture_copy(AVPicture *dst, const AVPicture *src,
    
                  int pix_fmt, int width, int height);
    
    
    int av_picture_crop(AVPicture *dst, const AVPicture *src,
    
                 int pix_fmt, int top_band, int left_band);
    
    
    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);
    
    
    #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
    
    
    Fabrice Bellard's avatar
    Fabrice Bellard committed
    #endif /* AVCODEC_H */