2 * Copyright 1999 Marcus Meissner
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 int PASCAL
WinMain(HINSTANCE hInstance
, HINSTANCE prev
, LPSTR cmdline
, int show
)
28 int n
=0,doabout
=0,doconfigure
=0;
29 char buf
[128],type
[5],handler
[5];
31 if (strstr(cmdline
,"-about"))
33 if (strstr(cmdline
,"-configure"))
36 printf("Currently installed Video Compressors:\n");
41 ii
.dwSize
= sizeof(ii
);
42 if (!ICInfo(ICTYPE_VIDEO
,n
++,&ii
))
44 if (!(hic
=ICOpen(ii
.fccType
,ii
.fccHandler
,ICMODE_QUERY
)))
46 if (!ICGetInfo(hic
,&ii
,sizeof(ii
))) {
50 #define w2s(w,s) WideCharToMultiByte(0,0,w,-1,s,128,0,NULL)
53 memcpy(type
,&(ii
.fccType
),4);type
[4]='\0';
54 memcpy(handler
,&(ii
.fccHandler
),4);handler
[4]='\0';
55 printf("%s.%s: %s\n",type
,handler
,buf
);
56 printf("\tdwFlags: 0x%08x (",ii
.dwFlags
);
57 #define XX(x) if (ii.dwFlags & x) printf(#x" ");
61 XX(VIDCF_COMPRESSFRAMES
);
63 XX(VIDCF_FASTTEMPORALC
);
64 XX(VIDCF_FASTTEMPORALD
);
65 XX(VIDCF_QUALITYTIME
);
68 printf("\tdwVersion: 0x%08x\n",ii
.dwVersion
);
69 printf("\tdwVersionICM: 0x%08x\n",ii
.dwVersionICM
);
70 w2s(ii
.szDescription
,buf
);
71 printf("\tszDescription: %s\n",buf
);
72 if (doabout
) ICAbout(hic
,0);
73 if (doconfigure
&& ICQueryConfigure(hic
))