comparison avcodec.h @ 4630:1416371d4a6c libavcodec

add avcodec_get_context_defaults2() / avcodec_alloc_context2() which take CodecType as an additional parameter also mark them as NOT part of the public API yet, so we can change their argument to CodecID if we decide to do so
author michael
date Wed, 07 Mar 2007 09:29:44 +0000
parents 6a900f539e2c
children bda54c0d6766
comparison
equal deleted inserted replaced
4629:2faa1399dd68 4630:1416371d4a6c
2629 * 2629 *
2630 * @param s The AVCodecContext of which the fields should be set to default values. 2630 * @param s The AVCodecContext of which the fields should be set to default values.
2631 */ 2631 */
2632 void avcodec_get_context_defaults(AVCodecContext *s); 2632 void avcodec_get_context_defaults(AVCodecContext *s);
2633 2633
2634 /** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
2635 * we WILL change its arguments and name a few times! */
2636 void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType);
2637
2634 /** 2638 /**
2635 * Allocates an AVCodecContext and sets its fields to default values. The 2639 * Allocates an AVCodecContext and sets its fields to default values. The
2636 * resulting struct can be deallocated by simply calling av_free(). 2640 * resulting struct can be deallocated by simply calling av_free().
2637 * 2641 *
2638 * @return An AVCodecContext filled with default values or NULL on failure. 2642 * @return An AVCodecContext filled with default values or NULL on failure.
2639 * @see avcodec_get_context_defaults 2643 * @see avcodec_get_context_defaults
2640 */ 2644 */
2641 AVCodecContext *avcodec_alloc_context(void); 2645 AVCodecContext *avcodec_alloc_context(void);
2646
2647 /** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
2648 * we WILL change its arguments and name a few times! */
2649 AVCodecContext *avcodec_alloc_context2(enum CodecType);
2642 2650
2643 /** 2651 /**
2644 * Sets the fields of the given AVFrame to default values. 2652 * Sets the fields of the given AVFrame to default values.
2645 * 2653 *
2646 * @param pic The AVFrame of which the fields should be set to default values. 2654 * @param pic The AVFrame of which the fields should be set to default values.