subtitledllstuff.h

Go to the documentation of this file.
00001 //===========================================================================
00002 //Copyright (C) 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 #include <streams.h>
00034 #include <initguid.h>
00035 // {966D76B4-7D2F-4f01-B840-94E425D2214F}
00036 DEFINE_GUID(MEDIASUBTYPE_SubtitleVMR9, 
00037 0x966d76b4, 0x7d2f, 0x4f01, 0xb8, 0x40, 0x94, 0xe4, 0x25, 0xd2, 0x21, 0x4f);
00038 
00039 // {5709E326-01D8-49ad-9D08-F8723112D82E}
00040 DEFINE_GUID(CLSID_SubtitleVMR9Filter, 
00041 0x5709e326, 0x1d8, 0x49ad, 0x9d, 0x8, 0xf8, 0x72, 0x31, 0x12, 0xd8, 0x2e);
00042 
00043 
00044 const REGPINTYPES SubtitleVMR9OutputTypes = {
00045     &MEDIATYPE_Video,
00046         &MEDIASUBTYPE_YV12
00047 };
00048 
00049 const REGPINTYPES SubtitleVMR9InputTypes = {
00050         &MEDIATYPE_Text,
00051         &MEDIASUBTYPE_SubtitleVMR9
00052 };
00053 
00054 const REGFILTERPINS SubtitleVMR9PinReg[] = {
00055         {
00056     L"Subtitle Input",                                          //Name (obsoleted)
00057         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00058         FALSE,                                                          //Not an output pin
00059         FALSE,                                                          //Cannot have zero instances of this pin
00060         FALSE,                                                          //Cannot have more than one instance of this pin
00061         NULL,                                                           //Connects to filter (obsoleted)
00062         NULL,                                                           //Connects to pin (obsoleted)
00063         1,                                                                      //upport two media type
00064         &SubtitleVMR9InputTypes                         //Pointer to media type (Audio/Vorbis or Audio/Speex)
00065         } ,
00066 
00067         {
00068         L"Subtitle Output",                                             //Name (obsoleted)
00069         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00070         TRUE,                                                           //Is an output pin
00071         FALSE,                                                          //Cannot have zero instances of this pin
00072         FALSE,                                                          //Cannot have more than one instance of this pin
00073         NULL,                                                           //Connects to filter (obsoleted)
00074         NULL,                                                           //Connects to pin (obsoleted)
00075         1,                                                                      //Only support one media type
00076         &SubtitleVMR9OutputTypes                                        //Pointer to media type (Audio/PCM)
00077 
00078         }
00079 };
00080 
00081 
00082 
00083 const REGFILTER2 SubtitleVMR9FilterReg = {
00084                 1,
00085                 MERIT_PREFERRED + 2,
00086                 2,
00087         SubtitleVMR9PinReg
00088                 
00089 };
00090            
00091 
00092 struct sVorbisFormatBlock {
00093         unsigned long vorbisVersion;
00094         unsigned long samplesPerSec;
00095         unsigned long minBitsPerSec;
00096         unsigned long avgBitsPerSec;
00097         unsigned long maxBitsPerSec;
00098         unsigned char numChannels;
00099 };

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