1 | /* $Id: msvfw32.cpp,v 1.9 2002-08-27 08:31:48 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Copyright 1998 Marcus Meissner
|
---|
4 | * Copyright 1999 Jens Wiessner
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include <stdlib.h>
|
---|
8 | #include <string.h>
|
---|
9 | #include <odin.h>
|
---|
10 |
|
---|
11 | #define ICOM_CINTERFACE 1
|
---|
12 | ////#define strcasecmp strcmp
|
---|
13 |
|
---|
14 | #include <os2win.h>
|
---|
15 | #include "winerror.h"
|
---|
16 | #include "heap.h"
|
---|
17 | #include "resource.h"
|
---|
18 | #include "win.h"
|
---|
19 | #include "commdlg.h"
|
---|
20 | #include "spy.h"
|
---|
21 |
|
---|
22 | #include "wine/obj_base.h"
|
---|
23 | #include "wingdi.h"
|
---|
24 | #include "vfw.h"
|
---|
25 | //#include "driver.h"
|
---|
26 | // #include "msvfw32.h"
|
---|
27 |
|
---|
28 | #include "debugtools.h"
|
---|
29 | #include <debugstr.h>
|
---|
30 | #include <heapstring.h>
|
---|
31 |
|
---|
32 | DEFAULT_DEBUG_CHANNEL(msvideo)
|
---|
33 |
|
---|
34 |
|
---|
35 | /* Stubs not included in Wine-Code*/
|
---|
36 |
|
---|
37 |
|
---|
38 | /****************************************************************************
|
---|
39 | * DrawDibChangePalette [MSVFW.4]
|
---|
40 | */
|
---|
41 |
|
---|
42 | BOOL VFWAPI DrawDibChangePalette(HANDLE /*HDRAWDIB*/ hdd, int iStart, int iLen, LPPALETTEENTRY lppe)
|
---|
43 | {
|
---|
44 | dprintf(("MSVFW32: DrawDibChangePalette not implemented\n"));
|
---|
45 | return TRUE;
|
---|
46 | }
|
---|
47 |
|
---|
48 |
|
---|
49 | /****************************************************************************
|
---|
50 | * DrawDibProfileDisplay [MSVFW.11]
|
---|
51 | */
|
---|
52 | DWORD VFWAPI DrawDibProfileDisplay(LPBITMAPINFOHEADER lpbi)
|
---|
53 | {
|
---|
54 | dprintf(("MSVFW32: DrawDibProfileDisplay not implemented\n"));
|
---|
55 | return TRUE;
|
---|
56 | }
|
---|
57 |
|
---|
58 | /****************************************************************************
|
---|
59 | * DrawDibTime [MSVFW.16]
|
---|
60 | */
|
---|
61 | BOOL VFWAPI DrawDibTime(HANDLE /*HDRAWDIB*/ hdd, DWORD lpddtime)
|
---|
62 | {
|
---|
63 | dprintf(("MSVFW32: DrawDibTime not implemented\n"));
|
---|
64 | return TRUE;
|
---|
65 | }
|
---|
66 |
|
---|
67 | /****************************************************************************
|
---|
68 | * DrawDibGetBuffer [MSVFW.8]
|
---|
69 | */
|
---|
70 | LPVOID VFWAPI DrawDibGetBuffer(HANDLE /*HDRAWDIB*/ hdd, LPBITMAPINFOHEADER lpbi, DWORD dwSize, DWORD dwFlags)
|
---|
71 | {
|
---|
72 | dprintf(("MSVFW32: DrawDibGetBuffer not implemented\n"));
|
---|
73 | return 0;
|
---|
74 | }
|
---|
75 |
|
---|
76 | /****************************************************************************
|
---|
77 | * GetOpenFileNamePreview [MSVFW.17]
|
---|
78 | */
|
---|
79 |
|
---|
80 | /* NO */
|
---|
81 |
|
---|
82 |
|
---|
83 | /****************************************************************************
|
---|
84 | * GetOpenFileNamePreviewA [MSVFW.18]
|
---|
85 | */
|
---|
86 | BOOL VFWAPI GetOpenFileNamePreviewA(LPOPENFILENAMEA lpofn)
|
---|
87 | {
|
---|
88 | #ifdef DEBUG
|
---|
89 | dprintf(("MSVFW32: GetOpenFileNamePreviewA not implemented\n"));
|
---|
90 | #endif
|
---|
91 | return TRUE;
|
---|
92 | }
|
---|
93 |
|
---|
94 |
|
---|
95 | /****************************************************************************
|
---|
96 | * GetOpenFileNamePreviewW [MSVFW.19]
|
---|
97 | */
|
---|
98 | BOOL VFWAPI GetOpenFileNamePreviewW(LPOPENFILENAMEW lpofn)
|
---|
99 | {
|
---|
100 | #ifdef DEBUG
|
---|
101 | dprintf(("MSVFW32: GetOpenFileNamePreviewW not implemented\n"));
|
---|
102 | #endif
|
---|
103 | return TRUE;
|
---|
104 | }
|
---|
105 |
|
---|
106 |
|
---|
107 | /****************************************************************************
|
---|
108 | * GetSaveFileNamePreviewA [MSVFW.20]
|
---|
109 | */
|
---|
110 | BOOL VFWAPI GetSaveFileNamePreviewA(LPOPENFILENAMEA lpofn)
|
---|
111 | {
|
---|
112 | #ifdef DEBUG
|
---|
113 | dprintf(("MSVFW32: GetSaveFileNamePreviewA not implemented\n"));
|
---|
114 | #endif
|
---|
115 | return TRUE;
|
---|
116 | }
|
---|
117 |
|
---|
118 |
|
---|
119 | /****************************************************************************
|
---|
120 | * GetSaveFileNamePreviewW [MSVFW.21]
|
---|
121 | */
|
---|
122 | BOOL VFWAPI GetSaveFileNamePreviewW(LPOPENFILENAMEW lpofn)
|
---|
123 | {
|
---|
124 | #ifdef DEBUG
|
---|
125 | dprintf(("MSVFW32: GetSaveFileNamePreviewW not implemented\n"));
|
---|
126 | #endif
|
---|
127 | return TRUE;
|
---|
128 | }
|
---|
129 |
|
---|
130 |
|
---|
131 | /****************************************************************************
|
---|
132 | * ICCompressorChoose [MSVFW.24]
|
---|
133 | */
|
---|
134 | BOOL VFWAPI ICCompressorChoose(
|
---|
135 | HWND hwnd, // parent window for dialog
|
---|
136 | UINT uiFlags, // flags
|
---|
137 | LPVOID pvIn, // input format (optional)
|
---|
138 | LPVOID lpData, // input data (optional)
|
---|
139 | PCOMPVARS pc, // data about the compressor/dlg
|
---|
140 | LPSTR lpszTitle) // dialog title (optional)
|
---|
141 | {
|
---|
142 | #ifdef DEBUG
|
---|
143 | dprintf(("MSVFW32: ICCompressorChoose not implemented\n"));
|
---|
144 | #endif
|
---|
145 | return TRUE;
|
---|
146 | }
|
---|
147 |
|
---|
148 |
|
---|
149 | /****************************************************************************
|
---|
150 | * ICCompressorFree [MSVFW.25]
|
---|
151 | */
|
---|
152 | void VFWAPI ICCompressorFree(PCOMPVARS pc)
|
---|
153 | {
|
---|
154 | #ifdef DEBUG
|
---|
155 | dprintf(("MSVFW32: ICCompressorFree not implemented\n"));
|
---|
156 | #endif
|
---|
157 | return;
|
---|
158 | }
|
---|
159 |
|
---|
160 |
|
---|
161 | /****************************************************************************
|
---|
162 | * ICInstall [MSVFW.34]
|
---|
163 | */
|
---|
164 | BOOL VFWAPI ICInstall(DWORD fccType, DWORD fccHandler, LPARAM lParam, LPSTR szDesc, UINT wFlags)
|
---|
165 | {
|
---|
166 | #ifdef DEBUG
|
---|
167 | dprintf(("MSVFW32: ICInstall not implemented\n"));
|
---|
168 | #endif
|
---|
169 | return TRUE;
|
---|
170 | }
|
---|
171 |
|
---|
172 |
|
---|
173 | /**************************************************************************
|
---|
174 | * ICRemove [MSVFW.39]
|
---|
175 | */
|
---|
176 | BOOL VFWAPI ICRemove(DWORD fccType, DWORD fccHandler, UINT wFlags)
|
---|
177 | {
|
---|
178 | #ifdef DEBUG
|
---|
179 | dprintf(("MSVFW32: ICRemove not implemented\n"));
|
---|
180 | #endif
|
---|
181 | return TRUE;
|
---|
182 | }
|
---|
183 |
|
---|
184 |
|
---|
185 | /**************************************************************************
|
---|
186 | * ICSeqCompressFrame [MSVFW.41]
|
---|
187 | */
|
---|
188 | LPVOID VFWAPI ICSeqCompressFrame(
|
---|
189 | PCOMPVARS pc, // set by ICCompressorChoose
|
---|
190 | UINT uiFlags, // flags
|
---|
191 | LPVOID lpBits, // input DIB bits
|
---|
192 | BOOL *pfKey, // did it end up being a key frame?
|
---|
193 | LONG *plSize) // size to compress to/of returned image
|
---|
194 | {
|
---|
195 | #ifdef DEBUG
|
---|
196 | dprintf(("MSVFW32: ICSeqCompressFrame not implemented\n"));
|
---|
197 | #endif
|
---|
198 | return 0;
|
---|
199 | }
|
---|
200 |
|
---|
201 |
|
---|
202 | /**************************************************************************
|
---|
203 | * ICSeqCompressFrameEnd [MSVFW.42]
|
---|
204 | */
|
---|
205 | BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
|
---|
206 | {
|
---|
207 | #ifdef DEBUG
|
---|
208 | dprintf(("MSVFW32: ICSeqCompressFrameEnd not implemented\n"));
|
---|
209 | #endif
|
---|
210 | return TRUE;
|
---|
211 | }
|
---|
212 |
|
---|
213 |
|
---|
214 | /**************************************************************************
|
---|
215 | * ICSeqCompressFrameStart [MSVFW.43]
|
---|
216 | */
|
---|
217 | void VFWAPI ICSeqCompressFrameEnd(PCOMPVARS pc)
|
---|
218 | {
|
---|
219 | #ifdef DEBUG
|
---|
220 | dprintf(("MSVFW32: ICSeqCompressFrameStart not implemented\n"));
|
---|
221 | #endif
|
---|
222 | return;
|
---|
223 | }
|
---|
224 |
|
---|
225 |
|
---|
226 | /**************************************************************************
|
---|
227 | * MCIWndRegisterClass [MSVFW.47]
|
---|
228 | */
|
---|
229 | BOOL VFWAPIV MCIWndRegisterClass()
|
---|
230 | {
|
---|
231 | #ifdef DEBUG
|
---|
232 | dprintf(("MSVFW32: MCIWndRegisterClass not implemented\n"));
|
---|
233 | #endif
|
---|
234 | return TRUE;
|
---|
235 | }
|
---|