Esempio n. 1
0
class IWICFormatConverter(IWICBitmapSource, com.IUnknown):
    _methods_ = [
        ('Initialize',
         com.STDMETHOD(IWICBitmapSource, POINTER(REFWICPixelFormatGUID), WICBitmapDitherType, c_void_p, DOUBLE, WICBitmapPaletteType)),
        ('CanConvert',
         com.STDMETHOD(POINTER(REFWICPixelFormatGUID), POINTER(REFWICPixelFormatGUID), POINTER(BOOL))),
    ]
Esempio n. 2
0
class IMMDevice(com.pIUnknown):
    _methods_ = [
        ('Activate', com.STDMETHOD(com.REFIID, DWORD, POINTER(PROPVARIANT))),
        ('OpenPropertyStore', com.STDMETHOD(UINT, POINTER(IPropertyStore))),
        ('GetId', com.STDMETHOD(POINTER(LPWSTR))),
        ('GetState', com.STDMETHOD(POINTER(DWORD))),
    ]
Esempio n. 3
0
class IMFMediaBuffer(com.IUnknown):
    _methods_ = [('Lock',
                  com.STDMETHOD(POINTER(POINTER(BYTE)), POINTER(DWORD),
                                POINTER(DWORD))), ('Unlock', com.STDMETHOD()),
                 ('GetCurrentLength', com.STDMETHOD(POINTER(DWORD))),
                 ('SetCurrentLength', com.STDMETHOD(DWORD)),
                 ('GetMaxLength', com.STDMETHOD(POINTER(DWORD)))]
Esempio n. 4
0
File: wic.py Progetto: einarf/pyglet
class IWICMetadataQueryReader(com.pIUnknown):
    _methods_ = [
        ('GetContainerFormat', com.STDMETHOD()),
        ('GetLocation', com.STDMETHOD()),
        ('GetMetadataByName', com.STDMETHOD(LPCWSTR, c_void_p)),
        ('GetEnumerator', com.STDMETHOD()),
    ]
Esempio n. 5
0
File: wic.py Progetto: einarf/pyglet
class IWICBitmapFrameDecode(IWICBitmapSource, com.pIUnknown):
    _methods_ = [
        ('GetMetadataQueryReader',
         com.STDMETHOD(POINTER(IWICMetadataQueryReader))),
        ('GetColorContexts', com.STDMETHOD()),
        ('GetThumbnail', com.STDMETHOD(POINTER(IWICBitmapSource))),
    ]
Esempio n. 6
0
class IPropertyStore(com.pIUnknown):
    _methods_ = [
        ('GetCount', com.STDMETHOD(POINTER(DWORD))),
        ('GetAt', com.STDMETHOD(DWORD, POINTER(PROPERTYKEY))),
        ('GetValue', com.STDMETHOD(REFPROPERTYKEY, POINTER(PROPVARIANT))),
        ('SetValue', com.STDMETHOD()),
        ('Commit', com.STDMETHOD()),
    ]
Esempio n. 7
0
class IMFMediaType(IMFAttributes, com.IUnknown):
    _methods_ = [
        ('GetMajorType', com.STDMETHOD()),
        ('IsCompressedFormat', com.STDMETHOD()),
        ('IsEqual', com.STDMETHOD()),
        ('GetRepresentation', com.STDMETHOD()),
        ('FreeRepresentation', com.STDMETHOD()),
    ]
Esempio n. 8
0
File: wic.py Progetto: einarf/pyglet
class IWICBitmapSource(com.pIUnknown):
    _methods_ = [
        ('GetSize', com.STDMETHOD(POINTER(UINT), POINTER(UINT))),
        ('GetPixelFormat', com.STDMETHOD(POINTER(REFWICPixelFormatGUID))),
        ('GetResolution', com.STDMETHOD(POINTER(DOUBLE), POINTER(DOUBLE))),
        ('CopyPalette', com.STDMETHOD()),
        ('CopyPixels', com.STDMETHOD(c_void_p, UINT, UINT, c_void_p)),
    ]
Esempio n. 9
0
class IWICBitmap(IWICBitmapSource, com.IUnknown):
    _methods_ = [
        ('Lock',
         com.STDMETHOD()),
        ('SetPalette',
         com.STDMETHOD()),
        ('SetResolution',
         com.STDMETHOD())
    ]
