Mercurial > libavcodec.hg
comparison avcodec.h @ 9785:48572d70c95f libavcodec
Clarify the input AVPacket for avcodec_decode*()
author | michael |
---|---|
date | Wed, 03 Jun 2009 10:25:21 +0000 |
parents | 0d6f887d91fb |
children | 798d6520c7f4 |
comparison
equal
deleted
inserted
replaced
9784:2142607ddc2e | 9785:48572d70c95f |
---|---|
3213 * | 3213 * |
3214 * @param avctx the codec context | 3214 * @param avctx the codec context |
3215 * @param[out] samples the output buffer | 3215 * @param[out] samples the output buffer |
3216 * @param[in,out] frame_size_ptr the output buffer size in bytes | 3216 * @param[in,out] frame_size_ptr the output buffer size in bytes |
3217 * @param[in] avpkt The input AVPacket containing the input buffer. | 3217 * @param[in] avpkt The input AVPacket containing the input buffer. |
3218 * You can create such packet with av_init_packet() and by then setting | |
3219 * data and size, some decoders might in addition need other fields. | |
3220 * All decoders are designed to use the least fields possible though. | |
3218 * @return On error a negative value is returned, otherwise the number of bytes | 3221 * @return On error a negative value is returned, otherwise the number of bytes |
3219 * used or zero if no frame could be decompressed. | 3222 * used or zero if no frame could be decompressed. |
3220 */ | 3223 */ |
3221 int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, | 3224 int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, |
3222 int *frame_size_ptr, | 3225 int *frame_size_ptr, |
3266 * feeded with avpkt->data=NULL, avpkt->size=0 at the end to return the remaining frames. | 3269 * feeded with avpkt->data=NULL, avpkt->size=0 at the end to return the remaining frames. |
3267 * | 3270 * |
3268 * @param avctx the codec context | 3271 * @param avctx the codec context |
3269 * @param[out] picture The AVFrame in which the decoded video frame will be stored. | 3272 * @param[out] picture The AVFrame in which the decoded video frame will be stored. |
3270 * @param[in] avpkt The input AVpacket containing the input buffer. | 3273 * @param[in] avpkt The input AVpacket containing the input buffer. |
3274 * You can create such packet with av_init_packet() and by then setting | |
3275 * data and size, some decoders might in addition need other fields like | |
3276 * flags&PKT_FLAG_KEY. All decoders are designed to use the least | |
3277 * fields possible. | |
3271 * @param[in,out] got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero. | 3278 * @param[in,out] got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero. |
3272 * @return On error a negative value is returned, otherwise the number of bytes | 3279 * @return On error a negative value is returned, otherwise the number of bytes |
3273 * used or zero if no frame could be decompressed. | 3280 * used or zero if no frame could be decompressed. |
3274 */ | 3281 */ |
3275 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, | 3282 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, |