push cc8bc80451cc24f4d7cf75168b569f0ebfe19547
[wine/hacks.git] / dlls / avifil32 / avifile_private.h
blobdb31bd497cfeaf12ddacfe5682777ba6b6bb2976
1 /*
2 * Copyright 2002 Michael Günnewig
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __AVIFILE_PRIVATE_H
20 #define __AVIFILE_PRIVATE_H
22 #ifndef MAX_AVISTREAMS
23 #define MAX_AVISTREAMS 8
24 #endif
26 #ifndef DIBWIDTHBYTES
27 #define WIDTHBYTES(i) (((i+31)&(~31))/8)
28 #define DIBWIDTHBYTES(bi) WIDTHBYTES((bi).biWidth * (bi).biBitCount)
29 #endif
31 #ifndef DIBPTR
32 #define DIBPTR(lp) ((LPBYTE)(lp) + (lp)->biSize + \
33 (lp)->biClrUsed * sizeof(RGBQUAD))
34 #endif
36 #define IDD_SAVEOPTIONS 0x0100
37 #define IDC_INTERLEAVE 0x0110
38 #define IDC_INTERLEAVEEVERY 0x0111
39 #define IDC_STREAM 0x0112
40 #define IDC_OPTIONS 0x0113
41 #define IDC_FORMATTEXT 0x0114
43 #define IDS_WAVESTREAMFORMAT 0x0100
44 #define IDS_WAVEFILETYPE 0x0101
45 #define IDS_ALLMULTIMEDIA 0x0184
46 #define IDS_ALLFILES 0x0185
47 #define IDS_VIDEO 0x0189
48 #define IDS_AUDIO 0x0190
49 #define IDS_AVISTREAMFORMAT 0x0191
50 #define IDS_AVIFILETYPE 0x0192
51 #define IDS_UNCOMPRESSED 0x0193
53 DEFINE_AVIGUID(CLSID_ICMStream, 0x00020001, 0, 0);
54 DEFINE_AVIGUID(CLSID_WAVFile, 0x00020003, 0, 0);
55 DEFINE_AVIGUID(CLSID_ACMStream, 0x0002000F, 0, 0);
56 DEFINE_AVIGUID(IID_IEditStreamInternal, 0x0002000A,0,0);
58 extern HMODULE AVIFILE_hModule;
60 extern HRESULT AVIFILE_CreateAVIFile(REFIID riid, LPVOID *ppobj);
61 extern HRESULT AVIFILE_CreateWAVFile(REFIID riid, LPVOID *ppobj);
62 extern HRESULT AVIFILE_CreateACMStream(REFIID riid, LPVOID *ppobj);
63 extern HRESULT AVIFILE_CreateICMStream(REFIID riid, LPVOID *ppobj);
64 extern PAVIEDITSTREAM AVIFILE_CreateEditStream(PAVISTREAM pstream);
65 extern PGETFRAME AVIFILE_CreateGetFrame(PAVISTREAM pstream);
66 extern PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams);
68 extern LPCWSTR AVIFILE_BasenameW(LPCWSTR szFileName);
70 #endif