FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
video_out.h File Reference
#include <inttypes.h>
#include <stdarg.h>
#include "../img_format.h"

Go to the source code of this file.

Data Structures

struct  mp_colorkey_t
 
struct  mp_win_t
 
struct  vo_info_t
 
struct  vo_functions_t
 
struct  range_t
 
struct  mp_keymap
 
struct  vo_rect
 

Macros

#define ROTATE(t, x, y)
 
#define VO_EVENT_EXPOSE   1
 
#define VO_EVENT_RESIZE   2
 
#define VO_EVENT_KEYPRESS   4
 
#define VO_EVENT_REINIT   8
 
#define VO_EVENT_MOVE   16
 
#define VO_EVENT_MOUSE   32
 
#define VOCTRL_QUERY_FORMAT   2
 
#define VOCTRL_RESET   3
 
#define VOCTRL_GUISUPPORT   4
 
#define VOCTRL_FULLSCREEN   5
 
#define VOCTRL_PAUSE   7
 
#define VOCTRL_RESUME   8
 
#define VOCTRL_GET_IMAGE   9
 
#define VOCTRL_DRAW_IMAGE   13
 
#define VOCTRL_SET_SPU_PALETTE   14
 
#define VOCTRL_GET_NUM_FRAMES   10
 
#define VOCTRL_GET_FRAME_NUM   11
 
#define VOCTRL_SET_FRAME_NUM   12
 
#define VOCTRL_GET_PANSCAN   15
 
#define VOCTRL_SET_PANSCAN   16
 
#define VOCTRL_SET_EQUALIZER   17
 
#define VOCTRL_GET_EQUALIZER   18
 
#define VOCTRL_DUPLICATE_FRAME   20
 
#define VOCTRL_START_SLICE   21
 
#define VOCTRL_ONTOP   25
 
#define VOCTRL_ROOTWIN   26
 
#define VOCTRL_BORDER   27
 
#define VOCTRL_DRAW_EOSD   28
 
#define VOCTRL_GET_EOSD_RES   29
 
#define VOCTRL_SET_DEINTERLACE   30
 
#define VOCTRL_GET_DEINTERLACE   31
 
#define VOCTRL_UPDATE_SCREENINFO   32
 
#define VOCTRL_XOVERLAY_SUPPORT   22
 
#define VOCTRL_XOVERLAY_SET_COLORKEY   24
 
#define VOCTRL_XOVERLAY_SET_WIN   23
 
#define VO_TRUE   1
 
#define VO_FALSE   0
 
#define VO_ERROR   -1
 
#define VO_NOTAVAIL   -2
 
#define VO_NOTIMPL   -3
 
#define VOFLAG_FULLSCREEN   0x01
 
#define VOFLAG_MODESWITCHING   0x02
 
#define VOFLAG_SWSCALE   0x04
 
#define VOFLAG_FLIPPING   0x08
 
#define VOFLAG_HIDDEN   0x10
 
#define VOFLAG_STEREO   0x20
 
#define VOFLAG_DEPTH   0x40
 
#define VOFLAG_XOVERLAY_SUB_VO   0x10000
 

Functions

const vo_functions_tinit_best_video_out (char **vo_list)
 
