diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-18 15:29:19 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-18 15:29:19 +0000 |
commit | b6a7a1c325f8efe47d302290fe01e8f759b1b964 (patch) | |
tree | 257bcfca82c9138d105099afe598a174c96f4a3e /include/xine.h.in | |
parent | 9fb47c4d2259df214b179a2fffc752e9504f4e66 (diff) | |
download | xine-lib-b6a7a1c325f8efe47d302290fe01e8f759b1b964.tar.gz xine-lib-b6a7a1c325f8efe47d302290fe01e8f759b1b964.tar.bz2 |
nvtv patch by Mattias Eriksson <snaggen@acc.umu.se> with a few changes
NOTE: reported to be still in a non-working state.
use 'configure --enable-nvtv' to test. otherwise lib will be compiled with
xine_tvmode_* dummy functions just to keep compatibility.
CVS patchset: 3954
CVS date: 2003/01/18 15:29:19
Diffstat (limited to 'include/xine.h.in')
-rw-r--r-- | include/xine.h.in | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/include/xine.h.in b/include/xine.h.in index 4908b7496..6fa89c39a 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -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.h.in,v 1.56 2003/01/13 20:53:08 f1rmb Exp $ + * $Id: xine.h.in,v 1.57 2003/01/18 15:29:19 miguelfreitas Exp $ * * public xine-lib (libxine) interface and documentation * @@ -1353,6 +1353,32 @@ void xine_osd_get_palette (xine_osd_t *self, uint32_t *color, uint8_t *trans); +/********************************************************************* + * TV-mode API, to make it possible to use nvtvd to view movies * + *********************************************************************/ + +/* connect to nvtvd server and save current TV and X settings */ +void xine_tvmode_init (xine_t *self); + +/* try to change TV state if enabled + * type select 'regular' (0) or 'TV' (1) state + * width frame width the mode should match best or 0 if unknown + * height frame height the mode should match best or 0 if unknown + * fps frame rate the mode should match best or 0 if unknown + * returns: finally selected state + */ +int xine_tvmode_switch (xine_t *self, int type, int width, int height, double fps); + +/* adapt (maximum) output size to visible area if necessary and return pixel + * aspect and real frame rate if available + */ +void xine_tvmode_size (xine_t *self, int *width, int *height, + double *pixelratio, double *fps); + +/* restore old TV and X settings and close nvtvd connection */ +void xine_tvmode_exit (xine_t *self); + + #ifdef __cplusplus } #endif |