2002-10-11 01:31:13 +02:00
|
|
|
/*
|
2008-10-18 19:19:02 +02:00
|
|
|
* Copyright 2002 Michael Günnewig
|
2002-10-11 01:31:13 +02:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-10-11 01:31:13 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AVIFILE_PRIVATE_H
|
|
|
|
#define __AVIFILE_PRIVATE_H
|
|
|
|
|
2009-07-02 12:33:41 +02:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
|
2018-03-21 02:59:12 +01:00
|
|
|
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
|
|
|
|
|
2002-10-11 01:31:13 +02:00
|
|
|
#ifndef MAX_AVISTREAMS
|
2003-06-23 20:10:06 +02:00
|
|
|
#define MAX_AVISTREAMS 8
|
2002-10-11 01:31:13 +02:00
|
|
|
#endif
|
|
|
|
|
2002-10-18 02:24:41 +02:00
|
|
|
#ifndef DIBWIDTHBYTES
|
|
|
|
#define WIDTHBYTES(i) (((i+31)&(~31))/8)
|
|
|
|
#define DIBWIDTHBYTES(bi) WIDTHBYTES((bi).biWidth * (bi).biBitCount)
|
|
|
|
#endif
|
|
|
|
|
2002-10-22 01:40:38 +02:00
|
|
|
#ifndef DIBPTR
|
|
|
|
#define DIBPTR(lp) ((LPBYTE)(lp) + (lp)->biSize + \
|
|
|
|
(lp)->biClrUsed * sizeof(RGBQUAD))
|
|
|
|
#endif
|
|
|
|
|
2002-10-23 20:47:51 +02:00
|
|
|
#define IDD_SAVEOPTIONS 0x0100
|
|
|
|
#define IDC_INTERLEAVE 0x0110
|
|
|
|
#define IDC_INTERLEAVEEVERY 0x0111
|
|
|
|
#define IDC_STREAM 0x0112
|
|
|
|
#define IDC_OPTIONS 0x0113
|
|
|
|
#define IDC_FORMATTEXT 0x0114
|
|
|
|
|
2002-10-18 02:24:41 +02:00
|
|
|
#define IDS_WAVESTREAMFORMAT 0x0100
|
|
|
|
#define IDS_WAVEFILETYPE 0x0101
|
2002-10-23 20:47:51 +02:00
|
|
|
#define IDS_ALLMULTIMEDIA 0x0184
|
2002-10-22 01:40:38 +02:00
|
|
|
#define IDS_ALLFILES 0x0185
|
2002-10-18 02:24:41 +02:00
|
|
|
#define IDS_VIDEO 0x0189
|
|
|
|
#define IDS_AUDIO 0x0190
|
|
|
|
#define IDS_AVIFILETYPE 0x0192
|
|
|
|
#define IDS_UNCOMPRESSED 0x0193
|
|
|
|
|
2002-10-11 01:31:13 +02:00
|
|
|
DEFINE_AVIGUID(CLSID_ICMStream, 0x00020001, 0, 0);
|
|
|
|
DEFINE_AVIGUID(CLSID_WAVFile, 0x00020003, 0, 0);
|
|
|
|
DEFINE_AVIGUID(CLSID_ACMStream, 0x0002000F, 0, 0);
|
|
|
|
|
2011-04-29 10:05:58 +02:00
|
|
|
extern HMODULE AVIFILE_hModule DECLSPEC_HIDDEN;
|
2002-10-11 01:31:13 +02:00
|
|
|
|
2013-03-07 00:45:08 +01:00
|
|
|
extern HRESULT AVIFILE_CreateAVIFile(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
2014-03-03 22:04:32 +01:00
|
|
|
extern HRESULT AVIFILE_CreateWAVFile(IUnknown *outer_unk, REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
2011-04-29 10:05:58 +02:00
|
|
|
extern HRESULT AVIFILE_CreateACMStream(REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT AVIFILE_CreateICMStream(REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
|
|
|
extern PGETFRAME AVIFILE_CreateGetFrame(PAVISTREAM pstream) DECLSPEC_HIDDEN;
|
|
|
|
extern PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams) DECLSPEC_HIDDEN;
|
2002-10-18 02:24:41 +02:00
|
|
|
|
2011-04-29 10:05:58 +02:00
|
|
|
extern LPCWSTR AVIFILE_BasenameW(LPCWSTR szFileName) DECLSPEC_HIDDEN;
|
2018-03-17 11:19:15 +01:00
|
|
|
extern HRESULT WINAPI avifil32_DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv) DECLSPEC_HIDDEN;
|
2002-10-11 01:31:13 +02:00
|
|
|
|
|
|
|
#endif
|