From b6a7a1c325f8efe47d302290fe01e8f759b1b964 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 18 Jan 2003 15:29:19 +0000 Subject: nvtv patch by Mattias Eriksson 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 --- include/xine.h.in | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3