diff dll_init.c @ 1297:200c03672178

VfwEx support
author arpi
date Sun, 08 Jul 2001 17:20:46 +0000
parents 34edf774ef73
children 598e3047ce13
line wrap: on
line diff
--- a/dll_init.c	Sun Jul 08 13:11:01 2001 +0000
+++ b/dll_init.c	Sun Jul 08 17:20:46 2001 +0000
@@ -145,7 +145,7 @@
 
 
 
-int init_video_codec(sh_video_t *sh_video){
+int init_video_codec(sh_video_t *sh_video,int ex){
   HRESULT ret;
   int yuv=0;
   unsigned int outfmt=sh_video->codec->outfmt[sh_video->outfmtidx];
@@ -267,14 +267,18 @@
 	printf("  biSizeImage %ld\n", sh_video->o_bih.biSizeImage);
   }
 
-  ret = ICDecompressQuery(sh_video->hic, sh_video->bih, &sh_video->o_bih);
+  ret = ex ?
+      ICDecompressQueryEx(sh_video->hic, sh_video->bih, &sh_video->o_bih) :
+      ICDecompressQuery(sh_video->hic, sh_video->bih, &sh_video->o_bih);
   if(ret){
     printf("ICDecompressQuery failed: Error %d\n", (int)ret);
     return 0;
   }
   if(verbose) printf("ICDecompressQuery OK\n");
 
-  ret = ICDecompressBegin(sh_video->hic, sh_video->bih, &sh_video->o_bih);
+  ret = ex ?
+      ICDecompressBeginEx(sh_video->hic, sh_video->bih, &sh_video->o_bih) :
+      ICDecompressBegin(sh_video->hic, sh_video->bih, &sh_video->o_bih);
   if(ret){
     printf("ICDecompressBegin failed: Error %d\n", (int)ret);
     return 0;