Libav
Data Fields
PlayerState 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 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
 
AVCodecContextaudio_dec
 
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
 
int audio_buf_index
 
AVPacket audio_pkt_temp
 
AVPacket audio_pkt
 
enum AVSampleFormat sdl_sample_fmt
 
uint64_t sdl_channel_layout
 
int sdl_channels
 
int sdl_sample_rate
 
enum AVSampleFormat resample_sample_fmt
 
uint64_t resample_channel_layout
 
int resample_sample_rate
 
AVAudioResampleContextavr
 
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
 
AVCodecContextsubtitle_dec
 
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
 
int video_stream
 
AVStreamvideo_st
 
AVCodecContextvideo_dec
 
PacketQueue videoq
 
double video_current_pts
 
double video_current_pts_drift
 
int64_t video_current_pos
 
VideoPicture pictq [VIDEO_PICTURE_QUEUE_SIZE]
 
int pictq_size
 
int pictq_rindex
 
int pictq_windex
 
SDL_mutex * pictq_mutex
 
SDL_cond * pictq_cond
 
char filename [1024]
 
int width
 
int height
 
int xleft
 
int ytop
 
PtsCorrectionContext pts_ctx
 
AVFilterContextin_video_filter
 
AVFilterContextout_video_filter
 
SDL_mutex * video_filter_mutex
 
float skip_frames
 
float skip_frames_index
 
int refresh
 
SpecifierOptcodec_names
 
int nb_codec_names
 

Detailed Description

Definition at line 124 of file avplay.c.

Field Documentation

◆ parse_tid

SDL_Thread* PlayerState::parse_tid

Definition at line 125 of file avplay.c.

Referenced by player_close(), and stream_open().

◆ video_tid

SDL_Thread* PlayerState::video_tid

Definition at line 126 of file avplay.c.

Referenced by stream_component_close(), and stream_component_open().

◆ refresh_tid

SDL_Thread* PlayerState::refresh_tid

Definition at line 127 of file avplay.c.

Referenced by player_close(), and stream_open().

◆ iformat

AVInputFormat* PlayerState::iformat

Definition at line 128 of file avplay.c.

Referenced by stream_open(), and stream_setup().

◆ no_background

int PlayerState::no_background

Definition at line 129 of file avplay.c.

Referenced by video_image_display().

◆ abort_request

int PlayerState::abort_request

Definition at line 130 of file avplay.c.

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

◆ paused

int PlayerState::paused

◆ last_paused

int PlayerState::last_paused

Definition at line 132 of file avplay.c.

Referenced by decode_thread().

◆ seek_req

int PlayerState::seek_req

Definition at line 133 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

◆ seek_flags

int PlayerState::seek_flags

Definition at line 134 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

◆ seek_pos

int64_t PlayerState::seek_pos

Definition at line 135 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

◆ seek_rel

int64_t PlayerState::seek_rel

Definition at line 136 of file avplay.c.

Referenced by decode_thread(), and stream_seek().

◆ read_pause_return

int PlayerState::read_pause_return

Definition at line 137 of file avplay.c.

Referenced by decode_thread(), and stream_pause().

◆ ic

AVFormatContext* PlayerState::ic

◆ audio_stream

int PlayerState::audio_stream

◆ av_sync_type

int PlayerState::av_sync_type

Definition at line 142 of file avplay.c.

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

◆ external_clock

double PlayerState::external_clock

Definition at line 143 of file avplay.c.

Referenced by get_external_clock().

◆ external_clock_time

int64_t PlayerState::external_clock_time

Definition at line 144 of file avplay.c.

Referenced by get_external_clock().

◆ audio_clock

double PlayerState::audio_clock

Definition at line 146 of file avplay.c.

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

◆ audio_diff_cum

double PlayerState::audio_diff_cum

Definition at line 147 of file avplay.c.

Referenced by synchronize_audio().

◆ audio_diff_avg_coef

double PlayerState::audio_diff_avg_coef

Definition at line 148 of file avplay.c.

Referenced by stream_component_open(), and synchronize_audio().

◆ audio_diff_threshold

double PlayerState::audio_diff_threshold

Definition at line 149 of file avplay.c.

