~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/modules/dcc/DccVoiceCodec.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 opinion) 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
 
 
35
class DccVoiceCodec
 
36
{
 
37
public:
 
38
        DccVoiceCodec();
 
39
        virtual ~DccVoiceCodec();
 
40
protected:
 
41
        KviCString m_szName;
 
42
public:
 
43
        const char * name();
 
44
        virtual void encode(KviDataBuffer * signal,KviDataBuffer * stream);
 
45
        virtual void decode(KviDataBuffer * stream,KviDataBuffer * signal);
 
46
        virtual int encodedFrameSize();
 
47
        virtual int decodedFrameSize();
 
48
};
 
49
 
 
50
class DccVoiceNullCodec : public DccVoiceCodec
 
51
{
 
52
public:
 
53
        DccVoiceNullCodec();
 
54
        virtual ~DccVoiceNullCodec();
 
55
public:
 
56
        virtual void encode(KviDataBuffer * signal,KviDataBuffer * stream);
 
57
        virtual void decode(KviDataBuffer * stream,KviDataBuffer * signal);
 
58
        virtual int encodedFrameSize();
 
59
        virtual int decodedFrameSize();
 
60
};
 
61
 
 
62
class DccVideoCodec
 
63
{
 
64
public:
 
65
        DccVideoCodec();
 
66
        virtual ~DccVideoCodec();
 
67
protected:
 
68
        KviCString m_szName;
 
69
public:
 
70
        const char * name();
 
71
        virtual void encodeVideo(KviDataBuffer * videoSignal, KviDataBuffer * stream);
 
72
        virtual void encodeText(KviDataBuffer * textSignal, KviDataBuffer * stream);
 
73
        virtual void decode(KviDataBuffer * stream,KviDataBuffer * videoSignal,KviDataBuffer * textSignal);
 
74
        virtual int encodedFrameSize();
 
75
        virtual int decodedFrameSize();
 
76
};
 
77
 
 
78
class DccVideoSJpegCodec : public DccVideoCodec
 
79
{
 
80
public:
 
81
        DccVideoSJpegCodec();
 
82
        virtual ~DccVideoSJpegCodec();
 
83
public:
 
84
        virtual void encodeVideo(KviDataBuffer * videoSignal, KviDataBuffer * stream);
 
85
        virtual void encodeText(KviDataBuffer * textSignal, KviDataBuffer * stream);
 
86
        virtual void decode(KviDataBuffer * stream,KviDataBuffer * videoSignal,KviDataBuffer * textSignal);
 
87
        virtual int encodedFrameSize();
 
88
        virtual int decodedFrameSize();
 
89
};
 
90
 
 
91
#ifndef COMPILE_DISABLE_OGG_THEORA
 
92
class DccVideoTheoraCodec : public DccVideoCodec
 
93
{
 
94
public:
 
95
        DccVideoTheoraCodec();
 
96
        virtual ~DccVideoTheoraCodec();
 
97
public:
 
98
        virtual void encodeVideo(KviDataBuffer * videoSignal, KviDataBuffer * stream);
 
99
        virtual void encodeText(KviDataBuffer * textSignal, KviDataBuffer * stream);
 
100
        virtual void decode(KviDataBuffer * stream,KviDataBuffer * videoSignal,KviDataBuffer * textSignal);
 
101
        virtual int encodedFrameSize();
 
102
        virtual int decodedFrameSize();
 
103
private:
 
104
        KviOggTheoraEncoder * m_pEncoder;
 
105
        KviOggTheoraDecoder * m_pDecoder;
 
106
};
 
107
#endif // COMPILE_DISABLE_OGG_THEORA
 
108
#endif //_CODEC_H_