#include "avformat.h"#include "cmdutils.h"#include <SDL.h>#include <SDL_thread.h>

Go to the source code of this file.
Data Structures | |
| struct | PacketQueue |
| struct | VideoPicture |
| struct | VideoState |
Defines | |
| #define | HAVE_AV_CONFIG_H |
| #define | MAX_VIDEOQ_SIZE (5 * 256 * 1024) |
| #define | MAX_AUDIOQ_SIZE (5 * 16 * 1024) |
| #define | SDL_AUDIO_BUFFER_SIZE 1024 |
| #define | AV_SYNC_THRESHOLD 0.01 |
| #define | AV_NOSYNC_THRESHOLD 10.0 |
| #define | SAMPLE_CORRECTION_PERCENT_MAX 10 |
| #define | AUDIO_DIFF_AVG_NB 20 |
| #define | SAMPLE_ARRAY_SIZE (2*65536) |
| #define | VIDEO_PICTURE_QUEUE_SIZE 1 |
| #define | FF_ALLOC_EVENT (SDL_USEREVENT) |
| #define | FF_REFRESH_EVENT (SDL_USEREVENT + 1) |
| #define | FF_QUIT_EVENT (SDL_USEREVENT + 2) |
Enumerations | |
| enum | { AV_SYNC_AUDIO_MASTER, AV_SYNC_VIDEO_MASTER, AV_SYNC_EXTERNAL_CLOCK } |
Functions | |
| void | show_help (void) |
| static int | audio_write_get_buf_size (VideoState *is) |
| static void | packet_queue_init (PacketQueue *q) |
| static void | packet_queue_flush (PacketQueue *q) |
| static void | packet_queue_end (PacketQueue *q) |
| static int | packet_queue_put (PacketQueue *q, AVPacket *pkt) |
| static void | packet_queue_abort (PacketQueue *q) |
| static int | packet_queue_get (PacketQueue *q, AVPacket *pkt, int block) |
| static void | fill_rectangle (SDL_Surface *screen, int x, int y, int w, int h, int color) |
| static void | video_image_display (VideoState *is) |
| static int | compute_mod (int a, int b) |
| static void | video_audio_display (VideoState *s) |
| static void | video_display (VideoState *is) |
| static Uint32 | sdl_refresh_timer_cb (Uint32 interval, void *opaque) |
| static void | schedule_refresh (VideoState *is, int delay) |
| static double | get_audio_clock (VideoState *is) |
| static double | get_video_clock (VideoState *is) |
| static double | get_external_clock (VideoState *is) |
| static double | get_master_clock (VideoState *is) |
| static void | stream_seek (VideoState *is, int64_t pos, int rel) |
| static void | stream_pause (VideoState *is) |
| static void | video_refresh_timer (void *opaque) |
| static void | alloc_picture (void *opaque) |
| static int | queue_picture (VideoState *is, AVFrame *src_frame, double pts) |
| static int | output_picture2 (VideoState *is, AVFrame *src_frame, double pts1) |
| static int | video_thread (void *arg) |
| static void | update_sample_display (VideoState *is, short *samples, int samples_size) |
| static int | synchronize_audio (VideoState *is, short *samples, int samples_size1, double pts) |
| static int | audio_decode_frame (VideoState *is, uint8_t *audio_buf, double *pts_ptr) |
| void | sdl_audio_callback (void *opaque, Uint8 *stream, int len) |
| static int | stream_component_open (VideoState *is, int stream_index) |
| static void | stream_component_close (VideoState *is, int stream_index) |
| void | dump_stream_info (AVFormatContext *s) |
| static int | decode_interrupt_cb (void) |
| static int | decode_thread (void *arg) |
| static VideoState * | stream_open (const char *filename, AVInputFormat *iformat) |
| static void | stream_close (VideoState *is) |
| void | stream_cycle_channel (VideoState *is, int codec_type) |
| void | toggle_full_screen (void) |
| void | toggle_pause (void) |
| void | step_to_next_frame (void) |
| void | do_exit (void) |
| void | toggle_audio_display (void) |
| void | event_loop (void) |
| void | opt_width (const char *arg) |
| void | opt_height (const char *arg) |
| static void | opt_format (const char *arg) |
| static void | opt_image_format (const char *arg) |
| void | opt_sync (const char *arg) |
| void | opt_seek (const char *arg) |
| static void | opt_debug (const char *arg) |
| static void | opt_vismv (const char *arg) |
| static void | opt_thread_count (const char *arg) |
| void | parse_arg_file (const char *filename) |
| int | main (int argc, char **argv) |
Variables | |
| static AVInputFormat * | file_iformat |
| static AVImageFormat * | image_format |
| static const char * | input_filename |
| static int | fs_screen_width |
| static int | fs_screen_height |
| static int | screen_width = 640 |
| static int | screen_height = 480 |
| static int | audio_disable |
| static int | video_disable |
| static int | display_disable |
| static int | show_status |
| static int | av_sync_type = AV_SYNC_AUDIO_MASTER |
| static int64_t | start_time = AV_NOPTS_VALUE |
| static int | debug = 0 |
| static int | debug_mv = 0 |
| static int | step = 0 |
| static int | thread_count = 1 |
| static int | workaround_bugs = 1 |
| static int | fast = 0 |
| static int | lowres = 0 |
| static int | idct = FF_IDCT_AUTO |
| static enum AVDiscard | skip_frame = AVDISCARD_DEFAULT |
| static enum AVDiscard | skip_idct = AVDISCARD_DEFAULT |
| static enum AVDiscard | skip_loop_filter = AVDISCARD_DEFAULT |
| static int | error_resilience = FF_ER_CAREFUL |
| static int | error_concealment = 3 |
| static int | is_full_screen |
| static VideoState * | cur_stream |
| static int64_t | audio_callback_time |
| SDL_Surface * | screen |
| static VideoState * | global_video_state |
| const OptionDef | options [] |
| #define AUDIO_DIFF_AVG_NB 20 |
Definition at line 74 of file ffplay.c.
Referenced by stream_component_open(), and synchronize_audio().
| #define AV_NOSYNC_THRESHOLD 10.0 |
Definition at line 68 of file ffplay.c.
Referenced by synchronize_audio(), and video_refresh_timer().
| #define AV_SYNC_THRESHOLD 0.01 |
| #define FF_ALLOC_EVENT (SDL_USEREVENT) |
| #define FF_QUIT_EVENT (SDL_USEREVENT + 2) |
| #define FF_REFRESH_EVENT (SDL_USEREVENT + 1) |
| #define MAX_AUDIOQ_SIZE (5 * 16 * 1024) |
| #define MAX_VIDEOQ_SIZE (5 * 256 * 1024) |
| #define SAMPLE_ARRAY_SIZE (2*65536) |
Definition at line 77 of file ffplay.c.
Referenced by update_sample_display(), and video_audio_display().
| #define SAMPLE_CORRECTION_PERCENT_MAX 10 |
| #define SDL_AUDIO_BUFFER_SIZE 1024 |
| #define VIDEO_PICTURE_QUEUE_SIZE 1 |
Definition at line 88 of file ffplay.c.
Referenced by queue_picture(), stream_close(), and video_refresh_timer().
| anonymous enum |
| static void alloc_picture | ( | void * | opaque | ) | [static] |
Definition at line 757 of file ffplay.c.
References VideoPicture::allocated, VideoPicture::bmp, VideoPicture::height, VideoState::pictq, VideoState::pictq_cond, VideoState::pictq_mutex, VideoState::pictq_windex, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_YUV420P, PIX_FMT_YUV422, PIX_FMT_YUV422P, PIX_FMT_YUV444P, screen, VideoState::video_st, and VideoPicture::width.
Referenced by event_loop(), MPV_frame_start(), and open_video().
| static int audio_decode_frame | ( | VideoState * | is, | |
| uint8_t * | audio_buf, | |||
| double * | pts_ptr | |||
| ) | [static] |
Definition at line 1050 of file ffplay.c.
References PacketQueue::abort_request, VideoState::audio_clock, VideoState::audio_decoder_mutex, VideoState::audio_pkt, VideoState::audio_pkt_data, VideoState::audio_pkt_size, VideoState::audio_st, VideoState::audioq, AV_NOPTS_VALUE, av_q2d(), avcodec_decode_audio(), packet_queue_get(), and VideoState::paused.
Referenced by sdl_audio_callback().

