VFW capture driver DDK declarations

Rolf Kalbermatter rolf.kalbermatter at citeng.com
Fri May 27 03:50:08 CDT 2005


Changelog
   - include/msviddrv.h
     Add declarations for DDK part of VFW Video Capture Driver Interface

     This is needed for implementation of installable VFW video capture drivers.
     While it is really a DDK header like mmddk.h too, it probably won't hurt to
     have it in the standard Wine include dircetory. An alternative would be to
     create a separate ddk subdirectory and add that directory to the include
     paths when compiling sources, but I'm quite sure this has been discussed
     already and for some good reasons is not done.

Rolf Kalbermatter

--- /dev/null	2003-03-14 14:07:09.000000000 +0100
+++ include/msviddrv.h	2005-05-27 11:04:10.000000000 +0200
@@ -0,0 +1,113 @@
+/*
+ * Declarations for VFW Capture Video Driver Inerface from DDK
+ *
+ * Copyright 2005 Rolf Kalbermatter
+ *
+ * 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
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+#ifndef __MSVIDDRV_H
+#define __MSVIDDRV_H
+
+/* 
+ * 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 for Win95 and NTPPC */
+#define DVM_STREAM_ALLOCBUFFER      (DVM_START + 312)
+#define DVM_STREAM_FREEBUFFER       (DVM_START + 313)
+
+/*
+ * 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, *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, *LPVIDEO_GETERRORTEXT_PARMS;
+
+typedef struct tag_video_stream_init_parms {
+    DWORD  dwMicroSecPerFrame;
+    DWORD  dwCallback;
+    DWORD  dwCallbackInst;
+    DWORD  dwFlags;
+    DWORD  hVideo;
+} VIDEO_STREAM_INIT_PARMS, *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, *LPVIDEOCONFIGPARMS;
+
+#endif  /* __MSVIDDRV */
+




More information about the wine-patches mailing list