#include <avcodec.h>
Definition at line 4247 of file avcodec.h.
void* AVCodecParserContext::priv_data |
int64_t AVCodecParserContext::frame_offset |
int64_t AVCodecParserContext::cur_offset |
int64_t AVCodecParserContext::next_frame_offset |
int AVCodecParserContext::pict_type |
int AVCodecParserContext::repeat_pict |
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 4265 of file avcodec.h.
int64_t AVCodecParserContext::pts |
int64_t AVCodecParserContext::dts |
int64_t AVCodecParserContext::last_pts |
int64_t AVCodecParserContext::last_dts |
int AVCodecParserContext::fetch_timestamp |
int AVCodecParserContext::cur_frame_start_index |
int AVCodecParserContext::flags |
int64_t AVCodecParserContext::offset |
byte offset from starting packet start
Definition at line 4287 of file avcodec.h.
int AVCodecParserContext::key_frame |
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 AV_PICTURE_TYPE_I picture type as key frames will be used.
Definition at line 4296 of file avcodec.h.
int64_t AVCodecParserContext::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.
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. This field has no meaning if the packet does not have AV_PKT_FLAG_KEY set.
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 4315 of file avcodec.h.
int AVCodecParserContext::dts_sync_point |
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 4327 of file avcodec.h.
int AVCodecParserContext::dts_ref_dts_delta |
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 4342 of file avcodec.h.
int AVCodecParserContext::pts_dts_delta |
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 4356 of file avcodec.h.
Position of the packet in file.
Analogous to cur_frame_pts/dts
Definition at line 4363 of file avcodec.h.
int64_t AVCodecParserContext::pos |
Byte position of currently parsed frame in stream.
Definition at line 4368 of file avcodec.h.
int64_t AVCodecParserContext::last_pos |
Previous frame byte position.
Definition at line 4373 of file avcodec.h.
int AVCodecParserContext::duration |
Indicate whether a picture is coded as a frame, top field or bottom field.
For example, H.264 field_pic_flag equal to 0 corresponds to AV_PICTURE_STRUCTURE_FRAME. An H.264 picture with field_pic_flag equal to 1 and bottom_field_flag equal to 0 corresponds to AV_PICTURE_STRUCTURE_TOP_FIELD.
Definition at line 4392 of file avcodec.h.
int AVCodecParserContext::output_picture_number |
Picture number incremented in presentation or output order.
This field may be reinitialized at the first picture of a new sequence.
For example, this corresponds to H.264 PicOrderCnt.
Definition at line 4400 of file avcodec.h.
int AVCodecParserContext::width |
Dimensions of the decoded video intended for presentation.
Definition at line 4405 of file avcodec.h.
int AVCodecParserContext::height |
int AVCodecParserContext::coded_width |
Dimensions of the coded video.
Definition at line 4411 of file avcodec.h.
int AVCodecParserContext::coded_height |
int AVCodecParserContext::format |
The format of the coded data, corresponds to enum AVPixelFormat for video and for enum AVSampleFormat for audio.
Note that a decoder can have considerable freedom in how exactly it decodes the data, so the format reported here might be different from the one returned by a decoder.
Definition at line 4422 of file avcodec.h.
The documentation for this struct was generated from the following file: