VideoState Struct Reference

Data Fields

SDL_Thread * parse_tid
SDL_Thread * video_tid
SDL_Thread * refresh_tid
AVInputFormatiformat
int no_background
int abort_request
int paused
int last_paused
int seek_req
int seek_flags
int64_t seek_pos
int64_t seek_rel
int read_pause_return
AVFormatContextic
int dtg_active_format
int audio_stream
int av_sync_type
double external_clock
int64_t external_clock_time
double audio_clock
double audio_diff_cum
double audio_diff_avg_coef
double audio_diff_threshold
int audio_diff_avg_count
AVStreamaudio_st
PacketQueue audioq
int audio_hw_buf_size
uint8_t silence_buf [SDL_AUDIO_BUFFER_SIZE]
uint8_t * audio_buf
uint8_t * audio_buf1
unsigned int audio_buf_size
int audio_buf_index
AVPacket audio_pkt_temp
AVPacket audio_pkt
enum AVSampleFormat audio_src_fmt
AVAudioConvertreformat_ctx
AVFrameframe
int show_audio
int16_t sample_array [SAMPLE_ARRAY_SIZE]
int sample_array_index
int last_i_start
RDFTContextrdft
int rdft_bits
FFTSamplerdft_data
int xpos
SDL_Thread * subtitle_tid
int subtitle_stream
int subtitle_stream_changed
AVStreamsubtitle_st
PacketQueue subtitleq
SubPicture subpq [SUBPICTURE_QUEUE_SIZE]
int subpq_size
int subpq_rindex
int subpq_windex
SDL_mutex * subpq_mutex
SDL_cond * subpq_cond
double frame_timer
double frame_last_pts
double frame_last_delay
double video_clock
 pts of last decoded frame / predicted pts of next decoded frame
int video_stream
AVStreamvideo_st
PacketQueue videoq
double video_current_pts
 current displayed pts (different from video_clock if frame fifos are used)
double video_current_pts_drift
 video_current_pts - time (av_gettime) at which we updated video_current_pts - used to have running video pts
int64_t video_current_pos
 current displayed file pos
VideoPicture pictq [VIDEO_PICTURE_QUEUE_SIZE]
int pictq_size
int pictq_rindex
int pictq_windex
SDL_mutex * pictq_mutex
SDL_cond * pictq_cond
struct SwsContextimg_convert_ctx
char filename [1024]
int width
int height
int xleft
int ytop
PtsCorrectionContext pts_ctx
float skip_frames
float skip_frames_index
int refresh

Detailed Description

Definition at line 125 of file avplay.c.

Field Documentation

int VideoState::abort_request

Definition at line 131 of file avplay.c.

Referenced by decode_interrupt_cb(), decode_thread(), refresh_thread(), and stream_close().

uint8_t* VideoState::audio_buf

Definition at line 157 of file avplay.c.

Referenced by audio_decode_frame(), sdl_audio_callback(), and stream_component_close().

uint8_t* VideoState::audio_buf1

Definition at line 158 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

int VideoState::audio_buf_index

Definition at line 160 of file avplay.c.

Referenced by audio_write_get_buf_size(), sdl_audio_callback(), and stream_component_open().

unsigned int VideoState::audio_buf_size

Definition at line 159 of file avplay.c.

Referenced by audio_write_get_buf_size(), sdl_audio_callback(), and stream_component_open().

double VideoState::audio_clock

Definition at line 148 of file avplay.c.

Referenced by audio_decode_frame(), get_audio_clock(), and synchronize_audio().

double VideoState::audio_diff_avg_coef

Definition at line 150 of file avplay.c.

Referenced by stream_component_open(), and synchronize_audio().

int VideoState::audio_diff_avg_count

Definition at line 152 of file avplay.c.

Referenced by stream_component_open(), and synchronize_audio().

double VideoState::audio_diff_cum

Definition at line 149 of file avplay.c.

Referenced by synchronize_audio().

double VideoState::audio_diff_threshold

Definition at line 151 of file avplay.c.

Referenced by stream_component_open(), and synchronize_audio().

int VideoState::audio_hw_buf_size

Definition at line 155 of file avplay.c.

Referenced by stream_component_open().

AVPacket VideoState::audio_pkt
AVPacket VideoState::audio_pkt_temp

Definition at line 161 of file avplay.c.

Referenced by audio_decode_frame().

enum AVSampleFormat VideoState::audio_src_fmt

Definition at line 163 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_open().

int VideoState::audio_stream
int VideoState::av_sync_type

Definition at line 144 of file avplay.c.

Referenced by compute_target_time(), get_master_clock(), stream_open(), and synchronize_audio().

int VideoState::dtg_active_format

Definition at line 140 of file avplay.c.

double VideoState::external_clock

Definition at line 145 of file avplay.c.

Referenced by get_external_clock().

int64_t VideoState::external_clock_time

Definition at line 146 of file avplay.c.

Referenced by get_external_clock().

char VideoState::filename[1024]

Definition at line 205 of file avplay.c.

Referenced by decode_thread(), and stream_open().

AVFrame* VideoState::frame

Definition at line 165 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

double VideoState::frame_last_delay

Definition at line 188 of file avplay.c.

Referenced by compute_target_time(), and get_video_frame().

double VideoState::frame_last_pts

Definition at line 187 of file avplay.c.

Referenced by compute_target_time(), and get_video_frame().

double VideoState::frame_timer

Definition at line 186 of file avplay.c.

Referenced by compute_target_time(), get_video_frame(), and stream_pause().

int VideoState::height
AVInputFormat* VideoState::iformat

