VideoState Struct Reference
Collaboration diagram for VideoState:
Collaboration graph

Public Types

enum  ShowMode {
  SHOW_MODE_NONE = -1, SHOW_MODE_VIDEO = 0, SHOW_MODE_WAVES, SHOW_MODE_RDFT,
  SHOW_MODE_NB
}
 

Data Fields

SDL_Thread * read_tid
 
SDL_Thread * video_tid
 
AVInputFormatiformat
 
int no_background
 
int abort_request
 
int force_refresh
 
int paused
 
int last_paused
 
int queue_attachments_req
 
int seek_req
 
int seek_flags
 
int64_t seek_pos
 
int64_t seek_rel
 
int read_pause_return
 
AVFormatContextic
 
int realtime
 
int audio_stream
 
int av_sync_type
 
double external_clock
 external clock base More...
 
double external_clock_drift
 external clock base - time (av_gettime) at which we updated external_clock More...
 
int64_t external_clock_time
 last reference time More...
 
double external_clock_speed
 speed of the external clock More...
 
double audio_clock
 
int audio_clock_serial
 
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_taudio_buf
 
uint8_taudio_buf1
 
unsigned int audio_buf_size
 
unsigned int audio_buf1_size
 
int audio_buf_index
 
int audio_write_buf_size
 
int audio_buf_frames_pending
 
AVPacket audio_pkt_temp
 
AVPacket audio_pkt
 
int audio_pkt_temp_serial
 
int audio_last_serial
 
struct AudioParams audio_src
 
struct AudioParams audio_filter_src
 
struct AudioParams audio_tgt
 
struct SwrContextswr_ctx
 
double audio_current_pts
 
double audio_current_pts_drift
 
int frame_drops_early
 
int frame_drops_late
 
AVFrameframe
 
enum VideoState::ShowMode show_mode
 
int16_t sample_array [SAMPLE_ARRAY_SIZE]
 
int sample_array_index
 
int last_i_start
 
RDFTContextrdft
 
int rdft_bits
 
FFTSamplerdft_data
 
int xpos
 
double last_vis_time
 
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_duration
 
double frame_last_dropped_pts
 
double frame_last_returned_time
 
double frame_last_filter_delay
 
int64_t frame_last_dropped_pos
 
int frame_last_dropped_serial
 
int video_stream
 
AVStreamvideo_st
 
PacketQueue videoq
 
double video_current_pts
 
double video_current_pts_drift
 
int64_t video_current_pos
 
double max_frame_duration
 
int video_clock_serial
 
VideoPicture pictq [VIDEO_PICTURE_QUEUE_SIZE]
 
int pictq_size
 
int pictq_rindex
 
int pictq_windex
 
SDL_mutex * pictq_mutex
 
SDL_cond * pictq_cond
 
SDL_Rect last_display_rect
 
char filename [1024]
 
int width
 
int height
 
int xleft
 
int ytop
 
int step
 
AVFilterContextin_video_filter
 
AVFilterContextout_video_filter
 
AVFilterContextin_audio_filter
 
AVFilterContextout_audio_filter
 
AVFilterGraphagraph
 
int last_video_stream
 
int last_audio_stream
 
int last_subtitle_stream
 
SDL_cond * continue_read_thread
 

Detailed Description

Definition at line 148 of file ffplay.c.

Member Enumeration Documentation

Enumerator
SHOW_MODE_NONE 
SHOW_MODE_VIDEO 
SHOW_MODE_WAVES 
SHOW_MODE_RDFT 
SHOW_MODE_NB 

Definition at line 207 of file ffplay.c.

Field Documentation

int VideoState::abort_request

Definition at line 153 of file ffplay.c.

Referenced by decode_interrupt_cb(), read_thread(), and stream_close().

AVFilterGraph* VideoState::agraph

Definition at line 263 of file ffplay.c.

Referenced by configure_audio_filters(), and stream_component_close().

uint8_t* VideoState::audio_buf

Definition at line 184 of file ffplay.c.

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

uint8_t* VideoState::audio_buf1

Definition at line 185 of file ffplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

unsigned int VideoState::audio_buf1_size

Definition at line 187 of file ffplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

int VideoState::audio_buf_frames_pending

Definition at line 190 of file ffplay.c.

Referenced by audio_decode_frame().

int VideoState::audio_buf_index

Definition at line 188 of file ffplay.c.

Referenced by sdl_audio_callback(), and stream_component_open().

unsigned int VideoState::audio_buf_size

Definition at line 186 of file ffplay.c.

Referenced by sdl_audio_callback(), and stream_component_open().

double VideoState::audio_clock

Definition at line 174 of file ffplay.c.

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

int VideoState::audio_clock_serial

Definition at line 175 of file ffplay.c.

Referenced by audio_decode_frame(), get_audio_clock(), sdl_audio_callback(), and stream_open().

double VideoState::audio_current_pts

Definition at line 201 of file ffplay.c.

Referenced by get_audio_clock(), and sdl_audio_callback().

double VideoState::audio_current_pts_drift

Definition at line 202 of file ffplay.c.

