summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/xine.h8
-rw-r--r--include/xine/osd.h11
-rw-r--r--include/xine/video_out.h7
3 files changed, 26 insertions, 0 deletions
diff --git a/include/xine.h b/include/xine.h
index c6d240d5e..9f734d940 100644
--- a/include/xine.h
+++ b/include/xine.h
@@ -2082,6 +2082,7 @@ void xine_event_send (xine_stream_t *stream, const xine_event_t *event) XINE_PRO
#define XINE_OSD_CAP_UNSCALED 0x0002 /* unscaled overlays supp. by vo drv */
#define XINE_OSD_CAP_CUSTOM_EXTENT 0x0004 /* hardware scaled to match video output window */
#define XINE_OSD_CAP_ARGB_LAYER 0x0008 /* supports separate true color layer */
+#define XINE_OSD_CAP_VIDEO_WINDOW 0x0010 /* can scale video to an area within osd extent */
typedef struct xine_osd_s xine_osd_t;
@@ -2169,6 +2170,13 @@ void xine_osd_set_argb_buffer(xine_osd_t *self, uint32_t *argb_buffer,
void xine_osd_set_extent(xine_osd_t *self, int extent_width, int extent_height) XINE_PROTECTED;
/*
+ * define area within osd extent to output
+ * video to while osd is on screen
+ * see also XINE_OSD_CAP_VIDEO_WINDOW
+ */
+void xine_osd_set_video_window(xine_osd_t *self, int window_x, int window_y, int window_width, int window_height) XINE_PROTECTED;
+
+/*
* close osd rendering engine
* loaded fonts are unloaded
* osd objects are closed
diff --git a/include/xine/osd.h b/include/xine/osd.h
index b22c02996..ef0994e8a 100644
--- a/include/xine/osd.h
+++ b/include/xine/osd.h
@@ -43,6 +43,10 @@ struct osd_object_s {
int area_touched; /* work area was used for painting */
int display_x,display_y; /* where to display it in screen */
+ /* video output area within osd extent */
+ int video_window_x, video_window_y;
+ int video_window_width, video_window_height;
+
/* extent of reference coordinate system */
int extent_width, extent_height;
@@ -237,6 +241,13 @@ struct osd_renderer_s {
void (*set_argb_buffer) (osd_object_t *osd, uint32_t *argb_buffer,
int dirty_x, int dirty_y, int dirty_width, int dirty_height);
+ /*
+ * osd video window defines an area withing osd extent where the
+ * video shall be scaled to while an osd is displayed on screen.
+ * both width and height must be > 0 to take effect.
+ */
+ void (*set_video_window) (osd_object_t *osd,
+ int window_x, int window_y, int window_width, int window_height);
/* private stuff */
diff --git a/include/xine/video_out.h b/include/xine/video_out.h
index 9da1a596f..d152ddec4 100644
--- a/include/xine/video_out.h
+++ b/include/xine/video_out.h
@@ -296,6 +296,7 @@ struct xine_video_port_s {
#define VO_CAP_ZOOM_Y 0x00800000
#define VO_CAP_CUSTOM_EXTENT_OVERLAY 0x01000000 /* driver can blend custom extent overlay to output extent */
#define VO_CAP_ARGB_LAYER_OVERLAY 0x02000000 /* driver supports true color overlay */
+#define VO_CAP_VIDEO_WINDOW_OVERLAY 0x04000000 /* driver can scale video to an area within overlay */
/*
* vo_driver_s contains the functions every display driver
@@ -442,6 +443,12 @@ struct vo_overlay_s {
int width; /* width of subpicture area */
int height; /* height of subpicture area */
+ /* area within osd extent to scale video to */
+ int video_window_x;
+ int video_window_y;
+ int video_window_width;
+ int video_window_height;
+
/* extent of reference coordinate system */
int extent_width;
int extent_height;