| static int audio_write_get_buf_size | ( | VideoState * | is | ) | [static] |
Definition at line 1115 of file ffplay.c.
References VideoState::audio_buf_index, and VideoState::audio_hw_buf_size.
Referenced by get_audio_clock(), and video_audio_display().
| static int compute_mod | ( | int | a, | |
| int | b | |||
| ) | [inline, static] |
| static int decode_interrupt_cb | ( | void | ) | [static] |
| static int decode_thread | ( | void * | arg | ) | [static] |
Definition at line 1319 of file ffplay.c.
References VideoState::abort_request, VideoState::audio_decoder_mutex, audio_disable, VideoState::audio_stream, VideoState::audioq, AV_NOPTS_VALUE, AV_TIME_BASE, avcodec_flush_buffers(), AVCodecContext::codec_type, CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO, decode_interrupt_cb(), display_disable, dump_stream_info(), FF_QUIT_EVENT, VideoState::filename, fprintf, VideoState::ic, VideoState::iformat, image_format, VideoState::last_paused, MAX_AUDIOQ_SIZE, MAX_VIDEOQ_SIZE, NULL, packet_queue_flush(), packet_queue_put(), VideoState::paused, print_error(), VideoState::seek_flags, VideoState::seek_pos, VideoState::seek_req, VideoState::show_audio, show_status, PacketQueue::size, start_time, stream_component_close(), stream_component_open(), timestamp, VideoState::video_decoder_mutex, video_disable, VideoState::video_stream, and VideoState::videoq.
Referenced by stream_open().

