]> git.sesse.net Git - vlc/blobdiff - include/vlc_input.h
some explanation
[vlc] / include / vlc_input.h
index d27fd50835901889e80a6b24df67a8d64736d631..58740d1466eb147a680a5df456168c2296c60909 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * vlc_input.h:
  *****************************************************************************
- * Copyright (C) 1999-2004 VideoLAN
+ * Copyright (C) 1999-2004 the VideoLAN team
  * $Id: input_ext-intf.h 7954 2004-06-07 22:19:12Z fenrir $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -158,6 +158,9 @@ static inline void vlc_input_item_Clean( input_item_t *p_i )
     vlc_mutex_destroy( &p_i->lock );
 }
 
+VLC_EXPORT( char *, vlc_input_item_GetInfo, ( input_item_t *p_i, const char *psz_cat,const char *psz_name ) );
+VLC_EXPORT(int, vlc_input_item_AddInfo, ( input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format, ... ) );
+
 /*****************************************************************************
  * Seek point: (generalisation of chapters)
  *****************************************************************************/
@@ -166,13 +169,15 @@ struct seekpoint_t
     int64_t i_byte_offset;
     int64_t i_time_offset;
     char    *psz_name;
+    int     i_level;
 };
 
 static inline seekpoint_t *vlc_seekpoint_New( void )
 {
     seekpoint_t *point = (seekpoint_t*)malloc( sizeof( seekpoint_t ) );
     point->i_byte_offset =
-    point->i_time_offset = 0;
+    point->i_time_offset = -1;
+    point->i_level = 0;
     point->psz_name = NULL;
     return point;
 }
@@ -278,7 +283,10 @@ enum input_state_e
     END_S,
 };
 
-/* "rate" default, min/max */
+/* "rate" default, min/max
+ * A rate below 1000 plays the movie faster,
+ * A rate above 1000 plays the movie slower.
+ */
 #define INPUT_RATE_DEFAULT  1000
 #define INPUT_RATE_MIN       125            /* Up to 8/1 */
 #define INPUT_RATE_MAX      8000            /* Up to 1/8 */
@@ -427,16 +435,17 @@ enum input_query_e
     INPUT_GET_STATE,            /* arg1= int *          res=    */
     INPUT_SET_STATE,            /* arg1= int            res=can fail    */
 
-    /* input variable "audio-delay" and "spu-delay" */
+    /* input variable "audio-delay" and "sub-delay" */
     INPUT_GET_AUDIO_DELAY,      /* arg1 = int* res=can fail */
     INPUT_SET_AUDIO_DELAY,      /* arg1 = int  res=can fail */
     INPUT_GET_SPU_DELAY,        /* arg1 = int* res=can fail */
     INPUT_SET_SPU_DELAY,        /* arg1 = int  res=can fail */
 
     /* Meta datas */
-    INPUT_ADD_INFO,   /* arg1= char * arg2= char * arg3=...  res=can fail    */
-    INPUT_GET_INFO,   /* arg1= char * arg2= char * arg3= char ** res=can fail*/
-    INPUT_SET_NAME,   /* arg1= char * res=can fail    */
+    INPUT_ADD_INFO,   /* arg1= char* arg2= char* arg3=...     res=can fail */
+    INPUT_GET_INFO,   /* arg1= char* arg2= char* arg3= char** res=can fail */
+    INPUT_DEL_INFO,   /* arg1= char* arg2= char*              res=can fail */
+    INPUT_SET_NAME,   /* arg1= char* res=can fail    */
 
     /* Input config options */
     INPUT_ADD_OPTION,      /* arg1= char * arg2= char *  res=can fail*/