Mercurial > libavcodec.hg
comparison avcodec.h @ 3660:7e1ee254a3ee libavcodec
Align the input buffer in ffplay, introduce a public macro for aligned declarations
Update the avcodec_decode_audio and the float_to_int16 descriptions accordingly
author | lu_zero |
---|---|
date | Thu, 31 Aug 2006 19:14:00 +0000 |
parents | d2936fc9558c |
children | 18b13b923616 |
comparison
equal
deleted
inserted
replaced
3659:dd55fb216497 | 3660:7e1ee254a3ee |
---|---|
15 #include <sys/types.h> /* size_t */ | 15 #include <sys/types.h> /* size_t */ |
16 | 16 |
17 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 17 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
18 #define AV_TOSTRING(s) #s | 18 #define AV_TOSTRING(s) #s |
19 | 19 |
20 #define LIBAVCODEC_VERSION_INT ((51<<16)+(11<<8)+0) | 20 #define LIBAVCODEC_VERSION_INT ((51<<16)+(12<<8)+0) |
21 #define LIBAVCODEC_VERSION 51.11.0 | 21 #define LIBAVCODEC_VERSION 51.12.0 |
22 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT | 22 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT |
23 | 23 |
24 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) | 24 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) |
25 | 25 |
26 #define AV_NOPTS_VALUE int64_t_C(0x8000000000000000) | 26 #define AV_NOPTS_VALUE int64_t_C(0x8000000000000000) |
2449 * opens / inits the AVCodecContext. | 2449 * opens / inits the AVCodecContext. |
2450 * not thread save! | 2450 * not thread save! |
2451 */ | 2451 */ |
2452 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); | 2452 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); |
2453 | 2453 |
2454 /** | |
2455 * Decode an audio frame. | |
2456 * | |
2457 * @param avctx the codec context. | |
2458 * @param samples output buffer, 16 byte aligned | |
2459 * @param frame_size_ptr the output buffer size in bytes, zero if no frame could be compressed | |
2460 * @param buf input buffer, 16 byte aligned | |
2461 * @param buf_size the input buffer size | |
2462 * @return 0 if successful, -1 if not. | |
2463 */ | |
2464 | |
2454 int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples, | 2465 int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples, |
2455 int *frame_size_ptr, | 2466 int *frame_size_ptr, |
2456 uint8_t *buf, int buf_size); | 2467 uint8_t *buf, int buf_size); |
2457 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, | 2468 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, |
2458 int *got_picture_ptr, | 2469 int *got_picture_ptr, |