Mercurial > libavcodec.hg
comparison avcodec.h @ 9882:7b58b1410f48 libavcodec
Make documentation better match the code. Now AVCodecContext.sample_fmt
is used.
Patch by Brian Crowell <($firstname)@fluggo.com>
author | vitor |
---|---|
date | Tue, 23 Jun 2009 18:17:15 +0000 |
parents | 876dc7d26ec1 |
children | b5ca6219e173 |
comparison
equal
deleted
inserted
replaced
9881:c69559e9f6c3 | 9882:7b58b1410f48 |
---|---|
1112 /** | 1112 /** |
1113 * audio sample format | 1113 * audio sample format |
1114 * - encoding: Set by user. | 1114 * - encoding: Set by user. |
1115 * - decoding: Set by libavcodec. | 1115 * - decoding: Set by libavcodec. |
1116 */ | 1116 */ |
1117 enum SampleFormat sample_fmt; ///< sample format, currently unused | 1117 enum SampleFormat sample_fmt; ///< sample format |
1118 | 1118 |
1119 /* The following data should not be initialized. */ | 1119 /* The following data should not be initialized. */ |
1120 /** | 1120 /** |
1121 * Samples per packet, initialized when calling 'init'. | 1121 * Samples per packet, initialized when calling 'init'. |
1122 */ | 1122 */ |
3222 * In practice, avpkt->data should have 4 byte alignment at minimum and | 3222 * In practice, avpkt->data should have 4 byte alignment at minimum and |
3223 * samples should be 16 byte aligned unless the CPU doesn't need it | 3223 * samples should be 16 byte aligned unless the CPU doesn't need it |
3224 * (AltiVec and SSE do). | 3224 * (AltiVec and SSE do). |
3225 * | 3225 * |
3226 * @param avctx the codec context | 3226 * @param avctx the codec context |
3227 * @param[out] samples the output buffer | 3227 * @param[out] samples the output buffer, sample type in avctx->sample_fmt |
3228 * @param[in,out] frame_size_ptr the output buffer size in bytes | 3228 * @param[in,out] frame_size_ptr the output buffer size in bytes |
3229 * @param[in] avpkt The input AVPacket containing the input buffer. | 3229 * @param[in] avpkt The input AVPacket containing the input buffer. |
3230 * You can create such packet with av_init_packet() and by then setting | 3230 * You can create such packet with av_init_packet() and by then setting |
3231 * data and size, some decoders might in addition need other fields. | 3231 * data and size, some decoders might in addition need other fields. |
3232 * All decoders are designed to use the least fields possible though. | 3232 * All decoders are designed to use the least fields possible though. |