Esempio n. 10
0
class IMMDeviceEnumerator(com.pIUnknown):
    _methods_ = [
        ('EnumAudioEndpoints', com.STDMETHOD(EDataFlow, DWORD, c_void_p)),
        ('GetDefaultAudioEndpoint',
         com.STDMETHOD(EDataFlow, ERole, ctypes.POINTER(IMMDevice))),
        ('GetDevice', com.STDMETHOD(LPCWSTR, POINTER(IMMDevice))),
        ('RegisterEndpointNotificationCallback',
         com.STDMETHOD(POINTER(IMMNotificationClient))),
        ('UnregisterEndpointNotificationCallback', com.STDMETHOD()),
    ]
Esempio n. 11
0
File: wic.py Progetto: einarf/pyglet
class IWICPalette(com.pIUnknown):
    _methods_ = [
        ('InitializePredefined', com.STDMETHOD()),
        ('InitializeCustom', com.STDMETHOD()),
        ('InitializeFromBitmap', com.STDMETHOD()),
        ('InitializeFromPalette', com.STDMETHOD()),
        ('GetType', com.STDMETHOD()),
        ('GetColorCount', com.STDMETHOD()),
        ('GetColors', com.STDMETHOD()),
        ('IsBlackWhite', com.STDMETHOD()),
        ('IsGrayscale', com.STDMETHOD()),
        ('HasAlpha', com.STDMETHOD()),
    ]
Esempio n. 12
0
class IWICPixelFormatInfo(IWICComponentInfo, com.IUnknown):
    _methods_ = [
        ('GetFormatGUID',
         com.STDMETHOD(POINTER(com.GUID))),
        ('GetColorContext',
         com.STDMETHOD()),
        ('GetBitsPerPixel',
         com.STDMETHOD(POINTER(UINT))),
        ('GetChannelCount',
         com.STDMETHOD(POINTER(UINT))),
        ('GetChannelMask',
         com.STDMETHOD())
    ]
Esempio n. 13
0
class IXAudio2SourceVoice(IXAudio2Voice):
    _methods_ = [
        ('Start', com.STDMETHOD(UINT32, UINT32)),
        ('Stop', com.STDMETHOD(UINT32, UINT32)),
        ('SubmitSourceBuffer', com.STDMETHOD(POINTER(XAUDIO2_BUFFER),
                                             c_void_p)),
        ('FlushSourceBuffers', com.STDMETHOD()),
        ('Discontinuity', com.STDMETHOD()),
        ('ExitLoop', com.STDMETHOD()),
        ('GetState', com.STDMETHOD(POINTER(XAUDIO2_VOICE_STATE), UINT32)),
        ('SetFrequencyRatio', com.STDMETHOD(FLOAT, UINT32)),
        ('GetFrequencyRatio', com.STDMETHOD(POINTER(c_float))),
        ('SetSourceSampleRate', com.STDMETHOD()),
    ]
Esempio n. 14
0
class IXAudio2(com.pIUnknown):
    _methods_ = [
        ('RegisterForCallbacks',
         com.STDMETHOD(POINTER(IXAudio2EngineCallback))),
        ('UnregisterForCallbacks',
         com.METHOD(ctypes.c_void_p, POINTER(IXAudio2EngineCallback))),
        ('CreateSourceVoice',
         com.STDMETHOD(POINTER(IXAudio2SourceVoice), POINTER(WAVEFORMATEX),
                       UINT32, c_float, POINTER(IXAudio2VoiceCallback),
                       POINTER(XAUDIO2_VOICE_SENDS),
                       POINTER(XAUDIO2_EFFECT_CHAIN))),
        ('CreateSubmixVoice',
         com.STDMETHOD(POINTER(IXAudio2SubmixVoice), UINT32, UINT32, UINT32,
                       UINT32, POINTER(XAUDIO2_VOICE_SENDS),
                       POINTER(XAUDIO2_EFFECT_CHAIN))),
        ('CreateMasteringVoice',
         com.STDMETHOD(POINTER(IXAudio2MasteringVoice), UINT32, UINT32, UINT32,
                       LPCWSTR, POINTER(XAUDIO2_EFFECT_CHAIN), UINT32)),
        ('StartEngine', com.STDMETHOD()),
        ('StopEngine', com.STDMETHOD()),
        ('CommitChanges', com.STDMETHOD(UINT32)),
        ('GetPerformanceData',
         com.METHOD(c_void, POINTER(XAUDIO2_PERFORMANCE_DATA))),
        ('SetDebugConfiguration',
         com.STDMETHOD(POINTER(XAUDIO2_DEBUG_CONFIGURATION), c_void_p)),
    ]
