vorbisencoderdllstuff.h

Go to the documentation of this file.
00001 //===========================================================================
00002 //Copyright (C) 2003, 2004 Zentaro Kavanagh
00003 //
00004 //Redistribution and use in source and binary forms, with or without
00005 //modification, are permitted provided that the following conditions
00006 //are met:
00007 //
00008 //- Redistributions of source code must retain the above copyright
00009 //  notice, this list of conditions and the following disclaimer.
00010 //
00011 //- Redistributions in binary form must reproduce the above copyright
00012 //  notice, this list of conditions and the following disclaimer in the
00013 //  documentation and/or other materials provided with the distribution.
00014 //
00015 //- Neither the name of Zentaro Kavanagh nor the names of contributors 
00016 //  may be used to endorse or promote products derived from this software 
00017 //  without specific prior written permission.
00018 //
00019 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 //``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 //LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00022 //PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE ORGANISATION OR
00023 //CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024 //EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025 //PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 //PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 //LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 //NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 //SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 //===========================================================================
00031 
00032 #pragma once
00033 
00034 //#ifdef DSFABSTRACOGGAUDIODECODER_EXPORTS
00035 //#pragma message("----> Exporting from Abstract Library...")
00036 //#define ABS_AUDIO_DEC_API __declspec(dllexport)
00037 //#else
00038 //#pragma message("<---- Importing from Abstract Library...")
00039 //#define ABS_AUDIO_DEC_API __declspec(dllimport)
00040 //#endif
00041 
00042 struct sVorbisFormatBlock {
00043         unsigned long vorbisVersion;
00044         unsigned long samplesPerSec;
00045         unsigned long minBitsPerSec;
00046         unsigned long avgBitsPerSec;
00047         unsigned long maxBitsPerSec;
00048         unsigned char numChannels;
00049 };
00050 
00051 #include "AbstractTransformFilter.h"
00052 #include "AbstractTransformInputPin.h"
00053 #include "AbstractTransformOutputPin.h"
00054 #include "VorbisEncodeInputPin.h"
00055 #include "VorbisEncodeOutputPin.h"
00056 #include "VorbisEncodeFilter.h"
00057 
00058 #ifdef LIBOOOGG_EXPORTS
00059 #define LIBOOOGG_API __declspec(dllexport)
00060 #else
00061 #define LIBOOOGG_API __declspec(dllimport)
00062 #endif
00063 
00065 //DEFINE_GUID(CLSID_VorbisDecodeFilter, 
00066 //0x5a1d945, 0xa794, 0x44ef, 0xb4, 0x1a, 0x2f, 0x85, 0x1a, 0x11, 0x71, 0x55);
00067 
00068 // {5C94FE86-B93B-467f-BFC3-BD6C91416F9B}
00069 DEFINE_GUID(CLSID_VorbisEncodeFilter, 
00070 0x5c94fe86, 0xb93b, 0x467f, 0xbf, 0xc3, 0xbd, 0x6c, 0x91, 0x41, 0x6f, 0x9b);
00071 
00072 // {8A0566AC-42B3-4ad9-ACA3-93B906DDF98A}
00073 DEFINE_GUID(MEDIASUBTYPE_Vorbis, 
00074 0x8a0566ac, 0x42b3, 0x4ad9, 0xac, 0xa3, 0x93, 0xb9, 0x6, 0xdd, 0xf9, 0x8a);
00075 
00076 // {44E04F43-58B3-4de1-9BAA-8901F852DAE4}
00077 DEFINE_GUID(FORMAT_Vorbis, 
00078 0x44e04f43, 0x58b3, 0x4de1, 0x9b, 0xaa, 0x89, 0x1, 0xf8, 0x52, 0xda, 0xe4);
00079 
00080 
00081 // {A4C6A887-7BD3-4b33-9A57-A3EB10924D3A}
00082 DEFINE_GUID(IID_IVorbisEncodeSettings, 
00083 0xa4c6a887, 0x7bd3, 0x4b33, 0x9a, 0x57, 0xa3, 0xeb, 0x10, 0x92, 0x4d, 0x3a);
00084 
00085 const REGPINTYPES VorbisEncodeInputTypes = {
00086     &MEDIATYPE_Audio,
00087         &MEDIASUBTYPE_PCM
00088 };
00089 
00090 const REGPINTYPES VorbisEncodeOutputTypes = {
00091         &MEDIATYPE_Audio,
00092         &MEDIASUBTYPE_Vorbis
00093 };
00094 
00095 const REGFILTERPINS VorbisEncodePinReg[] = {
00096         {
00097     L"PCM Input",                                               //Name (obsoleted)
00098         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00099         FALSE,                                                          //Not an output pin
00100         FALSE,                                                          //Cannot have zero instances of this pin
00101         FALSE,                                                          //Cannot have more than one instance of this pin
00102         NULL,                                                           //Connects to filter (obsoleted)
00103         NULL,                                                           //Connects to pin (obsoleted)
00104         1,                                                                      //upport two media type
00105         &VorbisEncodeInputTypes                         //Pointer to media type (Audio/Vorbis or Audio/Speex)
00106         } ,
00107 
00108         {
00109         L"Vorbis Output",                                               //Name (obsoleted)
00110         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00111         TRUE,                                                           //Is an output pin
00112         FALSE,                                                          //Cannot have zero instances of this pin
00113         FALSE,                                                          //Cannot have more than one instance of this pin
00114         NULL,                                                           //Connects to filter (obsoleted)
00115         NULL,                                                           //Connects to pin (obsoleted)
00116         1,                                                                      //Only support one media type
00117         &VorbisEncodeOutputTypes                                        //Pointer to media type (Audio/PCM)
00118 
00119         }
00120 };
00121 
00122 
00123 
00124 const REGFILTER2 VorbisEncodeFilterReg = {
00125                 1,
00126                 MERIT_DO_NOT_USE,
00127                 2,
00128         VorbisEncodePinReg
00129                 
00130 };
00131            
00132 

Generated on Tue Feb 15 14:54:17 2005 for oggdsf by  doxygen 1.3.9