Referenced by get_audio_clock(), sdl_audio_callback(), and stream_open().

double VideoState::audio_diff_avg_coef

Definition at line 177 of file ffplay.c.

Referenced by stream_component_open(), and synchronize_audio().

int VideoState::audio_diff_avg_count

Definition at line 179 of file ffplay.c.

Referenced by stream_component_open(), and synchronize_audio().

double VideoState::audio_diff_cum

Definition at line 176 of file ffplay.c.

Referenced by synchronize_audio().

double VideoState::audio_diff_threshold

Definition at line 178 of file ffplay.c.

Referenced by stream_component_open(), and synchronize_audio().

struct AudioParams VideoState::audio_filter_src

Definition at line 197 of file ffplay.c.

Referenced by audio_decode_frame(), configure_audio_filters(), and stream_component_open().

int VideoState::audio_hw_buf_size

Definition at line 182 of file ffplay.c.

Referenced by sdl_audio_callback(), and stream_component_open().

int VideoState::audio_last_serial

Definition at line 194 of file ffplay.c.

Referenced by audio_decode_frame(), and stream_open().

AVPacket VideoState::audio_pkt
AVPacket VideoState::audio_pkt_temp

Definition at line 191 of file ffplay.c.

Referenced by audio_decode_frame(), and stream_component_open().

int VideoState::audio_pkt_temp_serial

Definition at line 193 of file ffplay.c.

Referenced by audio_decode_frame().

struct AudioParams VideoState::audio_src

Definition at line 195 of file ffplay.c.

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

int VideoState::audio_stream
struct AudioParams VideoState::audio_tgt
int VideoState::audio_write_buf_size

Definition at line 189 of file ffplay.c.

Referenced by sdl_audio_callback(), and video_audio_display().

int VideoState::av_sync_type

Definition at line 168 of file ffplay.c.

Referenced by get_master_sync_type(), and stream_open().

SDL_cond* VideoState::continue_read_thread

Definition at line 268 of file ffplay.c.

Referenced by audio_decode_frame(), read_thread(), stream_close(), stream_open(), and stream_seek().

double VideoState::external_clock

external clock base

Definition at line 169 of file ffplay.c.

Referenced by get_external_clock(), and update_external_clock_pts().

double VideoState::external_clock_drift

external clock base - time (av_gettime) at which we updated external_clock

Definition at line 170 of file ffplay.c.

Referenced by get_external_clock(), and update_external_clock_pts().

double VideoState::external_clock_speed

speed of the external clock

Definition at line 172 of file ffplay.c.

Referenced by check_external_clock_speed(), get_external_clock(), and update_external_clock_speed().

int64_t VideoState::external_clock_time

last reference time

Definition at line 171 of file ffplay.c.

Referenced by get_external_clock(), and update_external_clock_pts().

char VideoState::filename[1024]

Definition at line 254 of file ffplay.c.

Referenced by read_thread(), and stream_open().

int VideoState::force_refresh
AVFrame* VideoState::frame

Definition at line 205 of file ffplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

int VideoState::frame_drops_early

Definition at line 203 of file ffplay.c.

Referenced by get_video_frame(), and video_refresh().

int VideoState::frame_drops_late

Definition at line 204 of file ffplay.c.

Referenced by video_refresh().

int64_t VideoState::frame_last_dropped_pos

Definition at line 235 of file ffplay.c.

Referenced by get_video_frame(), and video_refresh().

double VideoState::frame_last_dropped_pts

Definition at line 232 of file ffplay.c.

Referenced by get_video_frame(), and video_refresh().

int VideoState::frame_last_dropped_serial

Definition at line 236 of file ffplay.c.

Referenced by get_video_frame(), and video_refresh().

double VideoState::frame_last_duration

Definition at line 231 of file ffplay.c.

Referenced by get_video_frame(), and video_refresh().

double VideoState::frame_last_filter_delay

Definition at line 234 of file ffplay.c.

Referenced by get_video_frame(), and video_thread().

double VideoState::frame_last_pts

Definition at line 230 of file ffplay.c.

Referenced by get_video_frame(), update_video_pts(), and video_refresh().

double VideoState::frame_last_returned_time

Definition at line 233 of file ffplay.c.

Referenced by video_thread().

double VideoState::frame_timer

Definition at line 229 of file ffplay.c.

Referenced by get_video_frame(), stream_toggle_pause(), and video_refresh().

int VideoState::height
AVInputFormat* VideoState::iformat

Definition at line 151 of file ffplay.c.

Referenced by read_thread(), and stream_open().

AVFilterContext* VideoState::in_audio_filter

Definition at line 261 of file ffplay.c.

Referenced by audio_decode_frame(), and configure_audio_filters().

AVFilterContext* VideoState::in_video_filter

Definition at line 259 of file ffplay.c.

Referenced by configure_video_filters(), and video_thread().

int VideoState::last_audio_stream

Definition at line 266 of file ffplay.c.

Referenced by read_thread(), stream_component_open(), and stream_cycle_channel().

SDL_Rect VideoState::last_display_rect

Definition at line 252 of file ffplay.c.

Referenced by video_image_display().

