windows-nt/Source/XPSP1/NT/multimedia/media/avi/video/msviddrv.h

123 lines
4.9 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/****************************************************************************/
/* */
/* MSVIDDRV.H - Include file for messages to video capture drivers */
/* */
/* Note: You must include WINDOWS.H before including this file. */
/* */
/* Copyright (c) 1990-1995, Microsoft Corp. All rights reserved. */
/* */
/****************************************************************************/
#ifndef _INC_MSVIDDRV
#define _INC_MSVIDDRV 50 /* version number */
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */
/****************************************************************************
Digital Video Messages (DVM_)
****************************************************************************/
// General messages
#define DVM_START DRV_USER
#define DVM_GETERRORTEXT (DVM_START + 0)
#define DVM_GETVIDEOAPIVER (DVM_START + 1)
// This value increments each time the API changes
// It is passed to the driver in the DRV_OPEN message.
#define VIDEOAPIVERSION 4
// General messages applicable to all channel types
#define DVM_DIALOG (DVM_START + 100)
#define DVM_CONFIGURESTORAGE (DVM_START + 101)
#define DVM_GET_CHANNEL_CAPS (DVM_START + 102)
#define DVM_UPDATE (DVM_START + 103)
// Single frame msg
#define DVM_FRAME (DVM_START + 200)
// stream messages
#define DVM_STREAM_MSG_START (DVM_START + 300)
#define DVM_STREAM_MSG_END (DVM_START + 399)
#define DVM_STREAM_ADDBUFFER (DVM_START + 300)
#define DVM_STREAM_FINI (DVM_START + 301)
#define DVM_STREAM_GETERROR (DVM_START + 302)
#define DVM_STREAM_GETPOSITION (DVM_START + 303)
#define DVM_STREAM_INIT (DVM_START + 304)
#define DVM_STREAM_PREPAREHEADER (DVM_START + 305)
#define DVM_STREAM_RESET (DVM_START + 306)
#define DVM_STREAM_START (DVM_START + 307)
#define DVM_STREAM_STOP (DVM_START + 308)
#define DVM_STREAM_UNPREPAREHEADER (DVM_START + 309)
// Following added post VFW1.1a, but are now obsolete
#define DVM_STREAM_ALLOCHDRANDBUFFER (DVM_START + 310)
#define DVM_STREAM_FREEHDRANDBUFFER (DVM_START + 311)
// The 2 messages above will be removed once the ALLOCBUFFER code is ready
// Following added for Win95 and NTPPC
#define DVM_STREAM_ALLOCBUFFER (DVM_START + 312)
#define DVM_STREAM_FREEBUFFER (DVM_START + 313)
// NOTE that DVM_CONFIGURE numbers will start at 0x1000 (for configure API)
/****************************************************************************
Open Definitions
****************************************************************************/
#define OPEN_TYPE_VCAP mmioFOURCC('v', 'c', 'a', 'p')
// The following structure is the same as IC_OPEN
// to allow compressors and capture devices to share
// the same DriverProc.
typedef struct tag_video_open_parms {
DWORD dwSize; // sizeof(VIDEO_OPEN_PARMS)
FOURCC fccType; // 'vcap'
FOURCC fccComp; // unused
DWORD dwVersion; // version of msvideo opening you
DWORD dwFlags; // channel type
DWORD dwError; // if open fails, this is why
LPVOID pV1Reserved; // Reserved
LPVOID pV2Reserved; // Reserved
DWORD dnDevNode; // Devnode for PnP devices
} VIDEO_OPEN_PARMS, FAR * LPVIDEO_OPEN_PARMS;
typedef struct tag_video_geterrortext_parms {
DWORD dwError; // The error number to identify
#ifdef _WIN32
LPWSTR lpText; // Text buffer to fill
#else
LPSTR lpText; // Text buffer to fill
#endif
DWORD dwLength; // Size of text buffer in characters
} VIDEO_GETERRORTEXT_PARMS, FAR * LPVIDEO_GETERRORTEXT_PARMS;
typedef struct tag_video_stream_init_parms {
DWORD dwMicroSecPerFrame;
DWORD_PTR dwCallback;
DWORD_PTR dwCallbackInst;
DWORD dwFlags;
DWORD_PTR hVideo;
} VIDEO_STREAM_INIT_PARMS, FAR * LPVIDEO_STREAM_INIT_PARMS;
typedef struct tag_video_configure_parms {
LPDWORD lpdwReturn; // Return parameter from configure MSG.
LPVOID lpData1; // Pointer to data 1.
DWORD dwSize1; // size of data buffer 1.
LPVOID lpData2; // Pointer to data 2.
DWORD dwSize2; // size of data buffer 2.
} VIDEOCONFIGPARMS, FAR * LPVIDEOCONFIGPARMS;
#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */
#endif /* _INC_MSVIDDRV */