| void do_exit | ( | void | ) |
Definition at line 1660 of file ffplay.c.
References NULL, show_status, and stream_close().
Referenced by event_loop().

| void dump_stream_info | ( | AVFormatContext * | s | ) |
| void event_loop | ( | void | ) |
Definition at line 1680 of file ffplay.c.
References alloc_picture(), AV_TIME_BASE, CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO, do_exit(), FF_ALLOC_EVENT, FF_QUIT_EVENT, FF_REFRESH_EVENT, fprintf, get_master_clock(), VideoState::height, VideoState::ic, LL, screen, step_to_next_frame(), stream_cycle_channel(), stream_seek(), toggle_audio_display(), toggle_full_screen(), toggle_pause(), video_refresh_timer(), and VideoState::width.
Referenced by main().

| static void fill_rectangle | ( | SDL_Surface * | screen, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | color | |||
| ) | [inline, static] |
Definition at line 325 of file ffplay.c.
Referenced by decode_cabac_residual(), decode_mb_cabac(), decode_mb_cavlc(), decode_mb_skip(), fill_caches(), pred_direct_motion(), svq3_mc_dir(), video_audio_display(), and video_image_display().
| static double get_audio_clock | ( | VideoState * | is | ) | [static] |
Definition at line 562 of file ffplay.c.
References VideoState::audio_clock, VideoState::audio_st, and audio_write_get_buf_size().
Referenced by get_master_clock(), synchronize_audio(), and video_refresh_timer().

| static double get_external_clock | ( | VideoState * | is | ) | [static] |
Definition at line 591 of file ffplay.c.
References e, VideoState::external_clock, and VideoState::external_clock_time.
Referenced by get_master_clock().
| static double get_master_clock | ( | VideoState * | is | ) | [static] |
Definition at line 599 of file ffplay.c.
References VideoState::audio_st, AV_SYNC_AUDIO_MASTER, VideoState::av_sync_type, AV_SYNC_VIDEO_MASTER, get_audio_clock(), get_external_clock(), get_video_clock(), and VideoState::video_st.
Referenced by event_loop(), synchronize_audio(), and video_refresh_timer().

| static double get_video_clock | ( | VideoState * | is | ) | [static] |
Definition at line 579 of file ffplay.c.
References VideoState::paused, VideoState::video_current_pts, and VideoState::video_current_pts_time.
Referenced by get_master_clock(), step_to_next_frame(), stream_pause(), and video_refresh_timer().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 1922 of file ffplay.c.
References display_disable, event_loop(), file_iformat, fprintf, fs_screen_height, fs_screen_width, input_filename, is_full_screen, NULL, parse_options(), screen, screen_height, screen_width, show_help(), stream_open(), and video_disable.

| static void opt_debug | ( | const char * | arg | ) | [static] |
| static void opt_format | ( | const char * | arg | ) | [static] |
| void opt_height | ( | const char * | arg | ) |
| static void opt_image_format | ( | const char * | arg | ) | [static] |
| void opt_seek | ( | const char * | arg | ) |
| void opt_sync | ( | const char * | arg | ) |
Definition at line 1821 of file ffplay.c.
References AV_SYNC_AUDIO_MASTER, AV_SYNC_EXTERNAL_CLOCK, av_sync_type, AV_SYNC_VIDEO_MASTER, and show_help().

