2 * Implements IEnumMediaTypes and helper functions. (internal)
4 * Copyright (C) Hidenori TAKESHIMA <hidenori@a2.ctktv.ne.jp>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef WINE_DSHOW_MTYPE_H
22 #define WINE_DSHOW_MTYPE_H
24 HRESULT QUARTZ_MediaType_Copy(
25 AM_MEDIA_TYPE* pmtDst,
26 const AM_MEDIA_TYPE* pmtSrc );
27 void QUARTZ_MediaType_Free(
29 AM_MEDIA_TYPE* QUARTZ_MediaType_Duplicate(
30 const AM_MEDIA_TYPE* pmtSrc );
31 void QUARTZ_MediaType_Destroy(
34 void QUARTZ_MediaSubType_FromFourCC(
35 GUID* psubtype, DWORD dwFourCC );
36 BOOL QUARTZ_MediaSubType_IsFourCC(
37 const GUID* psubtype );
39 HRESULT QUARTZ_MediaSubType_FromBitmap(
40 GUID* psubtype, const BITMAPINFOHEADER* pbi );
42 void QUARTZ_PatchBitmapInfoHeader( BITMAPINFOHEADER* pbi );
43 BOOL QUARTZ_BitmapHasFixedSample( const BITMAPINFOHEADER* pbi );
46 HRESULT QUARTZ_CreateEnumMediaTypes(
47 IEnumMediaTypes** ppobj,
48 const AM_MEDIA_TYPE* pTypes, ULONG cTypes );
51 #endif /* WINE_DSHOW_MTYPE_H */