comparison avcodec.h @ 11822:8cd526e30b06 libavcodec

Document the frames returned by the decoder better.
author michael
date Thu, 03 Jun 2010 21:53:41 +0000
parents 9f7414707aa8
children c9ef45275db0
comparison
equal deleted inserted replaced
11821:9f7414707aa8 11822:8cd526e30b06
3499 * 3499 *
3500 * @param avctx the codec context 3500 * @param avctx the codec context
3501 * @param[out] picture The AVFrame in which the decoded video frame will be stored. 3501 * @param[out] picture The AVFrame in which the decoded video frame will be stored.
3502 * Use avcodec_alloc_frame to get an AVFrame, the codec will 3502 * Use avcodec_alloc_frame to get an AVFrame, the codec will
3503 * allocate memory for the actual bitmap. 3503 * allocate memory for the actual bitmap.
3504 * with default get/release_buffer(), the decoder frees/reuses the bitmap as it sees fit.
3505 * with overridden get/release_buffer() the user decides into what buffer the decoder
3506 * decodes and the decoder tells the user once it does not need the data anymore,
3507 * the user app can at this point free/reuse/keep the memory as it sees fit.
3508 *
3504 * @param[in] avpkt The input AVpacket containing the input buffer. 3509 * @param[in] avpkt The input AVpacket containing the input buffer.
3505 * You can create such packet with av_init_packet() and by then setting 3510 * You can create such packet with av_init_packet() and by then setting
3506 * data and size, some decoders might in addition need other fields like 3511 * data and size, some decoders might in addition need other fields like
3507 * flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least 3512 * flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least
3508 * fields possible. 3513 * fields possible.