int config_video_out (const vo_functions_t *vo, uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
 
void list_video_out (void)
 
float range_max (range_t *r)
 
int in_range (range_t *r, float f)
 
range_tstr2range (char *s)
 
int lookup_keymap_table (const struct mp_keymap *map, int key)
 
void calc_src_dst_rects (int src_width, int src_height, struct vo_rect *src, struct vo_rect *dst, struct vo_rect *borders, const struct vo_rect *crop)
 
void vo_mouse_movement (int posx, int posy)
 
static int apply_border_pos (int full, int part, float pos)
 

Variables

const vo_functions_t *const video_out_drivers []
 
int vo_flags
 
int vo_config_count
 
int xinerama_screen
 
int xinerama_x
 
int xinerama_y
 
int vo_depthonscreen
 
int vo_screenwidth
 
int vo_screenheight
 
int vo_dx
 
int vo_dy
 
int vo_dwidth
 
int vo_dheight
 
int vo_dbpp
 
int vo_grabpointer
 
int vo_doublebuffering
 
int vo_directrendering
 
int vo_vsync
 
int vo_fsmode
 
float vo_panscan
 
float vo_border_pos_x
 
float vo_border_pos_y
 
int vo_rotate
 
int vo_adapter_num
 
int vo_refresh_rate
 
int vo_keepaspect
 
int vo_rootwin
 
int vo_ontop
 
int vo_border
 
int vo_gamma_gamma
 
int vo_gamma_brightness
 
int vo_gamma_saturation
 
int vo_gamma_contrast
 
int vo_gamma_hue
 
int vo_gamma_red_intensity
 
int vo_gamma_green_intensity
 
int vo_gamma_blue_intensity
 
int vo_nomouse_input
 
int enable_mouse_movements
 
int vo_pts
 
float vo_fps
 
char * vo_subdevice
 
int vo_colorkey
 
char * vo_winname
 
char * vo_wintitle
 
int64_t WinID
 
char * monitor_hfreq_str
 
char * monitor_vfreq_str
 
char * monitor_dotclock_str
 

Macro Definition Documentation

#define ROTATE (   t,
  x,
  y 
)
Value:
do { \
t rot_tmp = x; \
x = y; \
y = -rot_tmp; \
} while(0)

Definition at line 34 of file video_out.h.

#define VO_EVENT_EXPOSE   1

Definition at line 40 of file video_out.h.

#define VO_EVENT_RESIZE   2

Definition at line 41 of file video_out.h.

#define VO_EVENT_KEYPRESS   4

Definition at line 42 of file video_out.h.

#define VO_EVENT_REINIT   8

Definition at line 43 of file video_out.h.

#define VO_EVENT_MOVE   16

Definition at line 44 of file video_out.h.

#define VO_EVENT_MOUSE   32

Definition at line 45 of file video_out.h.

#define VOCTRL_QUERY_FORMAT   2

Definition at line 49 of file video_out.h.

#define VOCTRL_RESET   3

Definition at line 51 of file video_out.h.

#define VOCTRL_GUISUPPORT   4

Definition at line 53 of file video_out.h.

#define VOCTRL_FULLSCREEN   5

Definition at line 55 of file video_out.h.

#define VOCTRL_PAUSE   7

Definition at line 57 of file video_out.h.

#define VOCTRL_RESUME   8

Definition at line 59 of file video_out.h.

#define VOCTRL_GET_IMAGE   9

Definition at line 61 of file video_out.h.

#define VOCTRL_DRAW_IMAGE   13

Definition at line 62 of file video_out.h.

#define VOCTRL_SET_SPU_PALETTE   14

Definition at line 63 of file video_out.h.

#define VOCTRL_GET_NUM_FRAMES   10

Definition at line 65 of file video_out.h.

#define VOCTRL_GET_FRAME_NUM   11

Definition at line 66 of file video_out.h.

#define VOCTRL_SET_FRAME_NUM   12

Definition at line 67 of file video_out.h.

#define VOCTRL_GET_PANSCAN   15

Definition at line 68 of file video_out.h.

#define VOCTRL_SET_PANSCAN   16

Definition at line 69 of file video_out.h.

#define VOCTRL_SET_EQUALIZER   17

Definition at line 71 of file video_out.h.

#define VOCTRL_GET_EQUALIZER   18

Definition at line 72 of file video_out.h.

#define VOCTRL_DUPLICATE_FRAME   20

Definition at line 74 of file video_out.h.

#define VOCTRL_START_SLICE   21

Definition at line 76 of file video_out.h.

#define VOCTRL_ONTOP   25

Definition at line 78 of file video_out.h.

#define VOCTRL_ROOTWIN   26

Definition at line 79 of file video_out.h.

#define VOCTRL_BORDER   27

Definition at line 80 of file video_out.h.

#define VOCTRL_DRAW_EOSD   28

Definition at line 81 of file video_out.h.

#define VOCTRL_GET_EOSD_RES   29