| static void opt_thread_count | ( | const char * | arg | ) | [static] |
| static void opt_vismv | ( | const char * | arg | ) | [static] |
| void opt_width | ( | const char * | arg | ) |
| static int output_picture2 | ( | VideoState * | is, | |
| AVFrame * | src_frame, | |||
| double | pts1 | |||
| ) | [static] |
Definition at line 873 of file ffplay.c.
References av_q2d(), FF_B_TYPE, FF_I_TYPE, queue_picture(), VideoState::video_clock, and VideoState::video_st.
Referenced by video_thread().

| static void packet_queue_abort | ( | PacketQueue * | q | ) | [static] |
Definition at line 278 of file ffplay.c.
References PacketQueue::abort_request, PacketQueue::cond, and PacketQueue::mutex.
Referenced by stream_component_close().
| static void packet_queue_end | ( | PacketQueue * | q | ) | [static] |
Definition at line 239 of file ffplay.c.
References PacketQueue::cond, PacketQueue::mutex, and packet_queue_flush().
Referenced by stream_component_close().

| static void packet_queue_flush | ( | PacketQueue * | q | ) | [static] |
Definition at line 222 of file ffplay.c.
References av_freep(), PacketQueue::first_pkt, PacketQueue::last_pkt, PacketQueue::mutex, PacketQueue::nb_packets, NULL, and PacketQueue::size.
Referenced by decode_thread(), and packet_queue_end().

| static int packet_queue_get | ( | PacketQueue * | q, | |
| AVPacket * | pkt, | |||
| int | block | |||
| ) | [static] |
Definition at line 290 of file ffplay.c.
References PacketQueue::abort_request, av_free(), PacketQueue::cond, PacketQueue::first_pkt, PacketQueue::last_pkt, PacketQueue::mutex, PacketQueue::nb_packets, NULL, and PacketQueue::size.
Referenced by audio_decode_frame(), and video_thread().

| static void packet_queue_init | ( | PacketQueue * | q | ) | [static] |
Definition at line 215 of file ffplay.c.
References PacketQueue::cond, and PacketQueue::mutex.
Referenced by stream_component_open().
| static int packet_queue_put | ( | PacketQueue * | q, | |
| AVPacket * | pkt | |||
| ) | [static] |
Definition at line 246 of file ffplay.c.
References av_malloc(), PacketQueue::cond, PacketQueue::first_pkt, PacketQueue::last_pkt, PacketQueue::mutex, PacketQueue::nb_packets, NULL, and PacketQueue::size.
Referenced by decode_thread().

| void parse_arg_file | ( | const char * | filename | ) |
| static int queue_picture | ( | VideoState * | is, | |
| AVFrame * | src_frame, | |||
| double | pts | |||
| ) | [static] |
Definition at line 797 of file ffplay.c.
References PacketQueue::abort_request, VideoPicture::allocated, VideoPicture::bmp, AVPicture::data, FF_ALLOC_EVENT, VideoPicture::height, img_convert(), AVPicture::linesize, VideoState::pictq, VideoState::pictq_cond, VideoState::pictq_mutex, VideoState::pictq_size, VideoState::pictq_windex, PIX_FMT_YUV420P, VideoPicture::pts, VIDEO_PICTURE_QUEUE_SIZE, VideoState::video_st, VideoState::videoq, and VideoPicture::width.
Referenced by output_picture2().

| static void schedule_refresh | ( | VideoState * | is, | |
| int | delay | |||
| ) | [static] |
Definition at line 556 of file ffplay.c.
References sdl_refresh_timer_cb().
Referenced by stream_open(), and video_refresh_timer().

| void sdl_audio_callback | ( | void * | opaque, | |
| Uint8 * | stream, | |||
| int | len | |||
| ) |
Definition at line 1122 of file ffplay.c.
References VideoState::audio_buf, VideoState::audio_buf_index, VideoState::audio_buf_size, audio_callback_time, audio_decode_frame(), audio_size, memcpy, VideoState::show_audio, synchronize_audio(), and update_sample_display().
Referenced by stream_component_open().

