AVCodecParserContext Struct Reference

#include <avcodec.h>


Data Fields

void * priv_data
struct AVCodecParserparser
int64_t frame_offset
int64_t cur_offset
int64_t next_frame_offset
int pict_type
int repeat_pict
 This field is used for proper frame duration computation in lavf.
int64_t pts
int64_t dts
int64_t last_pts
int64_t last_dts
int fetch_timestamp
int cur_frame_start_index
int64_t cur_frame_offset [AV_PARSER_PTS_NB]
int64_t cur_frame_pts [AV_PARSER_PTS_NB]
int64_t cur_frame_dts [AV_PARSER_PTS_NB]
int flags
int64_t offset
 byte offset from starting packet start
int64_t cur_frame_end [AV_PARSER_PTS_NB]
int key_frame
int64_t convergence_duration
 Time difference in stream time base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.
int dts_sync_point
 Synchronization point for start of timestamp generation.
int dts_ref_dts_delta
 Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base.
int pts_dts_delta
 Presentation delay of current frame in units of AVCodecContext.time_base.


Detailed Description

Definition at line 2974 of file avcodec.h.


Field Documentation

Time difference in stream time base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.

That is, the frames are virtually identical no matter if decoding started from the very first frame or from this keyframe. Is AV_NOPTS_VALUE if unknown. This field is not the display duration of the current frame.

The purpose of this field is to allow seeking in streams that have no keyframes in the conventional sense. It corresponds to the recovery point SEI in H.264 and match_time_delta in NUT. It is also essential for some types of subtitle streams to ensure that all subtitles are correctly displayed after seeking.

Definition at line 3036 of file avcodec.h.

Referenced by av_parser_init(), and compute_pkt_fields().

int64_t AVCodecParserContext::cur_frame_dts[AV_PARSER_PTS_NB]

Definition at line 3005 of file avcodec.h.

Referenced by av_parser_parse(), and ff_fetch_timestamp().

int64_t AVCodecParserContext::cur_frame_end[AV_PARSER_PTS_NB]

Definition at line 3011 of file avcodec.h.

Referenced by av_parser_parse(), and ff_fetch_timestamp().

int64_t AVCodecParserContext::cur_frame_offset[AV_PARSER_PTS_NB]

Definition at line 3003 of file avcodec.h.

Referenced by av_parser_parse(), and ff_fetch_timestamp().

int64_t AVCodecParserContext::cur_frame_pts[AV_PARSER_PTS_NB]

Definition at line 3004 of file avcodec.h.

Referenced by av_parser_parse(), dvbsub_parse(), and ff_fetch_timestamp().

Definition at line 3002 of file avcodec.h.

Referenced by av_parser_parse(), and dvbsub_parse().

Definition at line 2978 of file avcodec.h.

Referenced by av_parser_parse(), and av_read_frame_internal().

Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base.

Set to INT_MIN when dts_sync_point unused. Otherwise, it must contain a valid timestamp offset.

Note that the timestamp of sync point has usually a nonzero dts_ref_dts_delta, which refers to the previous sync point. Offset of the next frame after timestamp sync point will be usually 1.

For example, this corresponds to H.264 cpb_removal_delay.

Definition at line 3063 of file avcodec.h.

Referenced by av_parser_init(), compute_pkt_fields(), and h264_parse().

Synchronization point for start of timestamp generation.

Set to >0 for sync point, 0 for no sync point and <0 for undefined (default).

For example, this corresponds to presence of H.264 buffering period SEI message.

Definition at line 3048 of file avcodec.h.

Referenced by av_parser_init(), compute_pkt_fields(), and h264_parse().

Definition at line 2999 of file avcodec.h.

Referenced by av_parser_init(), av_parser_parse(), and dvbsub_parse().

Definition at line 2977 of file avcodec.h.

Referenced by av_parser_parse(), av_read_frame_internal(), and ff_fetch_timestamp().

Set by parser to 1 for key frames and 0 for non-key frames. It is initialized to -1, so if the parser doesn't set this flag, old-style fallback using FF_I_TYPE picture type as key frames will be used.

Definition at line 3019 of file avcodec.h.

Referenced by av_parser_init(), compute_pkt_fields(), and parse_nal_units().

Definition at line 2998 of file avcodec.h.

Referenced by av_parser_parse(), and dirac_combine_frame().

Definition at line 2997 of file avcodec.h.

Referenced by av_parser_parse(), dirac_combine_frame(), and dvbsub_parse().

Definition at line 2980 of file avcodec.h.

Referenced by av_parser_parse(), av_read_frame_internal(), and ff_fetch_timestamp().

byte offset from starting packet start

Definition at line 3010 of file avcodec.h.

Referenced by compute_pkt_fields(), and ff_fetch_timestamp().

Presentation delay of current frame in units of AVCodecContext.time_base.

Set to INT_MIN when dts_sync_point unused. Otherwise, it must contain valid non-negative timestamp delta (presentation time of a frame must not lie in the past).

This delay represents the difference between decoding and presentation time of the frame.

For example, this corresponds to H.264 dpb_output_delay.

Definition at line 3077 of file avcodec.h.

Referenced by av_parser_init(), compute_pkt_fields(), and h264_parse().

This field is used for proper frame duration computation in lavf.

It signals, how much longer the frame duration of the current frame is compared to normal frame duration.

frame_duration = (1 + repeat_pict) * time_base

It is used by codecs like H.264 to display telecined material.

Definition at line 2992 of file avcodec.h.

Referenced by compute_frame_duration(), mpegvideo_extract_headers(), mpegvideo_parse(), output_packet(), and parse_nal_units().


The documentation for this struct was generated from the following file:

Generated on Fri Oct 26 02:35:47 2012 for FFmpeg by  doxygen 1.5.8