Mercurial > libavcodec.hg
comparison avcodec.h @ 8750:2528b6a2b5d3 libavcodec
Rename register_avcodec() as avcodec_register() and deprecate the old
function name.
| author | stefano |
|---|---|
| date | Fri, 06 Feb 2009 23:46:15 +0000 |
| parents | a261e3271d1f |
| children | 303929f52007 |
comparison
equal
deleted
inserted
replaced
| 8749:21a41fd79033 | 8750:2528b6a2b5d3 |
|---|---|
| 28 | 28 |
| 29 #include <errno.h> | 29 #include <errno.h> |
| 30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
| 31 | 31 |
| 32 #define LIBAVCODEC_VERSION_MAJOR 52 | 32 #define LIBAVCODEC_VERSION_MAJOR 52 |
| 33 #define LIBAVCODEC_VERSION_MINOR 13 | 33 #define LIBAVCODEC_VERSION_MINOR 14 |
| 34 #define LIBAVCODEC_VERSION_MICRO 0 | 34 #define LIBAVCODEC_VERSION_MICRO 0 |
| 35 | 35 |
| 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ | 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |
| 37 LIBAVCODEC_VERSION_MINOR, \ | 37 LIBAVCODEC_VERSION_MINOR, \ |
| 38 LIBAVCODEC_VERSION_MICRO) | 38 LIBAVCODEC_VERSION_MICRO) |
| 2603 * function. | 2603 * function. |
| 2604 */ | 2604 */ |
| 2605 void avcodec_init(void); | 2605 void avcodec_init(void); |
| 2606 | 2606 |
| 2607 /** | 2607 /** |
| 2608 * @deprecated Deprecated in favor of avcodec_register(). | |
| 2609 */ | |
| 2610 attribute_deprecated void register_avcodec(AVCodec *codec); | |
| 2611 | |
| 2612 /** | |
| 2608 * Register the codec \p codec and initialize libavcodec. | 2613 * Register the codec \p codec and initialize libavcodec. |
| 2609 * | 2614 * |
| 2610 * @see avcodec_init() | 2615 * @see avcodec_init() |
| 2611 */ | 2616 */ |
| 2612 void register_avcodec(AVCodec *codec); | 2617 void avcodec_register(AVCodec *codec); |
| 2613 | 2618 |
| 2614 /** | 2619 /** |
| 2615 * Finds a registered encoder with a matching codec ID. | 2620 * Finds a registered encoder with a matching codec ID. |
| 2616 * | 2621 * |
| 2617 * @param id CodecID of the requested encoder | 2622 * @param id CodecID of the requested encoder |