| static Uint32 sdl_refresh_timer_cb | ( | Uint32 | interval, | |
| void * | opaque | |||
| ) | [static] |
Definition at line 546 of file ffplay.c.
References FF_REFRESH_EVENT.
Referenced by schedule_refresh().
| void show_help | ( | void | ) |
Definition at line 1890 of file ffplay.c.
References FFMPEG_VERSION, OPT_EXPERT, and show_help_options().

| void step_to_next_frame | ( | void | ) |
Definition at line 1650 of file ffplay.c.
References get_video_clock(), VideoState::paused, step, and VideoState::video_current_pts.
Referenced by event_loop().

| static void stream_close | ( | VideoState * | is | ) | [static] |
Definition at line 1556 of file ffplay.c.
References VideoState::abort_request, VideoState::audio_decoder_mutex, VideoPicture::bmp, NULL, VideoState::parse_tid, VideoState::pictq, VideoState::pictq_cond, VideoState::pictq_mutex, VideoState::video_decoder_mutex, and VIDEO_PICTURE_QUEUE_SIZE.
Referenced by do_exit().
| static void stream_component_close | ( | VideoState * | is, | |
| int | stream_index | |||
| ) | [static] |
Definition at line 1246 of file ffplay.c.
References VideoState::audio_st, VideoState::audio_stream, VideoState::audioq, avcodec_close(), AVCodecContext::codec, AVCodecContext::codec_type, CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO, VideoState::ic, NULL, packet_queue_abort(), packet_queue_end(), VideoState::pictq_cond, VideoState::pictq_mutex, VideoState::video_st, VideoState::video_stream, VideoState::video_tid, and VideoState::videoq.
Referenced by decode_thread(), and stream_cycle_channel().

| static int stream_component_open | ( | VideoState * | is, | |
| int | stream_index | |||
| ) | [static] |
Definition at line 1158 of file ffplay.c.
References VideoState::audio_buf_index, VideoState::audio_buf_size, VideoState::audio_diff_avg_coef, VideoState::audio_diff_avg_count, AUDIO_DIFF_AVG_NB, VideoState::audio_diff_threshold, VideoState::audio_hw_buf_size, VideoState::audio_pkt, VideoState::audio_st, VideoState::audio_stream, VideoState::audioq, AV_LOG_DEBUG, av_log_set_level(), avcodec_find_decoder(), avcodec_open(), avcodec_thread_init(), AVCodecContext::channels, AVCodecContext::codec, CODEC_FLAG2_FAST, CODEC_FLAG_EMU_EDGE, AVCodecContext::codec_id, AVCodecContext::codec_type, CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO, debug, AVCodecContext::debug, debug_mv, AVCodecContext::debug_mv, e, error_concealment, AVCodecContext::error_concealment, error_resilience, AVCodecContext::error_resilience, fast, AVCodecContext::flags, AVCodecContext::flags2, fprintf, VideoState::frame_last_delay, VideoState::frame_timer, VideoState::ic, idct, AVCodecContext::idct_algo, lowres, AVCodecContext::lowres, packet_queue_init(), AVCodecContext::sample_rate, SDL_AUDIO_BUFFER_SIZE, sdl_audio_callback(), skip_frame, AVCodecContext::skip_frame, skip_idct, AVCodecContext::skip_idct, skip_loop_filter, AVCodecContext::skip_loop_filter, AVCodecContext::thread_count, thread_count, VideoState::video_current_pts_time, VideoState::video_st, VideoState::video_stream, video_thread(), VideoState::video_tid, VideoState::videoq, workaround_bugs, and AVCodecContext::workaround_bugs.
Referenced by decode_thread(), and stream_cycle_channel().

| void stream_cycle_channel | ( | VideoState * | is, | |
| int | codec_type | |||
| ) |
Definition at line 1578 of file ffplay.c.
References VideoState::audio_stream, CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO, VideoState::ic, stream_component_close(), stream_component_open(), and VideoState::video_stream.
Referenced by event_loop().

| static VideoState* stream_open | ( | const char * | filename, | |
| AVInputFormat * | iformat | |||
| ) | [static] |
Definition at line 1521 of file ffplay.c.
References VideoState::audio_decoder_mutex, av_free(), av_mallocz(), av_sync_type, VideoState::av_sync_type, decode_thread(), VideoState::filename, VideoState::height, VideoState::iformat, NULL, VideoState::parse_tid, VideoState::pictq_cond, VideoState::pictq_mutex, schedule_refresh(), screen, VideoState::video_decoder_mutex, VideoState::width, VideoState::xleft, and VideoState::ytop.
Referenced by main().