int VideoState::last_i_start

Definition at line 212 of file ffplay.c.

Referenced by video_audio_display().

int VideoState::last_paused

Definition at line 156 of file ffplay.c.

Referenced by read_thread().

int VideoState::last_subtitle_stream

Definition at line 266 of file ffplay.c.

Referenced by read_thread(), stream_component_open(), and stream_cycle_channel().

int VideoState::last_video_stream

Definition at line 266 of file ffplay.c.

Referenced by read_thread(), stream_component_open(), and stream_cycle_channel().

double VideoState::last_vis_time

Definition at line 217 of file ffplay.c.

Referenced by video_refresh().

double VideoState::max_frame_duration

Definition at line 243 of file ffplay.c.

Referenced by read_thread().

int VideoState::no_background

Definition at line 152 of file ffplay.c.

AVFilterContext* VideoState::out_audio_filter

Definition at line 262 of file ffplay.c.

Referenced by audio_decode_frame(), configure_audio_filters(), and stream_component_open().

AVFilterContext* VideoState::out_video_filter

Definition at line 260 of file ffplay.c.

Referenced by configure_video_filters(), and video_thread().

int VideoState::pictq_rindex
int VideoState::pictq_size
int VideoState::pictq_windex

Definition at line 246 of file ffplay.c.

Referenced by alloc_picture(), and queue_picture().

int VideoState::queue_attachments_req

Definition at line 157 of file ffplay.c.

Referenced by read_thread(), and stream_component_open().

RDFTContext* VideoState::rdft

Definition at line 213 of file ffplay.c.

Referenced by stream_component_close(), and video_audio_display().

int VideoState::rdft_bits

Definition at line 214 of file ffplay.c.

Referenced by stream_component_close(), and video_audio_display().

FFTSample* VideoState::rdft_data

Definition at line 215 of file ffplay.c.

Referenced by stream_component_close(), and video_audio_display().

int VideoState::read_pause_return

Definition at line 162 of file ffplay.c.

Referenced by read_thread(), and stream_toggle_pause().

SDL_Thread* VideoState::read_tid

Definition at line 149 of file ffplay.c.

Referenced by stream_close(), and stream_open().

int VideoState::realtime

Definition at line 164 of file ffplay.c.

Referenced by read_thread(), and video_refresh().

int16_t VideoState::sample_array[SAMPLE_ARRAY_SIZE]

Definition at line 210 of file ffplay.c.

Referenced by update_sample_display(), and video_audio_display().

int VideoState::sample_array_index

Definition at line 211 of file ffplay.c.

Referenced by update_sample_display(), and video_audio_display().

int VideoState::seek_flags

Definition at line 159 of file ffplay.c.

Referenced by read_thread(), and stream_seek().

int64_t VideoState::seek_pos

Definition at line 160 of file ffplay.c.

Referenced by event_loop(), read_thread(), and stream_seek().

int64_t VideoState::seek_rel

Definition at line 161 of file ffplay.c.

Referenced by read_thread(), and stream_seek().

int VideoState::seek_req

Definition at line 158 of file ffplay.c.

Referenced by read_thread(), and stream_seek().

uint8_t VideoState::silence_buf[SDL_AUDIO_BUFFER_SIZE]

Definition at line 183 of file ffplay.c.

Referenced by sdl_audio_callback().

int VideoState::step

Definition at line 256 of file ffplay.c.

Referenced by step_to_next_frame(), toggle_pause(), and video_refresh().

SubPicture VideoState::subpq[SUBPICTURE_QUEUE_SIZE]

Definition at line 224 of file ffplay.c.

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

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

Definition at line 225 of file ffplay.c.

Referenced by video_image_display(), and video_refresh().

int VideoState::subpq_size

Definition at line 225 of file ffplay.c.

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

int VideoState::subpq_windex

Definition at line 225 of file ffplay.c.

Referenced by subtitle_thread().

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

Definition at line 221 of file ffplay.c.

Referenced by stream_component_close(), and video_refresh().

SDL_Thread* VideoState::subtitle_tid

Definition at line 219 of file ffplay.c.

Referenced by stream_component_close(), and stream_component_open().

struct SwrContext* VideoState::swr_ctx

Definition at line 200 of file ffplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

int VideoState::video_clock_serial

Definition at line 244 of file ffplay.c.

Referenced by get_video_clock(), stream_open(), and update_video_pts().

int64_t VideoState::video_current_pos

Definition at line 242 of file ffplay.c.

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

double VideoState::video_current_pts

Definition at line 240 of file ffplay.c.

Referenced by get_video_clock(), stream_toggle_pause(), update_video_pts(), and video_refresh().

double VideoState::video_current_pts_drift

Definition at line 241 of file ffplay.c.

Referenced by get_video_clock(), stream_open(), stream_toggle_pause(), and update_video_pts().

int VideoState::video_stream
SDL_Thread* VideoState::video_tid

Definition at line 150 of file ffplay.c.

Referenced by stream_component_close(), and stream_component_open().

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

Definition at line 216 of file ffplay.c.

Referenced by video_audio_display().

int VideoState::ytop

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