diff options
Diffstat (limited to 'libavfilter/libmpcodecs/libvo/video_out.h')
-rw-r--r-- | libavfilter/libmpcodecs/libvo/video_out.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/libavfilter/libmpcodecs/libvo/video_out.h b/libavfilter/libmpcodecs/libvo/video_out.h index 2a3a0facc6..49d30987ff 100644 --- a/libavfilter/libmpcodecs/libvo/video_out.h +++ b/libavfilter/libmpcodecs/libvo/video_out.h @@ -30,11 +30,19 @@ #include "../img_format.h" //#include "vidix/vidix.h" + +#define ROTATE(t, x, y) do { \ + t rot_tmp = x; \ + x = y; \ + y = -rot_tmp; \ +} while(0) + #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 /* Obsolete: VOCTRL_QUERY_VAA 1 */ /* does the device support the required format */ @@ -43,7 +51,6 @@ #define VOCTRL_RESET 3 /* true if vo driver can use GUI created windows */ #define VOCTRL_GUISUPPORT 4 -#define VOCTRL_GUI_NOWINDOW 19 /* used to switch to fullscreen */ #define VOCTRL_FULLSCREEN 5 /* signal a device pause */ @@ -63,7 +70,6 @@ /* equalizer controls */ #define VOCTRL_SET_EQUALIZER 17 #define VOCTRL_GET_EQUALIZER 18 -//#define VOCTRL_GUI_NOWINDOW 19 /* Frame duplication */ #define VOCTRL_DUPLICATE_FRAME 20 // ... 21 @@ -107,6 +113,7 @@ typedef struct { #define VOFLAG_FLIPPING 0x08 #define VOFLAG_HIDDEN 0x10 //< Use to create a hidden window #define VOFLAG_STEREO 0x20 //< Use to create a stereo-capable window +#define VOFLAG_DEPTH 0x40 //< Request a depth buffer #define VOFLAG_XOVERLAY_SUB_VO 0x10000 typedef struct vo_info_s @@ -223,6 +230,9 @@ extern int vo_directrendering; extern int vo_vsync; extern int vo_fsmode; extern float vo_panscan; +extern float vo_border_pos_x; +extern float vo_border_pos_y; +extern int vo_rotate; extern int vo_adapter_num; extern int vo_refresh_rate; extern int vo_keepaspect; @@ -278,4 +288,13 @@ void calc_src_dst_rects(int src_width, int src_height, struct vo_rect *src, stru struct vo_rect *borders, const struct vo_rect *crop); void vo_mouse_movement(int posx, int posy); +static inline int apply_border_pos(int full, int part, float pos) { + if (pos >= 0.0 && pos <= 1.0) { + return pos*(full - part); + } + if (pos < 0) + return pos * part; + return full - part + (pos - 1) * part; +} + #endif /* MPLAYER_VIDEO_OUT_H */ |