1 /*****************************************************************************
2 * stream_control.h: structures of the input exported verywhere
3 * This header provides a structure so that everybody knows the state
5 *****************************************************************************
6 * Copyright (C) 1999, 2000 VideoLAN
7 * $Id: stream_control.h,v 1.6 2001/07/18 14:21:00 massiot Exp $
9 * Authors: Christophe Massiot <massiot@via.ecp.fr>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
26 /* Structures exported to interface, input and decoders */
28 /*****************************************************************************
30 *****************************************************************************
31 * Describe the state of a program stream.
32 *****************************************************************************/
33 typedef struct stream_ctrl_s
35 vlc_mutex_t control_lock;
38 /* if i_status == FORWARD_S or BACKWARD_S */
42 boolean_t b_grayscale; /* use color or grayscale */
43 int i_smp; /* number of symmetrical threads to launch
44 * to decode the video | 0 == disabled */
47 /* Possible status : */
53 #define REWIND_S 5 /* Not supported for the moment */
54 #define NOT_STARTED_S 10
57 #define DEFAULT_RATE 1000
58 #define MINIMAL_RATE 31 /* Up to 32/1 */
59 #define MAXIMAL_RATE 8000 /* Up to 1/8 */