Mercurial > libavcodec.hg
comparison avcodec.h @ 4567:f0138063c568 libavcodec
Move the Doxygen function documentation unaltered from libavcodec/utils.c to
libavcodec/avcodec.h.
author | takis |
---|---|
date | Thu, 22 Feb 2007 19:05:44 +0000 |
parents | 1cb0cac7b19d |
children | ad50768a5b57 |
comparison
equal
deleted
inserted
replaced
4566:1cb0cac7b19d | 4567:f0138063c568 |
---|---|
2698 * used or zero if no frame could be decompressed. | 2698 * used or zero if no frame could be decompressed. |
2699 */ | 2699 */ |
2700 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, | 2700 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, |
2701 int *got_picture_ptr, | 2701 int *got_picture_ptr, |
2702 uint8_t *buf, int buf_size); | 2702 uint8_t *buf, int buf_size); |
2703 | |
2704 /* decode a subtitle message. return -1 if error, otherwise return the | |
2705 *number of bytes used. If no subtitle could be decompressed, | |
2706 *got_sub_ptr is zero. Otherwise, the subtitle is stored in *sub. */ | |
2703 int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub, | 2707 int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub, |
2704 int *got_sub_ptr, | 2708 int *got_sub_ptr, |
2705 const uint8_t *buf, int buf_size); | 2709 const uint8_t *buf, int buf_size); |
2706 int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata, | 2710 int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata, |
2707 int *data_size_ptr, | 2711 int *data_size_ptr, |
2748 | 2752 |
2749 int avcodec_close(AVCodecContext *avctx); | 2753 int avcodec_close(AVCodecContext *avctx); |
2750 | 2754 |
2751 void avcodec_register_all(void); | 2755 void avcodec_register_all(void); |
2752 | 2756 |
2757 /** | |
2758 * Flush buffers, should be called when seeking or when switching to a different stream. | |
2759 */ | |
2753 void avcodec_flush_buffers(AVCodecContext *avctx); | 2760 void avcodec_flush_buffers(AVCodecContext *avctx); |
2754 | 2761 |
2755 void avcodec_default_free_buffers(AVCodecContext *s); | 2762 void avcodec_default_free_buffers(AVCodecContext *s); |
2756 | 2763 |
2757 /* misc useful functions */ | 2764 /* misc useful functions */ |
2874 extern AVBitStreamFilter mp3_header_decompress_bsf; | 2881 extern AVBitStreamFilter mp3_header_decompress_bsf; |
2875 extern AVBitStreamFilter mjpega_dump_header_bsf; | 2882 extern AVBitStreamFilter mjpega_dump_header_bsf; |
2876 | 2883 |
2877 | 2884 |
2878 /* memory */ | 2885 /* memory */ |
2886 | |
2887 /** | |
2888 * realloc which does nothing if the block is large enough | |
2889 */ | |
2879 void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size); | 2890 void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size); |
2891 | |
2880 /* for static data only */ | 2892 /* for static data only */ |
2881 /* call av_free_static to release all staticaly allocated tables */ | 2893 |
2894 /** | |
2895 * free all static arrays and reset pointers to 0. | |
2896 * call av_free_static to release all staticaly allocated tables | |
2897 */ | |
2882 void av_free_static(void); | 2898 void av_free_static(void); |
2899 | |
2900 /** | |
2901 * allocation of static arrays - do not use for normal allocation. | |
2902 */ | |
2883 void *av_mallocz_static(unsigned int size); | 2903 void *av_mallocz_static(unsigned int size); |
2904 | |
2905 /** | |
2906 * same as above, but does realloc | |
2907 */ | |
2884 void *av_realloc_static(void *ptr, unsigned int size); | 2908 void *av_realloc_static(void *ptr, unsigned int size); |
2885 | 2909 |
2886 void img_copy(AVPicture *dst, const AVPicture *src, | 2910 void img_copy(AVPicture *dst, const AVPicture *src, |
2887 int pix_fmt, int width, int height); | 2911 int pix_fmt, int width, int height); |
2888 | 2912 |