Esempio n. 15
0
File: wic.py Progetto: einarf/pyglet
class IWICBitmapEncoder(com.pIUnknown):
    _methods_ = [('Initialize',
                  com.STDMETHOD(IWICStream, WICBitmapEncoderCacheOption)),
                 ('GetContainerFormat', com.STDMETHOD()),
                 ('GetEncoderInfo', com.STDMETHOD()),
                 ('SetColorContexts', com.STDMETHOD()),
                 ('SetPalette', com.STDMETHOD()),
                 ('SetThumbnail', com.STDMETHOD()),
                 ('SetPreview', com.STDMETHOD()),
                 ('CreateNewFrame',
                  com.STDMETHOD(POINTER(IWICBitmapFrameEncode),
                                POINTER(IPropertyBag2))),
                 ('Commit', com.STDMETHOD()),
                 ('GetMetadataQueryWriter', com.STDMETHOD())]
Esempio n. 16
0
File: wic.py Progetto: einarf/pyglet
class IWICComponentInfo(com.pIUnknown):
    _methods_ = [('GetComponentType', com.STDMETHOD()),
                 ('GetCLSID', com.STDMETHOD()),
                 ('GetSigningStatus', com.STDMETHOD()),
                 ('GetAuthor', com.STDMETHOD()),
                 ('GetVendorGUID', com.STDMETHOD()),
                 ('GetVersion', com.STDMETHOD()),
                 ('GetSpecVersion', com.STDMETHOD()),
                 ('GetFriendlyName', com.STDMETHOD())]
Esempio n. 17
0
class IMFSourceReader(com.IUnknown):
    _methods_ = [
        ('GetStreamSelection', com.STDMETHOD(DWORD, POINTER(BOOL))),  # in, out
        ('SetStreamSelection', com.STDMETHOD(DWORD, BOOL)),
        ('GetNativeMediaType',
         com.STDMETHOD(DWORD, DWORD, POINTER(IMFMediaType))),
        ('GetCurrentMediaType', com.STDMETHOD(DWORD, POINTER(IMFMediaType))),
        ('SetCurrentMediaType',
         com.STDMETHOD(DWORD, POINTER(DWORD), IMFMediaType)),
        ('SetCurrentPosition', com.STDMETHOD(com.REFIID, PROPVARIANT)),
        ('ReadSample',
         com.STDMETHOD(DWORD, DWORD, POINTER(DWORD), POINTER(DWORD),
                       POINTER(c_longlong), POINTER(IMFSample))),
        ('Flush', com.STDMETHOD(DWORD)),  # in
        ('GetServiceForStream', com.STDMETHOD()),
        ('GetPresentationAttribute', com.STDMETHOD()),
    ]
Esempio n. 18
0
class IDirectInput8(com.IUnknown):
    _methods_ = [
        ('CreateDevice',
         com.STDMETHOD(ctypes.POINTER(com.GUID),
                       ctypes.POINTER(IDirectInputDevice8), ctypes.c_void_p)),
        ('EnumDevices',
         com.STDMETHOD(DWORD, LPDIENUMDEVICESCALLBACK, LPVOID, DWORD)),
        ('GetDeviceStatus', com.STDMETHOD()),
        ('RunControlPanel', com.STDMETHOD()),
        ('Initialize', com.STDMETHOD()),
        ('FindDevice', com.STDMETHOD()),
        ('EnumDevicesBySemantics', com.STDMETHOD()),
        ('ConfigureDevices', com.STDMETHOD()),
    ]
Esempio n. 19
0
class IDirectSound(com.IUnknown):
    _methods_ = [
        ('CreateSoundBuffer',
         com.STDMETHOD(LPDSBUFFERDESC, ctypes.POINTER(IDirectSoundBuffer),
                       LPUNKNOWN)),
        ('GetCaps', com.STDMETHOD(LPDSCAPS)),
        ('DuplicateSoundBuffer',
         com.STDMETHOD(IDirectSoundBuffer,
                       ctypes.POINTER(IDirectSoundBuffer))),
        ('SetCooperativeLevel', com.STDMETHOD(HWND, DWORD)),
        ('Compact', com.STDMETHOD()),
        ('GetSpeakerConfig', com.STDMETHOD(LPDWORD)),
        ('SetSpeakerConfig', com.STDMETHOD(DWORD)),
        ('Initialize', com.STDMETHOD(com.LPGUID)),
    ]
    _type_ = com.COMInterface
