Revision 8ab4861c libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
2700 2700
int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
2701 2701
                         int *got_picture_ptr,
2702 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 2707
int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub,
2704 2708
                            int *got_sub_ptr,
2705 2709
                            const uint8_t *buf, int buf_size);
......
2750 2754

  
2751 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 2760
void avcodec_flush_buffers(AVCodecContext *avctx);
2754 2761

  
2755 2762
void avcodec_default_free_buffers(AVCodecContext *s);
......
2876 2883

  
2877 2884

  
2878 2885
/* memory */
2886

  
2887
/**
2888
 * realloc which does nothing if the block is large enough
2889
 */
2879 2890
void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
2891

  
2880 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 2898
void av_free_static(void);
2899

  
2900
/**
2901
 * allocation of static arrays - do not use for normal allocation.
2902
 */
2883 2903
void *av_mallocz_static(unsigned int size);
2904

  
2905
/**
2906
 * same as above, but does realloc
2907
 */
2884 2908
void *av_realloc_static(void *ptr, unsigned int size);
2885 2909

  
2886 2910
void img_copy(AVPicture *dst, const AVPicture *src,

Also available in: Unified diff