Definition at line 82 of file video_out.h.

#define VOCTRL_SET_DEINTERLACE   30

Definition at line 84 of file video_out.h.

#define VOCTRL_GET_DEINTERLACE   31

Definition at line 85 of file video_out.h.

#define VOCTRL_UPDATE_SCREENINFO   32

Definition at line 87 of file video_out.h.

#define VOCTRL_XOVERLAY_SUPPORT   22

Definition at line 90 of file video_out.h.

#define VOCTRL_XOVERLAY_SET_COLORKEY   24

Definition at line 92 of file video_out.h.

#define VOCTRL_XOVERLAY_SET_WIN   23

Definition at line 98 of file video_out.h.

#define VO_TRUE   1

Definition at line 104 of file video_out.h.

#define VO_FALSE   0

Definition at line 105 of file video_out.h.

#define VO_ERROR   -1

Definition at line 106 of file video_out.h.

#define VO_NOTAVAIL   -2

Definition at line 107 of file video_out.h.

#define VO_NOTIMPL   -3

Definition at line 108 of file video_out.h.

#define VOFLAG_FULLSCREEN   0x01

Definition at line 110 of file video_out.h.

#define VOFLAG_MODESWITCHING   0x02

Definition at line 111 of file video_out.h.

#define VOFLAG_SWSCALE   0x04

Definition at line 112 of file video_out.h.

#define VOFLAG_FLIPPING   0x08

Definition at line 113 of file video_out.h.

#define VOFLAG_HIDDEN   0x10

Definition at line 114 of file video_out.h.

#define VOFLAG_STEREO   0x20

Definition at line 115 of file video_out.h.

#define VOFLAG_DEPTH   0x40

Definition at line 116 of file video_out.h.

#define VOFLAG_XOVERLAY_SUB_VO   0x10000

Definition at line 117 of file video_out.h.

Function Documentation

const vo_functions_t* init_best_video_out ( char **  vo_list)
int config_video_out ( const vo_functions_t vo,
uint32_t  width,
uint32_t  height,
uint32_t  d_width,
uint32_t  d_height,
uint32_t  flags,
char *  title,
uint32_t  format 
)
void list_video_out ( void  )
float range_max ( range_t r)
int in_range ( range_t r,
float  f 
)

Referenced by filter_frame().

range_t* str2range ( char *  s)
int lookup_keymap_table ( const struct mp_keymap map,
int  key 
)
void calc_src_dst_rects ( int  src_width,
int  src_height,
struct vo_rect src,
struct vo_rect dst,
struct vo_rect borders,
const struct vo_rect crop 
)
void vo_mouse_movement ( int  posx,
int  posy 
)
static int apply_border_pos ( int  full,
int  part,
float  pos 
)
inlinestatic

Definition at line 291 of file video_out.h.

Variable Documentation

const vo_functions_t* const video_out_drivers[]
int vo_flags
int vo_config_count
int xinerama_screen
int xinerama_x
int xinerama_y
int vo_depthonscreen
int vo_screenwidth
int vo_screenheight
int vo_dx
int vo_dy
int vo_dwidth
int vo_dheight
int vo_dbpp
int vo_grabpointer
int vo_doublebuffering
int vo_directrendering
int vo_vsync
int vo_fsmode
float vo_panscan
float vo_border_pos_x
float vo_border_pos_y
int vo_rotate
int vo_adapter_num
int vo_refresh_rate
int vo_keepaspect
int vo_rootwin
int vo_ontop
int vo_border
int vo_gamma_gamma
int vo_gamma_brightness
int vo_gamma_saturation
int vo_gamma_contrast
int vo_gamma_hue
int vo_gamma_red_intensity
int vo_gamma_green_intensity
int vo_gamma_blue_intensity
int vo_nomouse_input
int enable_mouse_movements
int vo_pts
float vo_fps
char* vo_subdevice
int vo_colorkey
char* vo_winname
char* vo_wintitle
int64_t WinID
char* monitor_hfreq_str
char* monitor_vfreq_str
char* monitor_dotclock_str