Esempio n. 20
0
class IXAudio2VoiceCallback(com.Interface):
    _methods_ = [
        ('OnVoiceProcessingPassStart', com.STDMETHOD(UINT32)),
        ('OnVoiceProcessingPassEnd', com.STDMETHOD()),
        ('onStreamEnd', com.STDMETHOD()),
        ('onBufferStart', com.STDMETHOD(ctypes.c_void_p)),
        ('OnBufferEnd', com.STDMETHOD(ctypes.c_void_p)),
        ('OnLoopEnd', com.STDMETHOD(ctypes.c_void_p)),
    ]
Esempio n. 21
0
class IDirectInputDevice8(com.IUnknown):
    _methods_ = [
        ('GetCapabilities', com.STDMETHOD()),
        ('EnumObjects',
         com.STDMETHOD(LPDIENUMDEVICEOBJECTSCALLBACK, LPVOID, DWORD)),
        ('GetProperty', com.STDMETHOD()),
        ('SetProperty', com.STDMETHOD(LPVOID, LPDIPROPHEADER)),
        ('Acquire', com.STDMETHOD()),
        ('Unacquire', com.STDMETHOD()),
        ('GetDeviceState', com.STDMETHOD()),
        ('GetDeviceData',
         com.STDMETHOD(DWORD, LPDIDEVICEOBJECTDATA, LPDWORD, DWORD)),
        ('SetDataFormat', com.STDMETHOD(LPDIDATAFORMAT)),
        ('SetEventNotification', com.STDMETHOD(HANDLE)),
        ('SetCooperativeLevel', com.STDMETHOD(HWND, DWORD)),
        ('GetObjectInfo', com.STDMETHOD()),
        ('GetDeviceInfo', com.STDMETHOD()),
        ('RunControlPanel', com.STDMETHOD()),
        ('Initialize', com.STDMETHOD()),
        ('CreateEffect', com.STDMETHOD()),
        ('EnumEffects', com.STDMETHOD()),
        ('GetEffectInfo', com.STDMETHOD()),
        ('GetForceFeedbackState', com.STDMETHOD()),
        ('SendForceFeedbackCommand', com.STDMETHOD()),
        ('EnumCreatedEffectObjects', com.STDMETHOD()),
        ('Escape', com.STDMETHOD()),
        ('Poll', com.STDMETHOD()),
        ('SendDeviceData', com.STDMETHOD()),
        ('EnumEffectsInFile', com.STDMETHOD()),
        ('WriteEffectToFile', com.STDMETHOD()),
        ('BuildActionMap', com.STDMETHOD()),
        ('SetActionMap', com.STDMETHOD()),
        ('GetImageInfo', com.STDMETHOD()),
    ]
Esempio n. 22
0
class IWICImagingFactory(com.IUnknown):
    _methods_ = [
        ('CreateDecoderFromFilename',
         com.STDMETHOD(LPCWSTR, com.GUID, DWORD, WICDecodeOptions, POINTER(IWICBitmapDecoder))),
        ('CreateDecoderFromStream',
         com.STDMETHOD(com.IUnknown, c_void_p, WICDecodeOptions, POINTER(IWICBitmapDecoder))),
        ('CreateDecoderFromFileHandle',
         com.STDMETHOD()),
        ('CreateComponentInfo',
         com.STDMETHOD(com.GUID, POINTER(IWICComponentInfo))),
        ('CreateDecoder',
         com.STDMETHOD()),
        ('CreateEncoder',
         com.STDMETHOD()),
        ('CreatePalette',
         com.STDMETHOD()),
        ('CreateFormatConverter',
         com.STDMETHOD(POINTER(IWICFormatConverter))),
        ('CreateBitmapScaler',
         com.STDMETHOD()),
        ('CreateBitmapClipper',
         com.STDMETHOD()),
        ('CreateBitmapFlipRotator',
         com.STDMETHOD(POINTER(IWICBitmapFlipRotator))),
        ('CreateStream',
         com.STDMETHOD()),
        ('CreateColorContext',
         com.STDMETHOD()),
        ('CreateColorTransformer',
         com.STDMETHOD()),
        ('CreateBitmap',
         com.STDMETHOD(UINT, UINT, REFWICPixelFormatGUID, WICBitmapCreateCacheOption, POINTER(IWICBitmap))),
        ('CreateBitmapFromSource',
         com.STDMETHOD()),
        ('CreateBitmapFromSourceRect',
         com.STDMETHOD()),
        ('CreateBitmapFromMemory',
         com.STDMETHOD()),
        ('CreateBitmapFromHBITMAP',
         com.STDMETHOD()),
        ('CreateBitmapFromHICON',
         com.STDMETHOD()),
        ('CreateComponentEnumerator',
         com.STDMETHOD()),
        ('CreateFastMetadataEncoderFromDecoder',
         com.STDMETHOD()),
        ('CreateFastMetadataEncoderFromFrameDecode',
         com.STDMETHOD()),
        ('CreateQueryWriter',
         com.STDMETHOD()),
        ('CreateQueryWriterFromReader',
         com.STDMETHOD())
    ]