| static void stream_pause | ( | VideoState * | is | ) | [static] |
Definition at line 630 of file ffplay.c.
References get_video_clock(), VideoState::paused, and VideoState::video_current_pts.
Referenced by toggle_pause(), and video_thread().

| static void stream_seek | ( | VideoState * | is, | |
| int64_t | pos, | |||
| int | rel | |||
| ) | [static] |
Definition at line 620 of file ffplay.c.
References VideoState::seek_flags, VideoState::seek_pos, and VideoState::seek_req.
Referenced by event_loop().
| static int synchronize_audio | ( | VideoState * | is, | |
| short * | samples, | |||
| int | samples_size1, | |||
| double | pts | |||
| ) | [static] |
Definition at line 974 of file ffplay.c.
References VideoState::audio_clock, VideoState::audio_diff_avg_coef, VideoState::audio_diff_avg_count, AUDIO_DIFF_AVG_NB, VideoState::audio_diff_cum, VideoState::audio_diff_threshold, VideoState::audio_st, AV_NOSYNC_THRESHOLD, AV_SYNC_EXTERNAL_CLOCK, VideoState::av_sync_type, AV_SYNC_VIDEO_MASTER, get_audio_clock(), get_master_clock(), memcpy, nb, SAMPLE_CORRECTION_PERCENT_MAX, VideoState::video_clock, and VideoState::video_st.
Referenced by sdl_audio_callback().

| void toggle_audio_display | ( | void | ) |
Definition at line 1672 of file ffplay.c.
References VideoState::show_audio.
Referenced by event_loop().
| void toggle_full_screen | ( | void | ) |
Definition at line 1618 of file ffplay.c.
References fs_screen_height, fs_screen_width, VideoState::height, is_full_screen, screen, screen_height, screen_width, and VideoState::width.
Referenced by event_loop().
| void toggle_pause | ( | void | ) |
Definition at line 1643 of file ffplay.c.
References step, and stream_pause().
Referenced by event_loop().

| static void update_sample_display | ( | VideoState * | is, | |
| short * | samples, | |||
| int | samples_size | |||
| ) | [static] |
Definition at line 952 of file ffplay.c.
References VideoState::audio_st, memcpy, VideoState::sample_array, VideoState::sample_array_index, and SAMPLE_ARRAY_SIZE.
Referenced by sdl_audio_callback().
| static void video_audio_display | ( | VideoState * | s | ) | [static] |
Definition at line 465 of file ffplay.c.
References audio_callback_time, VideoState::audio_st, audio_write_get_buf_size(), compute_mod(), fill_rectangle(), VideoState::height, VideoState::last_i_start, VideoState::paused, VideoState::sample_array, VideoState::sample_array_index, SAMPLE_ARRAY_SIZE, screen, width, VideoState::width, VideoState::xleft, and VideoState::ytop.
Referenced by video_display().

| static void video_display | ( | VideoState * | is | ) | [static] |
Definition at line 538 of file ffplay.c.
References VideoState::audio_st, VideoState::show_audio, video_audio_display(), video_image_display(), and VideoState::video_st.
Referenced by video_refresh_timer().

| static void video_image_display | ( | VideoState * | is | ) | [static] |
Definition at line 374 of file ffplay.c.
References av_q2d(), VideoPicture::bmp, VideoState::dtg_active_format, FF_DTG_AFD_14_9, FF_DTG_AFD_16_9, FF_DTG_AFD_16_9_SP_14_9, FF_DTG_AFD_4_3, FF_DTG_AFD_4_3_SP_14_9, FF_DTG_AFD_SAME, FF_DTG_AFD_SP_4_3, fill_rectangle(), VideoState::height, height, VideoState::no_background, VideoState::pictq, VideoState::pictq_rindex, screen, VideoState::video_st, VideoState::width, width, VideoState::xleft, and VideoState::ytop.
Referenced by video_display().

