#include "config.h"
#include <inttypes.h>
#include <math.h>
#include <limits.h>
#include "libavutil/avstring.h"
#include "libavutil/pixdesc.h"
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
#include "libavcodec/audioconvert.h"
#include "libavcodec/colorspace.h"
#include "libavcodec/opt.h"
#include "libavcodec/avfft.h"
#include "cmdutils.h"
#include <SDL.h>
#include <SDL_thread.h>
#include <unistd.h>
#include <assert.h>
#include "cmdutils_common_opts.h"
Go to the source code of this file.
Data Structures | |
struct | PacketQueue |
struct | VideoPicture |
struct | SubPicture |
struct | VideoState |
Defines | |
#define | MAX_QUEUE_SIZE (15 * 1024 * 1024) |
#define | MIN_AUDIOQ_SIZE (20 * 16 * 1024) |
#define | MIN_FRAMES 5 |
#define | SDL_AUDIO_BUFFER_SIZE 1024 |
#define | AV_SYNC_THRESHOLD 0.01 |
#define | AV_NOSYNC_THRESHOLD 10.0 |
#define | FRAME_SKIP_FACTOR 0.05 |
#define | SAMPLE_CORRECTION_PERCENT_MAX 10 |
#define | AUDIO_DIFF_AVG_NB 20 |
#define | SAMPLE_ARRAY_SIZE (2*65536) |
#define | VIDEO_PICTURE_QUEUE_SIZE 2 |
#define | SUBPICTURE_QUEUE_SIZE 4 |
#define | FF_ALLOC_EVENT (SDL_USEREVENT) |
#define | FF_REFRESH_EVENT (SDL_USEREVENT + 1) |
#define | FF_QUIT_EVENT (SDL_USEREVENT + 2) |
#define | ALPHA_BLEND(a, oldp, newp, s) ((((oldp << s) * (255 - (a))) + (newp * (a))) / (255 << s)) |
#define | RGBA_IN(r, g, b, a, s) |
#define | YUVA_IN(y, u, v, a, s, pal) |
#define | YUVA_OUT(d, y, u, v, a) |
#define | BPP 1 |
Typedefs | |
typedef struct PacketQueue | PacketQueue |
typedef struct VideoPicture | VideoPicture |
typedef struct SubPicture | SubPicture |
typedef struct VideoState | VideoState |
Enumerations | |
enum | { AV_SYNC_AUDIO_MASTER, AV_SYNC_VIDEO_MASTER, AV_SYNC_EXTERNAL_CLOCK } |
Functions | |
static void | show_help (void) |
static int | audio_write_get_buf_size (VideoState *is) |
static int | packet_queue_put (PacketQueue *q, AVPacket *pkt) |
static void | packet_queue_init (PacketQueue *q) |
static void | packet_queue_flush (PacketQueue *q) |
static void | packet_queue_end (PacketQueue *q) |
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 | blend_subrect (AVPicture *dst, const AVSubtitleRect *rect, int imgw, int imgh) |
static void | free_subpicture (SubPicture *sp) |
static void | video_image_display (VideoState *is) |
static int | compute_mod (int a, int b) |
static void | video_audio_display (VideoState *s) |
static int | video_open (VideoState *is) |
static void | video_display (VideoState *is) |
static int | refresh_thread (void *opaque) |
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, int64_t rel, int seek_by_bytes) |
static void | stream_pause (VideoState *is) |
static double | compute_target_time (double frame_current_pts, 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, int64_t pos) |
static int | output_picture2 (VideoState *is, AVFrame *src_frame, double pts1, int64_t pos) |
compute the exact PTS for the picture if it is omitted in the stream | |
static int | get_video_frame (VideoState *is, AVFrame *frame, int64_t *pts, AVPacket *pkt) |
static int | video_thread (void *arg) |
static int | subtitle_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, double *pts_ptr) |
static 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) |
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) |
static void | stream_cycle_channel (VideoState *is, int codec_type) |
static void | toggle_full_screen (void) |
static void | toggle_pause (void) |
static void | step_to_next_frame (void) |
static void | do_exit (void) |
static void | toggle_audio_display (void) |
static void | event_loop (void) |
static void | opt_frame_size (const char *arg) |
static int | opt_width (const char *opt, const char *arg) |
static int | opt_height (const char *opt, const char *arg) |
static void | opt_format (const char *arg) |
static void | opt_frame_pix_fmt (const char *arg) |
static int | opt_sync (const char *opt, const char *arg) |
static int | opt_seek (const char *opt, const char *arg) |
static int | opt_duration (const char *opt, const char *arg) |
static int | opt_debug (const char *opt, const char *arg) |
static int | opt_vismv (const char *opt, const char *arg) |
static int | opt_thread_count (const char *opt, const char *arg) |
static void | show_usage (void) |
static void | opt_input_file (const char *filename) |
int | main (int argc, char **argv) |
Variables | |
const char | program_name [] = "FFplay" |
program name, defined by the program for show_version(). | |
const int | program_birth_year = 2003 |
program birth year, defined by the program for show_banner() | |
static int | sws_flags = SWS_BICUBIC |
static AVInputFormat * | file_iformat |
static const char * | input_filename |
static const char * | window_title |
static int | fs_screen_width |
static int | fs_screen_height |
static int | screen_width = 0 |
static int | screen_height = 0 |
static int | frame_width = 0 |
static int | frame_height = 0 |
static enum PixelFormat | frame_pix_fmt = PIX_FMT_NONE |
static int | audio_disable |
static int | video_disable |
static int | wanted_stream [AVMEDIA_TYPE_NB] |
static int | seek_by_bytes = -1 |
static int | display_disable |
static int | show_status = 1 |
static int | av_sync_type = AV_SYNC_AUDIO_MASTER |
static int64_t | start_time = AV_NOPTS_VALUE |
static int64_t | duration = 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 | genpts = 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_recognition = FF_ER_CAREFUL |
static int | error_concealment = 3 |
static int | decoder_reorder_pts = -1 |
static int | autoexit |
static int | loop = 1 |
static int | framedrop = 1 |
static int | rdftspeed = 20 |
static int | is_full_screen |
static VideoState * | cur_stream |
static int64_t | audio_callback_time |
static AVPacket | flush_pkt |
static SDL_Surface * | screen |
static VideoState * | global_video_state |
static const OptionDef | options [] |
#define ALPHA_BLEND | ( | a, | ||
oldp, | ||||
newp, | ||||
s | ||||
) | ((((oldp << s) * (255 - (a))) + (newp * (a))) / (255 << s)) |
Definition at line 448 of file ffplay.c.
Referenced by blend_subrect().
#define AUDIO_DIFF_AVG_NB 20 |
Definition at line 78 of file ffplay.c.
Referenced by stream_component_open(), and synchronize_audio().
#define AV_NOSYNC_THRESHOLD 10.0 |
Definition at line 70 of file ffplay.c.
Referenced by compute_target_time(), and synchronize_audio().
#define AV_SYNC_THRESHOLD 0.01 |
Definition at line 68 of file ffplay.c.
Referenced by compute_target_time().
#define BPP 1 |
Definition at line 475 of file ffplay.c.
Referenced by blend_subrect().
#define FF_ALLOC_EVENT (SDL_USEREVENT) |
Definition at line 279 of file ffplay.c.
Referenced by event_loop().
#define FF_QUIT_EVENT (SDL_USEREVENT + 2) |
Definition at line 281 of file ffplay.c.
Referenced by event_loop().
#define FF_REFRESH_EVENT (SDL_USEREVENT + 1) |
Definition at line 280 of file ffplay.c.
Referenced by event_loop().
#define FRAME_SKIP_FACTOR 0.05 |
Definition at line 72 of file ffplay.c.
Referenced by queue_picture().
#define MAX_QUEUE_SIZE (15 * 1024 * 1024) |
Definition at line 59 of file ffplay.c.
Referenced by decode_thread().
#define MIN_AUDIOQ_SIZE (20 * 16 * 1024) |
Definition at line 60 of file ffplay.c.
Referenced by decode_thread().
#define MIN_FRAMES 5 |
Definition at line 61 of file ffplay.c.
Referenced by decode_thread().
#define RGBA_IN | ( | r, | ||
g, | ||||
b, | ||||
a, | ||||
s | ||||
) |
{\ unsigned int v = ((const uint32_t *)(s))[0];\ a = (v >> 24) & 0xff;\ r = (v >> 16) & 0xff;\ g = (v >> 8) & 0xff;\ b = v & 0xff;\ }
Definition at line 451 of file ffplay.c.
Referenced by subtitle_thread().
#define SAMPLE_ARRAY_SIZE (2*65536) |
Definition at line 81 of file ffplay.c.
Referenced by update_sample_display(), and video_audio_display().
#define SDL_AUDIO_BUFFER_SIZE 1024 |
Definition at line 65 of file ffplay.c.
Referenced by stream_component_open().
#define SUBPICTURE_QUEUE_SIZE 4 |
Definition at line 97 of file ffplay.c.
Referenced by subtitle_thread(), and video_refresh_timer().
#define VIDEO_PICTURE_QUEUE_SIZE 2 |
Definition at line 96 of file ffplay.c.
Referenced by queue_picture(), and video_refresh_timer().
#define YUVA_IN | ( | y, | ||
u, | ||||
v, | ||||
a, | ||||
s, | ||||
pal | ||||
) |
{\ unsigned int val = ((const uint32_t *)(pal))[*(const uint8_t*)(s)];\ a = (val >> 24) & 0xff;\ y = (val >> 16) & 0xff;\ u = (val >> 8) & 0xff;\ v = val & 0xff;\ }
Definition at line 460 of file ffplay.c.
Referenced by blend_subrect().
#define YUVA_OUT | ( | d, | ||
y, | ||||
u, | ||||
v, | ||||
a | ||||
) |
{\ ((uint32_t *)(d))[0] = (a << 24) | (y << 16) | (u << 8) | v;\ }
Definition at line 469 of file ffplay.c.
Referenced by subtitle_thread().
typedef struct PacketQueue PacketQueue |
typedef struct SubPicture SubPicture |
typedef struct VideoPicture VideoPicture |
typedef struct VideoState VideoState |
anonymous enum |
static void alloc_picture | ( | void * | opaque | ) | [static] |
Definition at line 1300 of file ffplay.c.
Referenced by event_loop(), and open_video().
static int audio_decode_frame | ( | VideoState * | is, | |
double * | pts_ptr | |||
) | [static] |
Definition at line 2027 of file ffplay.c.
Referenced by sdl_audio_callback().
static int audio_write_get_buf_size | ( | VideoState * | is | ) | [static] |
Definition at line 2131 of file ffplay.c.
Referenced by get_audio_clock(), and video_audio_display().
static void blend_subrect | ( | AVPicture * | dst, | |
const AVSubtitleRect * | rect, | |||
int | imgw, | |||
int | imgh | |||
) | [static] |
Definition at line 477 of file ffplay.c.
Referenced by video_image_display().
static int compute_mod | ( | int | a, | |
int | b | |||
) | [inline, static] |
Definition at line 815 of file ffplay.c.
Referenced by video_audio_display().
static double compute_target_time | ( | double | frame_current_pts, | |
VideoState * | is | |||
) | [static] |
Definition at line 1118 of file ffplay.c.
Referenced by queue_picture().
static int decode_interrupt_cb | ( | void | ) | [static] |
Definition at line 2349 of file ffplay.c.
Referenced by decode_thread().
static int decode_thread | ( | void * | arg | ) | [static] |
Definition at line 2355 of file ffplay.c.
Referenced by stream_open().
static void do_exit | ( | void | ) | [static] |
Definition at line 2754 of file ffplay.c.
Referenced by event_loop().
static void event_loop | ( | void | ) | [static] |
static void fill_rectangle | ( | SDL_Surface * | screen, | |
int | x, | |||
int | y, | |||
int | w, | |||
int | h, | |||
int | color | |||
) | [inline, static] |
Definition at line 399 of file ffplay.c.
Referenced by decode_cabac_residual_internal(), decode_mb(), decode_mb_skip(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), fill_decode_caches(), fill_filter_caches(), hl_decode_mb_internal(), pred_spatial_direct_motion(), pred_temp_direct_motion(), rv34_decode_macroblock(), rv34_decode_mb_header(), rv34_output_macroblock(), svq3_mc_dir(), toggle_audio_display(), video_audio_display(), video_image_display(), write_back_motion(), and ZERO8x2().
static void free_subpicture | ( | SubPicture * | sp | ) | [static] |
Definition at line 677 of file ffplay.c.
Referenced by video_refresh_timer().
static double get_audio_clock | ( | VideoState * | is | ) | [static] |
Definition at line 1037 of file ffplay.c.
Referenced by get_master_clock(), synchronize_audio(), and video_refresh_timer().
static double get_external_clock | ( | VideoState * | is | ) | [static] |
Definition at line 1064 of file ffplay.c.
Referenced by get_master_clock().
static double get_master_clock | ( | VideoState * | is | ) | [static] |
Definition at line 1072 of file ffplay.c.
Referenced by compute_target_time(), event_loop(), synchronize_audio(), and video_refresh_timer().
static double get_video_clock | ( | VideoState * | is | ) | [static] |
Definition at line 1054 of file ffplay.c.
Referenced by compute_target_time(), get_master_clock(), and video_refresh_timer().
static int get_video_frame | ( | VideoState * | is, | |
AVFrame * | frame, | |||
int64_t * | pts, | |||
AVPacket * | pkt | |||
) | [static] |
Definition at line 1486 of file ffplay.c.
Referenced by video_thread().
static int opt_debug | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_duration | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_frame_pix_fmt | ( | const char * | arg | ) | [static] |
static int opt_height | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_input_file | ( | const char * | filename | ) | [static] |
static int opt_seek | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_sync | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_thread_count | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_vismv | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_width | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int output_picture2 | ( | VideoState * | is, | |
AVFrame * | src_frame, | |||
double | pts1, | |||
int64_t | pos | |||
) | [static] |
compute the exact PTS for the picture if it is omitted in the stream
pts1 | the dts of the pkt / pts of the frame |
Definition at line 1460 of file ffplay.c.
Referenced by video_thread().
static void packet_queue_abort | ( | PacketQueue * | q | ) | [static] |
Definition at line 352 of file ffplay.c.
Referenced by stream_component_close().
static void packet_queue_end | ( | PacketQueue * | q | ) | [static] |
Definition at line 313 of file ffplay.c.
Referenced by stream_component_close().
static void packet_queue_flush | ( | PacketQueue * | q | ) | [static] |
Definition at line 296 of file ffplay.c.
Referenced by decode_thread(), and packet_queue_end().
static int packet_queue_get | ( | PacketQueue * | q, | |
AVPacket * | pkt, | |||
int | block | |||
) | [static] |
Definition at line 364 of file ffplay.c.
Referenced by audio_decode_frame(), get_video_frame(), and subtitle_thread().
static void packet_queue_init | ( | PacketQueue * | q | ) | [static] |
Definition at line 288 of file ffplay.c.
Referenced by stream_component_open().
static int packet_queue_put | ( | PacketQueue * | q, | |
AVPacket * | pkt | |||
) | [static] |
Definition at line 320 of file ffplay.c.
Referenced by decode_thread(), and packet_queue_init().
static int queue_picture | ( | VideoState * | is, | |
AVFrame * | src_frame, | |||
double | pts, | |||
int64_t | pos | |||
) | [static] |
pts | the dts of the pkt / pts of the frame and guessed if not known |
Definition at line 1338 of file ffplay.c.
Referenced by output_picture2().
static int refresh_thread | ( | void * | opaque | ) | [static] |
Definition at line 1020 of file ffplay.c.
Referenced by decode_thread().
static void sdl_audio_callback | ( | void * | opaque, | |
Uint8 * | stream, | |||
int | len | |||
) | [static] |
static void show_usage | ( | void | ) | [static] |
Definition at line 3057 of file ffplay.c.
Referenced by main(), and show_help().
static void step_to_next_frame | ( | void | ) | [static] |
Definition at line 2744 of file ffplay.c.
Referenced by event_loop().
static void stream_close | ( | VideoState * | is | ) | [static] |
static void stream_component_close | ( | VideoState * | is, | |
int | stream_index | |||
) | [static] |
Definition at line 2273 of file ffplay.c.
Referenced by decode_thread(), and stream_cycle_channel().
static int stream_component_open | ( | VideoState * | is, | |
int | stream_index | |||
) | [static] |
Definition at line 2174 of file ffplay.c.
Referenced by decode_thread(), and stream_cycle_channel().
static void stream_cycle_channel | ( | VideoState * | is, | |
int | codec_type | |||
) | [static] |
Definition at line 2677 of file ffplay.c.
Referenced by event_loop().
static VideoState* stream_open | ( | const char * | filename, | |
AVInputFormat * | iformat | |||
) | [static] |
static void stream_pause | ( | VideoState * | is | ) | [static] |
Definition at line 1106 of file ffplay.c.
Referenced by step_to_next_frame(), toggle_pause(), and video_thread().
static void stream_seek | ( | VideoState * | is, | |
int64_t | pos, | |||
int64_t | rel, | |||
int | seek_by_bytes | |||
) | [static] |
Definition at line 1093 of file ffplay.c.
Referenced by decode_thread(), and event_loop().
static int subtitle_thread | ( | void * | arg | ) | [static] |
Definition at line 1853 of file ffplay.c.
Referenced by stream_component_open().
static int synchronize_audio | ( | VideoState * | is, | |
short * | samples, | |||
int | samples_size1, | |||
double | pts | |||
) | [static] |
Definition at line 1951 of file ffplay.c.
Referenced by sdl_audio_callback().
static void toggle_audio_display | ( | void | ) | [static] |
Definition at line 2774 of file ffplay.c.
Referenced by event_loop().
static void toggle_full_screen | ( | void | ) | [static] |
Definition at line 2727 of file ffplay.c.
Referenced by event_loop().
static void toggle_pause | ( | void | ) | [static] |
Definition at line 2737 of file ffplay.c.
Referenced by event_loop().
static void update_sample_display | ( | VideoState * | is, | |
short * | samples, | |||
int | samples_size | |||
) | [static] |
Definition at line 1929 of file ffplay.c.
Referenced by sdl_audio_callback().
static void video_audio_display | ( | VideoState * | s | ) | [static] |
Definition at line 824 of file ffplay.c.
Referenced by video_display().
static void video_display | ( | VideoState * | is | ) | [static] |
Definition at line 1010 of file ffplay.c.
Referenced by video_refresh_timer().
static void video_image_display | ( | VideoState * | is | ) | [static] |
Definition at line 693 of file ffplay.c.
Referenced by video_display().
static int video_open | ( | VideoState * | is | ) | [static] |
Definition at line 959 of file ffplay.c.
Referenced by event_loop(), toggle_full_screen(), and video_display().
static void video_refresh_timer | ( | void * | opaque | ) | [static] |
Definition at line 1160 of file ffplay.c.
Referenced by event_loop().
static int video_thread | ( | void * | arg | ) | [static] |
Definition at line 1761 of file ffplay.c.
Referenced by stream_component_open().
int64_t audio_callback_time [static] |
Definition at line 275 of file ffplay.c.
Referenced by sdl_audio_callback(), and video_audio_display().
int audio_disable [static] |
Definition at line 235 of file ffplay.c.
Referenced by decode_thread().
int autoexit [static] |
Definition at line 263 of file ffplay.c.
Referenced by decode_thread().
int av_sync_type = AV_SYNC_AUDIO_MASTER [static] |
Definition at line 245 of file ffplay.c.
Referenced by opt_sync(), and stream_open().
VideoState* cur_stream [static] |
int debug = 0 [static] |
Definition at line 248 of file ffplay.c.
Referenced by opt_debug(), opt_default(), and stream_component_open().
int debug_mv = 0 [static] |
Definition at line 249 of file ffplay.c.
Referenced by opt_vismv(), and stream_component_open().
int decoder_reorder_pts = -1 [static] |
Definition at line 262 of file ffplay.c.
Referenced by get_video_frame().
int display_disable [static] |
Definition at line 243 of file ffplay.c.
Referenced by decode_thread(), and main().
int64_t duration = AV_NOPTS_VALUE [static] |
Definition at line 247 of file ffplay.c.
Referenced by asf_write_header1(), asf_write_packet(), av_estimate_timings_from_bit_rate(), av_estimate_timings_from_pts(), av_find_stream_info(), av_update_stream_timings(), decode_thread(), ffm_read_packet(), main(), mkv_write_ass_blocks(), mkv_write_packet(), mov_read_ctts(), mov_read_elst(), mov_read_stts(), mov_write_ctts_tag(), mov_write_stts_tag(), mov_write_tkhd_tag(), nsv_parse_NSVf_header(), opt_duration(), qdm2_decode_fft_packets(), read_braindead_odml_indx(), rm_read_header(), and rv10_write_header().
int error_concealment = 3 [static] |
Definition at line 261 of file ffplay.c.
Referenced by stream_component_open().
int error_recognition = FF_ER_CAREFUL [static] |
Definition at line 260 of file ffplay.c.
Referenced by huffman_decode(), and stream_component_open().
int fast = 0 [static] |
Definition at line 253 of file ffplay.c.
Referenced by stream_component_open().
AVInputFormat* file_iformat [static] |
Definition at line 225 of file ffplay.c.
Referenced by opt_input_file().
int frame_height = 0 [static] |
Definition at line 233 of file ffplay.c.
Referenced by decode_thread(), and opt_frame_size().
enum PixelFormat frame_pix_fmt = PIX_FMT_NONE [static] |
Definition at line 234 of file ffplay.c.
Referenced by decode_thread(), and opt_frame_pix_fmt().
int frame_width = 0 [static] |
Definition at line 232 of file ffplay.c.
Referenced by decode_thread(), and opt_frame_size().
int framedrop = 1 [static] |
Definition at line 265 of file ffplay.c.
Referenced by video_refresh_timer().
int fs_screen_height [static] |
Definition at line 229 of file ffplay.c.
Referenced by main(), and video_open().
int fs_screen_width [static] |
Definition at line 228 of file ffplay.c.
Referenced by main(), toggle_full_screen(), and video_open().
int genpts = 0 [static] |
Definition at line 254 of file ffplay.c.
Referenced by av_read_frame(), and decode_thread().
VideoState* global_video_state [static] |
int idct = FF_IDCT_AUTO [static] |
Definition at line 256 of file ffplay.c.
Referenced by stream_component_open().
const char* input_filename [static] |
Definition at line 226 of file ffplay.c.
Referenced by main(), open_input_stream(), opt_input_file(), and video_open().
int is_full_screen [static] |
Definition at line 273 of file ffplay.c.
Referenced by toggle_full_screen(), and video_open().
int loop = 1 [static] |
Definition at line 264 of file ffplay.c.
Referenced by decode_thread().
int lowres = 0 [static] |
Definition at line 255 of file ffplay.c.
Referenced by chroma_4mv_motion_lowres(), hpel_motion_lowres(), mpeg_decode_slice(), mpeg_motion_lowres(), MPV_motion_lowres(), and stream_component_open().
const int program_birth_year = 2003 |
program birth year, defined by the program for show_banner()
const char program_name[] = "FFplay" |
program name, defined by the program for show_version().
int rdftspeed = 20 [static] |
Definition at line 267 of file ffplay.c.
Referenced by refresh_thread().
SDL_Surface* screen [static] |
Definition at line 283 of file ffplay.c.
Referenced by alloc_picture(), event_loop(), toggle_audio_display(), video_audio_display(), video_display(), video_image_display(), and video_open().
int screen_height = 0 [static] |
Definition at line 231 of file ffplay.c.
Referenced by event_loop(), opt_height(), and video_open().
int screen_width = 0 [static] |
Definition at line 230 of file ffplay.c.
Referenced by event_loop(), opt_width(), and video_open().
int seek_by_bytes = -1 [static] |
Definition at line 242 of file ffplay.c.
Referenced by decode_thread(), and event_loop().
int show_status = 1 [static] |
Definition at line 244 of file ffplay.c.
Referenced by decode_thread(), do_exit(), and video_refresh_timer().
enum AVDiscard skip_frame = AVDISCARD_DEFAULT [static] |
Definition at line 257 of file ffplay.c.
Referenced by stream_component_open().
Definition at line 258 of file ffplay.c.
Referenced by MPV_decode_mb_internal(), and stream_component_open().
enum AVDiscard skip_loop_filter = AVDISCARD_DEFAULT [static] |
Definition at line 259 of file ffplay.c.
Referenced by stream_component_open().
int64_t start_time = AV_NOPTS_VALUE [static] |
Definition at line 246 of file ffplay.c.
Referenced by decode_thread(), and opt_seek().
int step = 0 [static] |
Definition at line 250 of file ffplay.c.
Referenced by av_gen_search(), dec_gain(), decode_subframe(), encode_residual(), ff_gen_syncpoint_search(), ff_h264_filter_mb_fast(), init_pass2(), interpolate(), read_line(), search_for_quantizers_faac(), step_to_next_frame(), toggle_pause(), video_thread(), vorbis_residue_decode_internal(), write_line(), and yuv2rgbXinC_full().
int sws_flags = SWS_BICUBIC [static] |
Definition at line 84 of file ffplay.c.
Referenced by main(), and queue_picture().
int thread_count = 1 [static] |
Definition at line 251 of file ffplay.c.
Referenced by opt_thread_count(), and stream_component_open().
int video_disable [static] |
Definition at line 236 of file ffplay.c.
Referenced by decode_thread(), and main().
int wanted_stream[AVMEDIA_TYPE_NB] [static] |
{ [AVMEDIA_TYPE_AUDIO]=-1, [AVMEDIA_TYPE_VIDEO]=-1, [AVMEDIA_TYPE_SUBTITLE]=-1, }
Definition at line 237 of file ffplay.c.
Referenced by decode_thread().
const char* window_title [static] |
Definition at line 227 of file ffplay.c.
Referenced by video_open().
int workaround_bugs = 1 [static] |
Definition at line 252 of file ffplay.c.
Referenced by stream_component_open().