Esempio n. 23
0
class IWICBitmapDecoder(com.IUnknown):
    _methods_ = [
        ('QueryCapability',
         com.STDMETHOD()),
        ('Initialize',
         com.STDMETHOD()),
        ('GetContainerFormat',
         com.STDMETHOD()),
        ('GetDecoderInfo',
         com.STDMETHOD()),
        ('CopyPalette',
         com.STDMETHOD()),
        ('GetMetadataQueryReader',
         com.STDMETHOD(POINTER(IWICMetadataQueryReader))),
        ('GetPreview',
         com.STDMETHOD()),
        ('GetColorContexts',
         com.STDMETHOD()),
        ('GetThumbnail',
         com.STDMETHOD()),
        ('GetFrameCount',
         com.STDMETHOD(POINTER(UINT))),
        ('GetFrame',
         com.STDMETHOD(UINT, POINTER(IWICBitmapFrameDecode))),
    ]
Esempio n. 24
0
File: wic.py Progetto: einarf/pyglet
class IPropertyBag2(com.pIUnknown):
    _methods_ = [('Read', com.STDMETHOD()), ('Write', com.STDMETHOD()),
                 ('CountProperties', com.STDMETHOD()),
                 ('GetPropertyInfo', com.STDMETHOD()),
                 ('LoadObject', com.STDMETHOD())]
Esempio n. 25
0
class IWICBitmapFlipRotator(IWICBitmapSource, com.IUnknown):
    _methods_ = [
        ('Initialize',
         com.STDMETHOD(IWICBitmapSource, WICBitmapTransformOptions)),
    ]
Esempio n. 26
0
File: wic.py Progetto: einarf/pyglet
class IWICStream(com.pIUnknown):
    _methods_ = [
        ('Read', com.STDMETHOD()),
        ('Write', com.STDMETHOD()),
        ('Seek', com.STDMETHOD()),
        ('SetSize', com.STDMETHOD()),
        ('CopyTo', com.STDMETHOD()),
        ('Commit', com.STDMETHOD()),
        ('Revert', com.STDMETHOD()),
        ('LockRegion', com.STDMETHOD()),
        ('UnlockRegion', com.STDMETHOD()),
        ('Stat', com.STDMETHOD()),
        ('Clone', com.STDMETHOD()),
        ('InitializeFromIStream', com.STDMETHOD()),
        ('InitializeFromFilename', com.STDMETHOD(LPCWSTR, DWORD)),
        ('InitializeFromMemory', com.STDMETHOD(c_void_p, DWORD)),
        ('InitializeFromIStreamRegion', com.STDMETHOD()),
    ]
Esempio n. 27
0
File: wic.py Progetto: einarf/pyglet
class IWICBitmapFrameEncode(com.pIUnknown):
    _methods_ = [('Initialize', com.STDMETHOD(IPropertyBag2)),
                 ('SetSize', com.STDMETHOD(UINT, UINT)),
                 ('SetResolution', com.STDMETHOD()),
                 ('SetPixelFormat', com.STDMETHOD(REFWICPixelFormatGUID)),
                 ('SetColorContexts', com.STDMETHOD()),
                 ('SetPalette', com.STDMETHOD(IWICPalette)),
                 ('SetThumbnail', com.STDMETHOD()),
                 ('WritePixels', com.STDMETHOD(UINT, UINT, UINT,
                                               POINTER(BYTE))),
                 ('WriteSource', com.STDMETHOD()), ('Commit', com.STDMETHOD()),
                 ('GetMetadataQueryWriter', com.STDMETHOD())]
