Without installing any additional codecs what codecs come with windows, and what are their correct FourCCs? I need to know, because ICOpen (as needed for the ICImageCompress function) seems to not recognize very many. I tried at random at least 10 different YUV codec FourCCs from this web page http://www.fourcc.org/yuv.php but only two of them worked (I420 and IYUV which is supposed to be a duplicate of I420). I also tried YUY2 (one of the codecs that my webcam has no problem using in Windows) but ICOpen failed to work with it. Since the webcam's video viewer software (and any other software that probably internally uses DirectShow or VFW) that can show a live view from the webcam (even when the camera is configured to use the YUY2 codec) probably uses the Windows API for decompressing the image for viewing, that means the codec is already registered in Windows. However from VB6 calling ICOpen in conjunction with the 4byte value associated with YUY2 (&h32595559), doesn't work. The return value from ICOpen is supposed to be a handle to the compressor, but it returns 0, indicating an error.
I know that there is a decompressor for YUY2, since my webcam can use YUY2 without a problem in any webcam viewer software. Of course for every decompressor there is an associated compressor, so it should have no problem opening the compressor associated with YUY2.
I know that there is a decompressor for YUY2, since my webcam can use YUY2 without a problem in any webcam viewer software. Of course for every decompressor there is an associated compressor, so it should have no problem opening the compressor associated with YUY2.