]> git.sesse.net Git - vlc/blobdiff - include/stream_control.h
Fixed an incorrect string
[vlc] / include / stream_control.h
index 92f76bf4f61b131dfcf468a3cfdd58ddcf69fbac..9a14f896d2c16861a2e7872f8248d94c60e1a649 100644 (file)
@@ -1,3 +1,31 @@
+/*****************************************************************************
+ * stream_control.h: structures of the input exported everywhere
+ * This header provides a structure so that everybody knows the state
+ * of the reading.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ * $Id: stream_control.h,v 1.12 2004/01/25 18:17:08 zorglub Exp $
+ *
+ * Authors: Christophe Massiot <massiot@via.ecp.fr>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ *****************************************************************************/
+
+#ifndef _STREAM_CONTROL_H
+#define _STREAM_CONTROL_H 1
+
 /* Structures exported to interface, input and decoders */
 
 /*****************************************************************************
  *****************************************************************************
  * Describe the state of a program stream.
  *****************************************************************************/
-typedef struct stream_ctrl_s
+struct stream_ctrl_t
 {
     vlc_mutex_t             control_lock;
 
     int                     i_status;
     /* if i_status == FORWARD_S or BACKWARD_S */
     int                     i_rate;
-    s64                     i_ref_sysdate;
-    s64                     i_ref_clock;
 
-    boolean_t               b_mute;
-    boolean_t               b_bw;                           /* black & white */
-} stream_ctrl_t;
+    vlc_bool_t              b_mute;
+    vlc_bool_t              b_grayscale;           /* use color or grayscale */
+};
 
 /* Possible status : */
-#define PLAYING_S           0
-#define PAUSE_S             1
-#define FORWARD_S           2
-#define BACKWARD_S          3
+enum stream_status_e
+{
+    UNDEF_S         = 0,
+    PLAYING_S       = 1,
+    PAUSE_S         = 2,
+    FORWARD_S       = 3,
+    BACKWARD_S      = 4,
+
+    INIT_S          = 10,
+    END_S           = 11
+};
 
 #define DEFAULT_RATE        1000
+#define MINIMAL_RATE        31              /* Up to 32/1 */
+#define MAXIMAL_RATE        8000            /* Up to 1/8 */
+
+#endif /* "stream_control.h" */