diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-05-03 23:26:40 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-05-03 23:26:40 +0000 |
commit | 5e1dfa4e3a5079a317979bf5ff8653dc152112a7 (patch) | |
tree | 9d0e019e4e67fbd244a9b71ff7c57d57df321edc | |
parent | 19ce7395a22963e24cf0a703f415b6520ba8feae (diff) | |
download | xine-lib-5e1dfa4e3a5079a317979bf5ff8653dc152112a7.tar.gz xine-lib-5e1dfa4e3a5079a317979bf5ff8653dc152112a7.tar.bz2 |
Add get capabilites to public API.
CVS patchset: 60
CVS date: 2001/05/03 23:26:40
-rw-r--r-- | include/xine.h.tmpl.in | 30 | ||||
-rw-r--r-- | src/video_out/video_out_xv.c | 5 | ||||
-rw-r--r-- | src/xine-engine/xine.c | 6 |
3 files changed, 37 insertions, 4 deletions
diff --git a/include/xine.h.tmpl.in b/include/xine.h.tmpl.in index c2998ccc2..addb3f478 100644 --- a/include/xine.h.tmpl.in +++ b/include/xine.h.tmpl.in @@ -29,7 +29,7 @@ \endverbatim */ /* - * $Id: xine.h.tmpl.in,v 1.13 2001/05/03 22:20:44 f1rmb Exp $ + * $Id: xine.h.tmpl.in,v 1.14 2001/05/03 23:26:40 f1rmb Exp $ * */ @@ -299,6 +299,34 @@ void xine_select_spu_channel (xine_t *this, int channel); */ void *xine_get_window_output(xine_t *this); +#define VO_CAP_HUE 0x00000010 /* driver can set HUE value */ +#define VO_CAP_SATURATION 0x00000020 /* driver can set SATURATION value*/ +#define VO_CAP_BRIGHTNESS 0x00000040 /* driver can set BRIGHTNESS value*/ +#define VO_CAP_CONTRAST 0x00000080 /* driver can set CONTRAST value */ +#define VO_CAP_COLORKEY 0x00000100 /* driver can set COLORKEY value */ + +/** + * \fn uint32_t xine_get_window_capabilities(xine_t *this); + * \brief + * \param + * \return + * + * + */ +uint32_t xine_get_window_capabilities(xine_t *this); + +#define VO_PROP_WINDOW_VISIBLE 0 +#define VO_PROP_CURSOR_VISIBLE 1 +#define VO_PROP_FULLSCREEN 2 +#define VO_PROP_INTERLACED 3 +#define VO_PROP_ASPECT_RATIO 4 +#define VO_PROP_HUE 5 +#define VO_PROP_SATURATION 6 +#define VO_PROP_CONTRAST 7 +#define VO_PROP_BRIGHTNESS 8 +#define VO_PROP_COLORKEY 9 +#define VO_NUM_PROPERTIES 10 + /** * \fn int xine_get_window_property(xine_t *this, int property); * \brief diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 5441a4536..7cdebdd52 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xv.c,v 1.10 2001/05/03 22:20:45 f1rmb Exp $ + * $Id: video_out_xv.c,v 1.11 2001/05/03 23:26:42 f1rmb Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -679,7 +679,8 @@ static int xv_check_yv12 (Display *display, XvPortID port) return 1; } -static void xv_check_capability (xv_driver_t *this, uint32_t capability, int property, +static void xv_check_capability (xv_driver_t *this, + uint32_t capability, int property, XvAttribute attr, int base_id, char *str_prop) { int nDefault; diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 41191123f..e8179b5ad 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.13 2001/05/03 22:20:45 f1rmb Exp $ + * $Id: xine.c,v 1.14 2001/05/03 23:26:42 f1rmb Exp $ * * top-level xine functions * @@ -526,6 +526,10 @@ int xine_get_status(xine_t *this) { return this->status; } +uint32_t xine_get_window_capabilities(xine_t *this) { + + return (this->video_out->get_capabilities(this->video_out)); +} /* * */ |