Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

EncLayerDummy.h

Go to the documentation of this file.
00001 /* Copyright (C) 2002 Carsten Griwodz 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, this code may be used in unmodified form 00006 * provided that this copyright notice and this permission notice appear 00007 * in supporting documentation. 00008 * 00009 * The code may be made subject to the terms of the GNU General Public 00010 * License, Version 2, and re-distributed under the terms of this license. 00011 * 00012 * Commercial use other than under the terms of the GNU General Public 00013 * License is allowed only after negotiation of conditions with the authors. 00014 */ 00015 #ifndef MNRTPENCODERLayerDummy_H 00016 #define MNRTPENCODERLayerDummy_H 00017 00018 #include "MNRTPEncoderCommon.h" 00019 #include "sh/SHData.h" 00020 #include "MNValid.h" 00021 #include "MNTimeval.h" 00022 00023 /************************************************************** 00024 * Class: EncLayerDummy 00025 * Description: contains the encoder functionality of the codec 00026 * August 2001 00027 **************************************************************/ 00028 #define CLOCKRATE 8000 00029 #define LayerDummy_BANDWIDTH 8000 00030 00031 namespace RTP 00032 { 00033 00034 class EncLayerDummy : public MNRTPEncoderCommon 00035 { 00036 private: 00037 bool _first_run; 00038 Timeval _first_pull; 00039 SH::DataPtr _last_data_ptr; 00040 00041 public: 00085 virtual MNRope* get_next_data( SH::SinkEndpoint* pull_here, 00086 size_t max_bytes_to_pull, 00087 SH::ReturnCode& except, 00088 size_t& pulled_bytes, 00089 bool& rtp_marker, 00090 u_int32& rtp_timestamp, 00091 Timeval& next_playtime_packet, 00092 int bandwidth ); 00093 00094 EncLayerDummy( RetransBase* retrans ); 00095 virtual ~EncLayerDummy(); 00096 00097 virtual u_int32_t get_std_bw( int fd ); 00098 00104 virtual int get_timer_type( ); 00105 00106 }; 00107 00108 }; // namespace RTP 00109 00110 #endif

Generated on Sun Mar 6 13:35:49 2005 for Komssys by doxygen 1.3.8