Esempio n. 28
0
class IMFByteStream(com.IUnknown):
    _methods_ = [
        ('GetCapabilities', com.STDMETHOD()),
        ('GetLength', com.STDMETHOD()),
        ('SetLength', com.STDMETHOD()),
        ('GetCurrentPosition', com.STDMETHOD()),
        ('SetCurrentPosition', com.STDMETHOD()),
        ('IsEndOfStream', com.STDMETHOD()),
        ('Read', com.STDMETHOD()),
        ('BeginRead', com.STDMETHOD()),
        ('EndRead', com.STDMETHOD()),
        ('Write', com.STDMETHOD()),
        ('BeginWrite', com.STDMETHOD()),
        ('EndWrite', com.STDMETHOD()),
        ('Seek', com.STDMETHOD()),
        ('Flush', com.STDMETHOD()),
        ('Close', com.STDMETHOD()),
    ]
Esempio n. 29
0
class IMFAttributes(com.IUnknown):
    _methods_ = [
        ('GetItem', com.STDMETHOD()),
        ('GetItemType', com.STDMETHOD()),
        ('CompareItem', com.STDMETHOD()),
        ('Compare', com.STDMETHOD()),
        ('GetUINT32', com.STDMETHOD(com.REFIID, POINTER(c_uint32))),
        ('GetUINT64', com.STDMETHOD(com.REFIID, POINTER(c_uint64))),
        ('GetDouble', com.STDMETHOD()),
        ('GetGUID', com.STDMETHOD(com.REFIID, POINTER(com.GUID))),
        ('GetStringLength', com.STDMETHOD()),
        ('GetString', com.STDMETHOD()),
        ('GetAllocatedString', com.STDMETHOD()),
        ('GetBlobSize', com.STDMETHOD()),
        ('GetBlob', com.STDMETHOD()),
        ('GetAllocatedBlob', com.STDMETHOD()),
        ('GetUnknown', com.STDMETHOD()),
        ('SetItem', com.STDMETHOD()),
        ('DeleteItem', com.STDMETHOD()),
        ('DeleteAllItems', com.STDMETHOD()),
        ('SetUINT32', com.STDMETHOD(com.REFIID, c_uint32)),
        ('SetUINT64', com.STDMETHOD()),
        ('SetDouble', com.STDMETHOD()),
        ('SetGUID', com.STDMETHOD(com.REFIID, com.REFIID)),
        ('SetString', com.STDMETHOD()),
        ('SetBlob', com.STDMETHOD()),
        ('SetUnknown', com.STDMETHOD(com.REFIID, com.IUnknown)),
        ('LockStore', com.STDMETHOD()),
        ('UnlockStore', com.STDMETHOD()),
        ('GetCount', com.STDMETHOD()),
        ('GetItemByIndex', com.STDMETHOD()),
        ('CopyAllItems', com.STDMETHOD(c_void_p)),  # IMFAttributes
    ]
Esempio n. 30
0
class IMFSample(IMFAttributes, com.IUnknown):
    _methods_ = [
        ('GetSampleFlags', com.STDMETHOD()),
        ('SetSampleFlags', com.STDMETHOD()),
        ('GetSampleTime', com.STDMETHOD()),
        ('SetSampleTime', com.STDMETHOD()),
        ('GetSampleDuration', com.STDMETHOD(POINTER(c_ulonglong))),
        ('SetSampleDuration', com.STDMETHOD(DWORD, IMFMediaBuffer)),
        ('GetBufferCount', com.STDMETHOD(POINTER(DWORD))),
        ('GetBufferByIndex', com.STDMETHOD(DWORD, IMFMediaBuffer)),
        ('ConvertToContiguousBuffer',
         com.STDMETHOD(POINTER(IMFMediaBuffer))),  # out
        ('AddBuffer', com.STDMETHOD(POINTER(DWORD))),
        ('RemoveBufferByIndex', com.STDMETHOD()),
        ('RemoveAllBuffers', com.STDMETHOD()),
        ('GetTotalLength', com.STDMETHOD(POINTER(DWORD))),
        ('CopyToBuffer', com.STDMETHOD()),
    ]