| static void video_refresh_timer | ( | void * | opaque | ) | [static] |
Definition at line 639 of file ffplay.c.
References VideoState::audio_st, VideoState::audioq, AV_NOSYNC_THRESHOLD, AV_SYNC_AUDIO_MASTER, AV_SYNC_EXTERNAL_CLOCK, AV_SYNC_THRESHOLD, VideoState::av_sync_type, cur_time, VideoState::frame_last_delay, VideoState::frame_last_pts, VideoState::frame_timer, get_audio_clock(), get_master_clock(), get_video_clock(), VideoState::pictq, VideoState::pictq_cond, VideoState::pictq_mutex, VideoState::pictq_rindex, VideoState::pictq_size, VideoPicture::pts, schedule_refresh(), show_status, PacketQueue::size, VideoState::video_current_pts, VideoState::video_current_pts_time, video_display(), VIDEO_PICTURE_QUEUE_SIZE, VideoState::video_st, and VideoState::videoq.
Referenced by event_loop().

| static int video_thread | ( | void * | arg | ) | [static] |
Definition at line 910 of file ffplay.c.
References PacketQueue::abort_request, av_free(), AV_NOPTS_VALUE, av_q2d(), avcodec_alloc_frame(), avcodec_decode_video(), output_picture2(), packet_queue_get(), VideoState::paused, step, stream_pause(), VideoState::video_decoder_mutex, VideoState::video_st, and VideoState::videoq.
Referenced by stream_component_open().

int64_t audio_callback_time [static] |
Definition at line 206 of file ffplay.c.
Referenced by sdl_audio_callback(), and video_audio_display().
int audio_disable [static] |
int av_sync_type = AV_SYNC_AUDIO_MASTER [static] |
VideoState* cur_stream [static] |
int display_disable [static] |
int error_concealment = 3 [static] |
int error_resilience = FF_ER_CAREFUL [static] |
int fast = 0 [static] |
AVInputFormat* file_iformat [static] |
int fs_screen_height [static] |
int fs_screen_width [static] |
VideoState* global_video_state [static] |
int idct = FF_IDCT_AUTO [static] |
Definition at line 196 of file ffplay.c.
Referenced by ff_simple_idct_add_mmx(), ff_simple_idct_mmx(), ff_simple_idct_put_mmx(), ff_vp3_idct_add_c(), ff_vp3_idct_c(), ff_vp3_idct_put_c(), idct_put(), init_transform_hv(), main(), and stream_component_open().
AVImageFormat* image_format [static] |
const char* input_filename [static] |
Definition at line 178 of file ffplay.c.
Referenced by main(), open_input_stream(), and parse_arg_file().
int is_full_screen [static] |
| SDL_Surface* screen |
Definition at line 212 of file ffplay.c.
Referenced by alloc_picture(), event_loop(), main(), stream_open(), toggle_full_screen(), video_audio_display(), and video_image_display().
int screen_height = 480 [static] |
Definition at line 182 of file ffplay.c.
Referenced by main(), opt_height(), and toggle_full_screen().
int screen_width = 640 [static] |
Definition at line 181 of file ffplay.c.
Referenced by main(), opt_width(), and toggle_full_screen().
int show_status [static] |
Definition at line 186 of file ffplay.c.
Referenced by decode_thread(), do_exit(), and video_refresh_timer().
enum AVDiscard skip_frame = AVDISCARD_DEFAULT [static] |
Definition at line 198 of file ffplay.c.
Referenced by MPV_decode_mb_internal(), and stream_component_open().
enum AVDiscard skip_loop_filter = AVDISCARD_DEFAULT [static] |
int64_t start_time = AV_NOPTS_VALUE [static] |
int step = 0 [static] |
Definition at line 191 of file ffplay.c.
Referenced by adpcm_decode_frame(), adpcm_ima_expand_nibble(), BlockQuantH263(), DenoiseFFTEffect::collect_noise(), decode(), dequantize_sample(), encode(), fill_default_ref_list(), fuji_rotate(), ima4_decode_block(), ima4_encode_sample(), FileBase::ima4_encode_sample(), init_pass2(), kodak_radc_load_raw(), mpeg3video_ditherframe(), Overlay::process_buffer(), LoopAudio::process_buffer(), CrossfadeFFT::process_buffer(), CrossfadeFFT::process_buffer_oversample(), AffineUnit::process_package(), quicktime_decode_rawaudio(), quicktime_decode_ulaw(), quicktime_encode_rawaudio(), quicktime_encode_ulaw(), step_one(), step_to_next_frame(), step_two(), toggle_pause(), video_thread(), vorbis_parse_audio_packet(), vorbis_residue_decode(), wmx1_write_cache(), wmx2_decode_block(), and wmx2_encode_sample().
int thread_count = 1 [static] |
int video_disable [static] |
int workaround_bugs = 1 [static] |
1.5.5