comparison avcodec.h @ 12130:917a70cf7681 libavcodec

Document that and why subtitle decoders do not support direct-rendering.
author reimar
date Sat, 10 Jul 2010 23:35:15 +0000
parents 11b27985b3d0
children 2d51a2375ddf
comparison
equal deleted inserted replaced
12129:8b28e74de2c0 12130:917a70cf7681
3540 /** 3540 /**
3541 * Decode a subtitle message. 3541 * Decode a subtitle message.
3542 * Return a negative value on error, otherwise return the number of bytes used. 3542 * Return a negative value on error, otherwise return the number of bytes used.
3543 * If no subtitle could be decompressed, got_sub_ptr is zero. 3543 * If no subtitle could be decompressed, got_sub_ptr is zero.
3544 * Otherwise, the subtitle is stored in *sub. 3544 * Otherwise, the subtitle is stored in *sub.
3545 * Note that CODEC_CAP_DR1 is not available for subtitle codecs. This is for
3546 * simplicity, because the performance difference is expect to be negligible
3547 * and reusing a get_buffer written for video codecs would probably perform badly
3548 * due to a potentially very different allocation pattern.
3545 * 3549 *
3546 * @param avctx the codec context 3550 * @param avctx the codec context
3547 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored. 3551 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored.
3548 * @param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero. 3552 * @param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero.
3549 * @param[in] avpkt The input AVPacket containing the input buffer. 3553 * @param[in] avpkt The input AVPacket containing the input buffer.