summaryrefslogtreecommitdiff
path: root/include/xine/osd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xine/osd.h')
-rw-r--r--include/xine/osd.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/include/xine/osd.h b/include/xine/osd.h
index de924a1ae..b22c02996 100644
--- a/include/xine/osd.h
+++ b/include/xine/osd.h
@@ -40,7 +40,11 @@ struct osd_object_s {
int width, height; /* work area dimentions */
uint8_t *area; /* work area */
+ int area_touched; /* work area was used for painting */
int display_x,display_y; /* where to display it in screen */
+
+ /* extent of reference coordinate system */
+ int extent_width, extent_height;
/* clipping box inside work area */
int x1, y1;
@@ -57,6 +61,12 @@ struct osd_object_s {
osd_font_t *font;
osd_ft2context_t *ft2;
+
+ /* this holds an optional ARGB overlay, which
+ * is only be used by supported video_out modules.
+ * right now this is only vdpau */
+ argb_layer_t argb_layer;
+
int32_t handle;
};
@@ -205,7 +215,29 @@ struct osd_renderer_s {
* see xine.h for defined XINE_OSD_CAP_ values.
*/
uint32_t (*get_capabilities) (osd_object_t *osd);
-
+
+ /*
+ * define extent of reference coordinate system for video
+ * resolution independent osds. both sizes must be > 0 to
+ * take effect. otherwise, video resolution will be used.
+ */
+ void (*set_extent) (osd_object_t *osd, int extent_width, int extent_height);
+
+ /*
+ * set an argb buffer to be blended into video
+ * the buffer must exactly match the osd dimensions
+ * and stay valid while the osd is on screen. pass
+ * a NULL pointer to safely remove the buffer from
+ * the osd layer. only the dirty area will be
+ * updated on screen. for convinience the whole
+ * osd object will be considered dirty when setting
+ * a different buffer pointer.
+ * see also XINE_OSD_CAP_ARGB_LAYER
+ */
+ void (*set_argb_buffer) (osd_object_t *osd, uint32_t *argb_buffer,
+ int dirty_x, int dirty_y, int dirty_width, int dirty_height);
+
+
/* private stuff */
pthread_mutex_t osd_mutex;