Mercurial > libavcodec.hg
comparison avcodec.h @ 12134:cb3eb3a2fc96 libavcodec
Add avsubtitle_free function.
author | reimar |
---|---|
date | Sun, 11 Jul 2010 07:35:00 +0000 |
parents | 2d51a2375ddf |
children | e59926e2c50c |
comparison
equal
deleted
inserted
replaced
12133:24649290a14f | 12134:cb3eb3a2fc96 |
---|---|
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 81 | 33 #define LIBAVCODEC_VERSION_MINOR 82 |
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) |
3546 * simplicity, because the performance difference is expect to be negligible | 3546 * simplicity, because the performance difference is expect to be negligible |
3547 * and reusing a get_buffer written for video codecs would probably perform badly | 3547 * and reusing a get_buffer written for video codecs would probably perform badly |
3548 * due to a potentially very different allocation pattern. | 3548 * due to a potentially very different allocation pattern. |
3549 * | 3549 * |
3550 * @param avctx the codec context | 3550 * @param avctx the codec context |
3551 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored. | 3551 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored, must be |
3552 freed with avsubtitle_free if *got_sub_ptr is set. | |
3552 * @param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero. | 3553 * @param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero. |
3553 * @param[in] avpkt The input AVPacket containing the input buffer. | 3554 * @param[in] avpkt The input AVPacket containing the input buffer. |
3554 */ | 3555 */ |
3555 int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, | 3556 int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, |
3556 int *got_sub_ptr, | 3557 int *got_sub_ptr, |
3557 AVPacket *avpkt); | 3558 AVPacket *avpkt); |
3559 | |
3560 /** | |
3561 * Frees all allocated data in the given subtitle struct. | |
3562 * | |
3563 * @param sub AVSubtitle to free. | |
3564 */ | |
3565 void avsubtitle_free(AVSubtitle *sub); | |
3566 | |
3558 int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata, | 3567 int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata, |
3559 int *data_size_ptr, | 3568 int *data_size_ptr, |
3560 uint8_t *buf, int buf_size); | 3569 uint8_t *buf, int buf_size); |
3561 | 3570 |
3562 /** | 3571 /** |