Referenced by stream_component_open(), and synchronize_audio().

◆ audio_diff_avg_count

int PlayerState::audio_diff_avg_count

Definition at line 150 of file avplay.c.

Referenced by stream_component_open(), and synchronize_audio().

◆ audio_st

AVStream* PlayerState::audio_st

◆ audio_dec

AVCodecContext* PlayerState::audio_dec

◆ audioq

PacketQueue PlayerState::audioq

◆ audio_hw_buf_size

int PlayerState::audio_hw_buf_size

Definition at line 154 of file avplay.c.

Referenced by stream_component_open().

◆ silence_buf

uint8_t PlayerState::silence_buf[SDL_AUDIO_BUFFER_SIZE]

Definition at line 155 of file avplay.c.

Referenced by sdl_audio_callback().

◆ audio_buf

uint8_t* PlayerState::audio_buf

Definition at line 156 of file avplay.c.

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

◆ audio_buf1

uint8_t* PlayerState::audio_buf1

Definition at line 157 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

◆ audio_buf_size

unsigned int PlayerState::audio_buf_size

Definition at line 158 of file avplay.c.

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

◆ audio_buf_index

int PlayerState::audio_buf_index

Definition at line 159 of file avplay.c.

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

◆ audio_pkt_temp

AVPacket PlayerState::audio_pkt_temp

Definition at line 160 of file avplay.c.

Referenced by audio_decode_frame().

◆ audio_pkt

AVPacket PlayerState::audio_pkt

◆ sdl_sample_fmt

enum AVSampleFormat PlayerState::sdl_sample_fmt

◆ sdl_channel_layout

uint64_t PlayerState::sdl_channel_layout

Definition at line 163 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_open().

◆ sdl_channels

int PlayerState::sdl_channels

◆ sdl_sample_rate

int PlayerState::sdl_sample_rate

◆ resample_sample_fmt

enum AVSampleFormat PlayerState::resample_sample_fmt

Definition at line 166 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_open().

◆ resample_channel_layout

uint64_t PlayerState::resample_channel_layout

Definition at line 167 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_open().

◆ resample_sample_rate

int PlayerState::resample_sample_rate

Definition at line 168 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_open().

◆ avr

AVAudioResampleContext* PlayerState::avr

Definition at line 169 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

◆ frame

AVFrame* PlayerState::frame

Definition at line 170 of file avplay.c.

Referenced by audio_decode_frame(), and stream_component_close().

◆ show_audio

int PlayerState::show_audio

◆ sample_array

int16_t PlayerState::sample_array[SAMPLE_ARRAY_SIZE]

Definition at line 173 of file avplay.c.

Referenced by update_sample_display(), and video_audio_display().

◆ sample_array_index

int PlayerState::sample_array_index

Definition at line 174 of file avplay.c.

Referenced by update_sample_display(), and video_audio_display().

◆ last_i_start

int PlayerState::last_i_start

Definition at line 175 of file avplay.c.

Referenced by video_audio_display().

◆ rdft

RDFTContext* PlayerState::rdft

Definition at line 176 of file avplay.c.

Referenced by stream_component_close(), and video_audio_display().

◆ rdft_bits

int PlayerState::rdft_bits

Definition at line 177 of file avplay.c.

Referenced by stream_component_close(), and video_audio_display().

◆ rdft_data

FFTSample* PlayerState::rdft_data

Definition at line 178 of file avplay.c.

Referenced by stream_component_close(), and video_audio_display().

◆ xpos

int PlayerState::xpos

Definition at line 179 of file avplay.c.

Referenced by video_audio_display().

◆ subtitle_tid

SDL_Thread* PlayerState::subtitle_tid

Definition at line 181 of file avplay.c.

Referenced by stream_component_close(), and stream_component_open().

◆ subtitle_stream

int PlayerState::subtitle_stream

◆ subtitle_stream_changed

int PlayerState::subtitle_stream_changed

Definition at line 183 of file avplay.c.

Referenced by stream_component_close(), and video_refresh_timer().

◆ subtitle_st

AVStream* PlayerState::subtitle_st

◆ subtitle_dec

AVCodecContext* PlayerState::subtitle_dec