Definition at line 129 of file avplay.c.

Referenced by decode_thread(), and stream_open().

struct SwsContext* VideoState::img_convert_ctx

Definition at line 201 of file avplay.c.

Referenced by queue_picture(), and stream_close().

int VideoState::last_i_start

Definition at line 170 of file avplay.c.

Referenced by video_audio_display().

int VideoState::last_paused

Definition at line 133 of file avplay.c.

Referenced by decode_thread().

int VideoState::no_background

Definition at line 130 of file avplay.c.

Referenced by video_image_display().

SDL_Thread* VideoState::parse_tid

Definition at line 126 of file avplay.c.

Referenced by stream_close(), and stream_open().

SDL_cond* VideoState::pictq_cond
SDL_mutex* VideoState::pictq_mutex
int VideoState::pictq_rindex

Definition at line 197 of file avplay.c.

Referenced by video_image_display(), and video_refresh_timer().

int VideoState::pictq_size

Definition at line 197 of file avplay.c.

Referenced by get_video_frame(), queue_picture(), and video_refresh_timer().

int VideoState::pictq_windex

Definition at line 197 of file avplay.c.

Referenced by alloc_picture(), and queue_picture().

PtsCorrectionContext VideoState::pts_ctx

Definition at line 208 of file avplay.c.

Referenced by get_video_frame(), and video_refresh_timer().

RDFTContext* VideoState::rdft

Definition at line 171 of file avplay.c.

Referenced by stream_component_close(), and video_audio_display().

int VideoState::rdft_bits

Definition at line 172 of file avplay.c.

Referenced by stream_component_close(), and video_audio_display().

FFTSample* VideoState::rdft_data

Definition at line 173 of file avplay.c.

Referenced by stream_component_close(), and video_audio_display().

int VideoState::read_pause_return

Definition at line 138 of file avplay.c.

Referenced by decode_thread(), and stream_pause().

AVAudioConvert* VideoState::reformat_ctx

Definition at line 164 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

int VideoState::refresh

Definition at line 216 of file avplay.c.

Referenced by event_loop(), queue_picture(), and refresh_thread().

SDL_Thread* VideoState::refresh_tid

Definition at line 128 of file avplay.c.

Referenced by decode_thread(), and stream_close().

int16_t VideoState::sample_array[SAMPLE_ARRAY_SIZE]

Definition at line 168 of file avplay.c.

Referenced by update_sample_display(), and video_audio_display().

int VideoState::sample_array_index

Definition at line 169 of file avplay.c.

Referenced by update_sample_display(), and video_audio_display().

int VideoState::seek_flags

Definition at line 135 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

int64_t VideoState::seek_pos

Definition at line 136 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

int64_t VideoState::seek_rel

Definition at line 137 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

int VideoState::seek_req

Definition at line 134 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

int VideoState::show_audio
uint8_t VideoState::silence_buf[SDL_AUDIO_BUFFER_SIZE]

Definition at line 156 of file avplay.c.

Referenced by sdl_audio_callback().

float VideoState::skip_frames

Definition at line 214 of file avplay.c.

Referenced by get_video_frame(), queue_picture(), and video_refresh_timer().

float VideoState::skip_frames_index

Definition at line 215 of file avplay.c.

Referenced by get_video_frame().

SubPicture VideoState::subpq[SUBPICTURE_QUEUE_SIZE]

Definition at line 181 of file avplay.c.

Referenced by subtitle_thread(), video_image_display(), and video_refresh_timer().

SDL_cond* VideoState::subpq_cond
SDL_mutex* VideoState::subpq_mutex
int VideoState::subpq_rindex

Definition at line 182 of file avplay.c.

Referenced by video_image_display(), and video_refresh_timer().

int VideoState::subpq_size

Definition at line 182 of file avplay.c.

Referenced by subtitle_thread(), video_image_display(), and video_refresh_timer().

int VideoState::subpq_windex

Definition at line 182 of file avplay.c.

Referenced by subtitle_thread().

AVStream* VideoState::subtitle_st
int VideoState::subtitle_stream
int VideoState::subtitle_stream_changed

Definition at line 178 of file avplay.c.

Referenced by stream_component_close(), and video_refresh_timer().

SDL_Thread* VideoState::subtitle_tid

Definition at line 176 of file avplay.c.

Referenced by stream_component_close(), and stream_component_open().

PacketQueue VideoState::subtitleq
double VideoState::video_clock

pts of last decoded frame / predicted pts of next decoded frame

Definition at line 189 of file avplay.c.

Referenced by output_picture2(), synchronize_audio(), and video_refresh_timer().

int64_t VideoState::video_current_pos

current displayed file pos

Definition at line 195 of file avplay.c.

Referenced by event_loop(), get_video_frame(), and video_refresh_timer().

double VideoState::video_current_pts

current displayed pts (different from video_clock if frame fifos are used)

Definition at line 193 of file avplay.c.

Referenced by get_video_clock(), stream_pause(), and video_refresh_timer().

double VideoState::video_current_pts_drift

video_current_pts - time (av_gettime) at which we updated video_current_pts - used to have running video pts

Definition at line 194 of file avplay.c.

Referenced by get_video_clock(), stream_pause(), and video_refresh_timer().

int VideoState::video_stream
SDL_Thread* VideoState::video_tid

Definition at line 127 of file avplay.c.

Referenced by stream_component_close(), and stream_component_open().

int VideoState::width
int VideoState::xleft
int VideoState::xpos

Definition at line 174 of file avplay.c.

Referenced by video_audio_display().

int VideoState::ytop

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