comparison avcodec.h @ 6941:da73a98945ea libavcodec

Move *_static to bitstream.c which is the only file left which needs them.
author michael
date Fri, 30 May 2008 21:12:33 +0000
parents be1b0a6ee19a
children de032bcdeff9
comparison
equal deleted inserted replaced
6940:778ecab25dd8 6941:da73a98945ea
2916 * 2916 *
2917 * @see av_realloc 2917 * @see av_realloc
2918 */ 2918 */
2919 void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size); 2919 void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
2920 2920
2921 /* for static data only */
2922
2923 /**
2924 * Frees all static arrays and resets their pointers to 0.
2925 * Call this function to release all statically allocated tables.
2926 *
2927 * @deprecated. Code which uses av_free_static is broken/misdesigned
2928 * and should correctly use static arrays
2929 *
2930 */
2931 attribute_deprecated void av_free_static(void);
2932
2933 /**
2934 * Allocation of static arrays.
2935 *
2936 * @warning Do not use for normal allocation.
2937 *
2938 * @param[in] size The amount of memory you need in bytes.
2939 * @return block of memory of the requested size
2940 * @deprecated. Code which uses av_mallocz_static is broken/misdesigned
2941 * and should correctly use static arrays
2942 */
2943 attribute_deprecated av_malloc_attrib av_alloc_size(1)
2944 void *av_mallocz_static(unsigned int size);
2945
2946 /** 2921 /**
2947 * Copy image 'src' to 'dst'. 2922 * Copy image 'src' to 'dst'.
2948 */ 2923 */
2949 void av_picture_copy(AVPicture *dst, const AVPicture *src, 2924 void av_picture_copy(AVPicture *dst, const AVPicture *src,
2950 int pix_fmt, int width, int height); 2925 int pix_fmt, int width, int height);