comparison loader/vfl.c @ 1297:200c03672178

VfwEx support
author arpi
date Sun, 08 Jul 2001 17:20:46 +0000
parents bf973bffe240
children d8c1b0b38edc
comparison
equal deleted inserted replaced
1296:32f5d26baf86 1297:200c03672178
281 REST_ALL; 281 REST_ALL;
282 return result; 282 return result;
283 } 283 }
284 284
285 /*********************************************************************** 285 /***********************************************************************
286 * ICDecompressEx [MSVFW.26]
287 */
288 long VFWAPIV
289 ICDecompressEx(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) {
290 ICDECOMPRESSEX icd;
291 int result;
292
293 icd.dwFlags = dwFlags;
294
295 icd.lpbiSrc = lpbiFormat;
296 icd.lpSrc = lpData;
297
298 icd.lpbiDst = lpbi;
299 icd.lpDst = lpBits;
300
301 icd.xSrc=icd.ySrc=0;
302 icd.dxSrc=lpbiFormat->biWidth;
303 icd.dySrc=abs(lpbiFormat->biHeight);
304
305 icd.xDst=icd.yDst=0;
306 icd.dxDst=lpbi->biWidth;
307 icd.dyDst=abs(lpbi->biHeight);
308
309 //icd.ckid = 0;
310 STORE_ALL;
311 result=ICSendMessage(hic,ICM_DECOMPRESSEX,(long)&icd,sizeof(icd));
312 REST_ALL;
313 return result;
314 }
315
316 long VFWAPIV
317 ICUniversalEx(HIC hic,int command,LPBITMAPINFOHEADER lpbiFormat,LPBITMAPINFOHEADER lpbi) {
318 ICDECOMPRESSEX icd;
319 int result;
320
321 icd.dwFlags = 0;
322
323 icd.lpbiSrc = lpbiFormat;
324 icd.lpSrc = 0;
325
326 icd.lpbiDst = lpbi;
327 icd.lpDst = 0;
328
329 icd.xSrc=icd.ySrc=0;
330 icd.dxSrc=lpbiFormat->biWidth;
331 icd.dySrc=abs(lpbiFormat->biHeight);
332
333 icd.xDst=icd.yDst=0;
334 icd.dxDst=lpbi->biWidth;
335 icd.dyDst=abs(lpbi->biHeight);
336
337 //icd.ckid = 0;
338 STORE_ALL;
339 result=ICSendMessage(hic,command,(long)&icd,sizeof(icd));
340 REST_ALL;
341 return result;
342 }
343
344
345 /***********************************************************************
286 * ICSendMessage [MSVFW.40] 346 * ICSendMessage [MSVFW.40]
287 */ 347 */
288 LRESULT VFWAPI 348 LRESULT VFWAPI
289 ICSendMessage(HIC hic,unsigned int msg,long lParam1,long lParam2) { 349 ICSendMessage(HIC hic,unsigned int msg,long lParam1,long lParam2) {
290 LRESULT ret; 350 LRESULT ret;