KVIrc  4.9.2
DeveloperAPIs
DccVoiceCodec.h
Go to the documentation of this file.
1 #ifndef _CODEC_H_
2 #define _CODEC_H_
3 //=============================================================================
4 //
5 // File : DccVoiceCodec.h
6 // Creation date : Sun Aug 26 04:19:34 2001 GMT by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
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.
19 // See the GNU General Public License for more details.
20 //
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 Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviCString.h"
28 #include "KviDataBuffer.h"
29 
30 #ifndef COMPILE_DISABLE_OGG_THEORA
31 #include "KviOggTheoraDecoder.h"
32 #include "KviOggTheoraEncoder.h"
33 #endif
34 
36 {
37 public:
38  DccVoiceCodec();
39  virtual ~DccVoiceCodec();
40 
41 protected:
43 
44 public:
45  const char * name();
46  virtual void encode(KviDataBuffer * signal, KviDataBuffer * stream);
47  virtual void decode(KviDataBuffer * stream, KviDataBuffer * signal);
48  virtual int encodedFrameSize();
49  virtual int decodedFrameSize();
50 };
51 
53 {
54 public:
56  virtual ~DccVoiceNullCodec();
57 
58 public:
59  virtual void encode(KviDataBuffer * signal, KviDataBuffer * stream);
60  virtual void decode(KviDataBuffer * stream, KviDataBuffer * signal);
61  virtual int encodedFrameSize();
62  virtual int decodedFrameSize();
63 };
64 
66 {
67 public:
68  DccVideoCodec();
69  virtual ~DccVideoCodec();
70 
71 protected:
73 
74 public:
75  const char * name();
76  virtual void encodeVideo(KviDataBuffer * videoSignal, KviDataBuffer * stream);
77  virtual void encodeText(KviDataBuffer * textSignal, KviDataBuffer * stream);
78  virtual void decode(KviDataBuffer * stream, KviDataBuffer * videoSignal, KviDataBuffer * textSignal);
79  virtual int encodedFrameSize();
80  virtual int decodedFrameSize();
81 };
82 
84 {
85 public:
87  virtual ~DccVideoSJpegCodec();
88 
89 public:
90  virtual void encodeVideo(KviDataBuffer * videoSignal, KviDataBuffer * stream);
91  virtual void encodeText(KviDataBuffer * textSignal, KviDataBuffer * stream);
92  virtual void decode(KviDataBuffer * stream, KviDataBuffer * videoSignal, KviDataBuffer * textSignal);
93  virtual int encodedFrameSize();
94  virtual int decodedFrameSize();
95 };
96 
97 #ifndef COMPILE_DISABLE_OGG_THEORA
99 {
100 public:
102  virtual ~DccVideoTheoraCodec();
103 
104 public:
105  virtual void encodeVideo(KviDataBuffer * videoSignal, KviDataBuffer * stream);
106  virtual void encodeText(KviDataBuffer * textSignal, KviDataBuffer * stream);
107  virtual void decode(KviDataBuffer * stream, KviDataBuffer * videoSignal, KviDataBuffer * textSignal);
108  virtual int encodedFrameSize();
109  virtual int decodedFrameSize();
110 
111 private:
114 };
115 #endif // COMPILE_DISABLE_OGG_THEORA
116 #endif //_CODEC_H_
virtual int decodedFrameSize()
Definition: DccVoiceCodec.cpp:123
Contains the KviOggTheoraDecoder class.
Definition: KviCString.h:105
Contains the KviOggTheoraEncoder class.
Definition: DccVoiceCodec.h:98
virtual void encodeText(KviDataBuffer *textSignal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:110
virtual ~DccVideoTheoraCodec()
Definition: DccVoiceCodec.cpp:274
KviOggTheoraDecoder * m_pDecoder
Definition: DccVoiceCodec.h:113
virtual ~DccVideoCodec()
virtual int decodedFrameSize()
Definition: DccVoiceCodec.cpp:325
KviCString m_szName
Definition: DccVoiceCodec.h:42
KviCString m_szName
Definition: DccVoiceCodec.h:72
Definition: KviDataBuffer.h:30
const char * name()
Definition: DccVoiceCodec.cpp:128
virtual void encodeVideo(KviDataBuffer *videoSignal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:142
virtual int encodedFrameSize()
Definition: DccVoiceCodec.cpp:255
virtual void decode(KviDataBuffer *stream, KviDataBuffer *videoSignal, KviDataBuffer *textSignal)
Definition: DccVoiceCodec.cpp:178
DccVideoTheoraCodec()
Definition: DccVoiceCodec.cpp:266
virtual ~DccVideoSJpegCodec()
virtual ~DccVoiceCodec()
virtual void decode(KviDataBuffer *stream, KviDataBuffer *signal)
Definition: DccVoiceCodec.cpp:78
virtual void decode(KviDataBuffer *stream, KviDataBuffer *signal)
Definition: DccVoiceCodec.cpp:42
const char * name()
Definition: DccVoiceCodec.cpp:56
Definition: DccVoiceCodec.h:83
DccVoiceNullCodec()
Definition: DccVoiceCodec.cpp:61
virtual int encodedFrameSize()
Definition: DccVoiceCodec.cpp:46
virtual int encodedFrameSize()
Definition: DccVoiceCodec.cpp:87
DccVideoCodec()
Definition: DccVoiceCodec.cpp:99
virtual void encode(KviDataBuffer *signal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:70
virtual int encodedFrameSize()
Definition: DccVoiceCodec.cpp:320
virtual void encodeVideo(KviDataBuffer *videoSignal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:106
virtual void decode(KviDataBuffer *stream, KviDataBuffer *videoSignal, KviDataBuffer *textSignal)
Definition: DccVoiceCodec.cpp:114
virtual int decodedFrameSize()
Definition: DccVoiceCodec.cpp:92
virtual ~DccVoiceNullCodec()
Definition: DccVoiceCodec.h:65
Definition: DccVoiceCodec.h:35
virtual void decode(KviDataBuffer *stream, KviDataBuffer *videoSignal, KviDataBuffer *textSignal)
Definition: DccVoiceCodec.cpp:309
virtual void encodeText(KviDataBuffer *textSignal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:163
DccVoiceCodec()
Definition: DccVoiceCodec.cpp:31
Definition: DccVoiceCodec.h:52
virtual int decodedFrameSize()
Definition: DccVoiceCodec.cpp:260
DccVideoSJpegCodec()
Definition: DccVoiceCodec.cpp:133
An ogg/theora+irct encoder class; accepts argb32 images and binary text, outputs an ogg stream...
Definition: KviOggTheoraEncoder.h:56
virtual void encodeVideo(KviDataBuffer *videoSignal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:285
KviOggTheoraEncoder * m_pEncoder
Definition: DccVoiceCodec.h:112
virtual int decodedFrameSize()
Definition: DccVoiceCodec.cpp:51
virtual void encode(KviDataBuffer *signal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:38
An ogg/theora+irct decoder class; accepts a proper ogg stream, outputs argb32 images and binary text...
Definition: KviOggTheoraDecoder.h:51
virtual void encodeText(KviDataBuffer *textSignal, KviDataBuffer *stream)
Definition: DccVoiceCodec.cpp:297
virtual int encodedFrameSize()
Definition: DccVoiceCodec.cpp:118