00001 /* 00002 * Copyright (C) Massimo Cora' 2005 <maxcvs@email.it> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 #ifndef __STREAM_CONFIG_H__ 00020 #define __STREAM_CONFIG_H__ 00021 00022 #include <stdio.h> 00023 00024 00029 typedef enum { 00030 OSTREAM_ENCODING_NONE, 00031 OSTREAM_ENCODING_MJPEG, 00032 OSTREAM_ENCODING_H263P, 00033 OSTREAM_ENCODING_MP3 00034 00035 } ostream_encoding_type; 00036 00041 typedef enum { 00042 OSTREAM_DECODING_NONE, 00043 OSTREAM_DECODING_MJPEG, 00044 OSTREAM_DECODING_H263P, 00045 OSTREAM_DECODING_MP3 00046 00047 } ostream_decoding_type; 00048 00049 00050 00052 #define DEBUG_STREAMER 00053 00060 //#define STREAM_USING_MP3_ADU 00061 00062 00067 #ifndef WAIT_KEY_VALUE 00068 #ifdef WIN32 00069 #define WAIT_KEY_VALUE 1 00070 #else // LINUX 00071 #define WAIT_KEY_VALUE 20 00072 #endif 00073 #endif 00074 00078 #ifndef CV_WAIT_KEY 00079 #ifdef __LINUX__ 00080 #define CV_WAIT_KEY usleep 00081 #else 00082 #define CV_WAIT_KEY cvWaitKey 00083 #endif 00084 #endif 00085 00086 00090 #ifdef DEBUG_STREAMER 00091 # define DEBUG_PRINT printf 00092 #else 00093 # define DEBUG_PRINT(...) 00094 #endif 00095 00096 00097 #endif 00098