comparison avcodec.h @ 9000:78afc2990d00 libavcodec

Use context variable repeat_pict for frame duration computation and document this new use. Patch by Ivan Schreter, schreter gmx net
author cehoyos
date Sat, 21 Feb 2009 20:11:47 +0000
parents cdd8fa4a362a
children 15a3df8c01fd
comparison
equal deleted inserted replaced
8999:f701dab6a62d 9000:78afc2990d00
3003 int64_t cur_offset; /* current offset 3003 int64_t cur_offset; /* current offset
3004 (incremented by each av_parser_parse()) */ 3004 (incremented by each av_parser_parse()) */
3005 int64_t next_frame_offset; /* offset of the next frame */ 3005 int64_t next_frame_offset; /* offset of the next frame */
3006 /* video info */ 3006 /* video info */
3007 int pict_type; /* XXX: Put it back in AVCodecContext. */ 3007 int pict_type; /* XXX: Put it back in AVCodecContext. */
3008 /**
3009 * This field is used for proper frame duration computation in lavf.
3010 * It signals, how much longer the frame duration of the current frame
3011 * is compared to normal frame duration.
3012 *
3013 * frame_duration = (2 + repeat_pict) / (2*fps)
3014 *
3015 * It is used by codecs like H.264 to display telecined material.
3016 *
3017 * @note This field can also be set to -1 for half-frame duration in case
3018 * of field pictures.
3019 */
3008 int repeat_pict; /* XXX: Put it back in AVCodecContext. */ 3020 int repeat_pict; /* XXX: Put it back in AVCodecContext. */
3009 int64_t pts; /* pts of the current frame */ 3021 int64_t pts; /* pts of the current frame */
3010 int64_t dts; /* dts of the current frame */ 3022 int64_t dts; /* dts of the current frame */
3011 3023
3012 /* private data */ 3024 /* private data */