comparison avcodec.h @ 11674:bb0470c1ebd9 libavcodec

Clarify how allocation works for the picture argument for avcodec_decode_video3.
author reimar
date Sun, 02 May 2010 16:07:29 +0000
parents 7dd2a45249a9
children 2312dfbe9251
comparison
equal deleted inserted replaced
11673:da59da296153 11674:bb0470c1ebd9
3462 * @note Some codecs have a delay between input and output, these need to be 3462 * @note Some codecs have a delay between input and output, these need to be
3463 * fed with avpkt->data=NULL, avpkt->size=0 at the end to return the remaining frames. 3463 * fed with avpkt->data=NULL, avpkt->size=0 at the end to return the remaining frames.
3464 * 3464 *
3465 * @param avctx the codec context 3465 * @param avctx the codec context
3466 * @param[out] picture The AVFrame in which the decoded video frame will be stored. 3466 * @param[out] picture The AVFrame in which the decoded video frame will be stored.
3467 * Use avcodec_alloc_frame to get an AVFrame, the codec will call
3468 * get_buffer to get memory for the actual image data.
3467 * @param[in] avpkt The input AVpacket containing the input buffer. 3469 * @param[in] avpkt The input AVpacket containing the input buffer.
3468 * You can create such packet with av_init_packet() and by then setting 3470 * You can create such packet with av_init_packet() and by then setting
3469 * data and size, some decoders might in addition need other fields like 3471 * data and size, some decoders might in addition need other fields like
3470 * flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least 3472 * flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least
3471 * fields possible. 3473 * fields possible.