Definition at line 185 of file avplay.c.

Referenced by stream_component_close(), stream_component_open(), and subtitle_thread().

◆ subtitleq

PacketQueue PlayerState::subtitleq

◆ subpq

SubPicture PlayerState::subpq[SUBPICTURE_QUEUE_SIZE]

Definition at line 187 of file avplay.c.

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

◆ subpq_size

int PlayerState::subpq_size

Definition at line 188 of file avplay.c.

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

◆ subpq_rindex

int PlayerState::subpq_rindex

Definition at line 188 of file avplay.c.

Referenced by video_image_display(), and video_refresh_timer().

◆ subpq_windex

int PlayerState::subpq_windex

Definition at line 188 of file avplay.c.

Referenced by subtitle_thread().

◆ subpq_mutex

SDL_mutex* PlayerState::subpq_mutex

◆ subpq_cond

SDL_cond* PlayerState::subpq_cond

◆ frame_timer

double PlayerState::frame_timer

Definition at line 192 of file avplay.c.

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

◆ frame_last_pts

double PlayerState::frame_last_pts

Definition at line 193 of file avplay.c.

Referenced by compute_target_time(), and get_video_frame().

◆ frame_last_delay

double PlayerState::frame_last_delay

Definition at line 194 of file avplay.c.

Referenced by compute_target_time(), and get_video_frame().

◆ video_clock

double PlayerState::video_clock

Definition at line 195 of file avplay.c.

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

◆ video_stream

int PlayerState::video_stream

◆ video_st

AVStream* PlayerState::video_st

◆ video_dec

AVCodecContext* PlayerState::video_dec

◆ videoq

PacketQueue PlayerState::videoq

◆ video_current_pts

double PlayerState::video_current_pts

Definition at line 200 of file avplay.c.

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

◆ video_current_pts_drift

double PlayerState::video_current_pts_drift

Definition at line 201 of file avplay.c.

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

◆ video_current_pos

int64_t PlayerState::video_current_pos

Definition at line 202 of file avplay.c.

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

◆ pictq

◆ pictq_size

int PlayerState::pictq_size

Definition at line 204 of file avplay.c.

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

◆ pictq_rindex

int PlayerState::pictq_rindex

Definition at line 204 of file avplay.c.

Referenced by video_image_display(), and video_refresh_timer().

◆ pictq_windex

int PlayerState::pictq_windex

Definition at line 204 of file avplay.c.

Referenced by alloc_picture(), and queue_picture().

◆ pictq_mutex

SDL_mutex* PlayerState::pictq_mutex

◆ pictq_cond

SDL_cond* PlayerState::pictq_cond

◆ filename

char PlayerState::filename[1024]

Definition at line 209 of file avplay.c.

Referenced by stream_open(), and stream_setup().

◆ width

int PlayerState::width

◆ height

int PlayerState::height

◆ xleft

int PlayerState::xleft

◆ ytop

int PlayerState::ytop

◆ pts_ctx

PtsCorrectionContext PlayerState::pts_ctx

Definition at line 212 of file avplay.c.

Referenced by get_video_frame(), and video_refresh_timer().

◆ in_video_filter

AVFilterContext* PlayerState::in_video_filter

Definition at line 214 of file avplay.c.

Referenced by configure_video_filters(), and video_thread().

◆ out_video_filter

AVFilterContext* PlayerState::out_video_filter

◆ video_filter_mutex

SDL_mutex* PlayerState::video_filter_mutex

Definition at line 216 of file avplay.c.

Referenced by event_loop(), player_close(), stream_open(), and video_thread().

◆ skip_frames

float PlayerState::skip_frames

Definition at line 218 of file avplay.c.

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

◆ skip_frames_index

float PlayerState::skip_frames_index

Definition at line 219 of file avplay.c.

Referenced by get_video_frame().

◆ refresh

int PlayerState::refresh

Definition at line 220 of file avplay.c.

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

◆ codec_names

SpecifierOpt* PlayerState::codec_names

Definition at line 222 of file avplay.c.

Referenced by choose_decoder().

◆ nb_codec_names

int PlayerState::nb_codec_names

Definition at line 223 of file avplay.c.

Referenced by choose_decoder().


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