diff --git a/src/zm_stream.h b/src/zm_stream.h index d844cc960..aad9bbfaa 100644 --- a/src/zm_stream.h +++ b/src/zm_stream.h @@ -30,8 +30,7 @@ class Monitor; #define TV_2_FLOAT( tv ) ( double((tv).tv_sec) + (double((tv).tv_usec) / 1000000.0) ) -class StreamBase -{ +class StreamBase { public: typedef enum { STREAM_JPEG, STREAM_RAW, STREAM_ZIP, STREAM_SINGLE, STREAM_MPEG } StreamType; @@ -110,8 +109,7 @@ protected: virtual void processCommand( const CmdMsg *msg )=0; public: - StreamBase() - { + StreamBase() { monitor = 0; type = DEFAULT_TYPE; @@ -145,34 +143,27 @@ public: } virtual ~StreamBase(); - void setStreamType( StreamType p_type ) - { + void setStreamType( StreamType p_type ) { type = p_type; } - void setStreamFormat( const char *p_format ) - { + void setStreamFormat( const char *p_format ) { format = p_format; } - void setStreamScale( int p_scale ) - { + void setStreamScale( int p_scale ) { scale = p_scale; if ( ! scale ) scale = DEFAULT_SCALE; } - void setStreamReplayRate( int p_rate ) - { + void setStreamReplayRate( int p_rate ) { replay_rate = p_rate; } - void setStreamMaxFPS( double p_maxfps ) - { + void setStreamMaxFPS( double p_maxfps ) { maxfps = p_maxfps; } - void setStreamBitrate( int p_bitrate ) - { + void setStreamBitrate( int p_bitrate ) { bitrate = p_bitrate; } - void setStreamQueue( int p_connkey ) - { + void setStreamQueue( int p_connkey ) { connkey = p_connkey; } virtual void openComms();