kwave  18.07.70
OggCodecPlugin.h
Go to the documentation of this file.
1 /*************************************************************************
2  OggCodecPlugin.h - import/export of audio in an Ogg container
3  -------------------
4  begin : Tue Sep 10 2002
5  copyright : (C) 2002 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef OGG_CODEC_PLUGIN_H
19 #define OGG_CODEC_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include "libkwave/CodecPlugin.h"
24 #include "libkwave/Compression.h"
25 
26 namespace Kwave
27 {
28 
30  {
31  Q_OBJECT
32  public:
33 
39  OggCodecPlugin(QObject *parent, const QVariantList &args);
40 
42  virtual ~OggCodecPlugin() Q_DECL_OVERRIDE;
43 
45  virtual QList<Kwave::Decoder *> createDecoder() Q_DECL_OVERRIDE;
46 
48  virtual QList<Kwave::Encoder *> createEncoder() Q_DECL_OVERRIDE;
49 
50  private:
53  };
54 }
55 
56 #define REGISTER_OGG_OPUS_MIME_TYPES \
57  /* Ogg audio, as per RFC5334, RFC4288 and RFC4855 */ \
58  addMimeType( \
59  "audio/opus, audio/ogg, application/ogg", \
60  i18n("Ogg Opus audio"), \
61  "*.opus" \
62  );
63 
64 #define REGISTER_OGG_VORBIS_MIME_TYPES \
65  addMimeType( \
66  "audio/x-vorbis+ogg, audio/ogg, audio/x-ogg, application/x-ogg", \
67  i18n("Ogg Vorbis audio"), \
68  "*.ogg" \
69  );
70 
71 #define REGISTER_COMPRESSION_TYPE_OGG_OPUS \
72  addCompression(Kwave::Compression::OGG_OPUS);
73 
74 #define REGISTER_COMPRESSION_TYPE_OGG_VORBIS \
75  addCompression(Kwave::Compression::OGG_VORBIS);
76 
77 #endif /* OGG_CODEC_PLUGIN_H */
78 
79 //***************************************************************************
80 //***************************************************************************
virtual QList< Kwave::Encoder * > createEncoder() Q_DECL_OVERRIDE
virtual ~OggCodecPlugin() Q_DECL_OVERRIDE
Definition: App.h:33
OggCodecPlugin(QObject *parent, const QVariantList &args)
virtual QList< Kwave::Decoder * > createDecoder() Q_DECL_OVERRIDE
static CodecPlugin::Codec m_codec