Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#62 vfw support RGB 24 format

next_release
open
spadix
5
2013-02-02
2011-06-29
Jarek Czekalski
No

The camera I test on W2K has only one format, described by windows as RGB 24 (fourcc=0). Zbarcam does not recognize this format.

The 24 bit format of zbar is BGR3, but it is not recognized by windows. When I apply the following trick:

bih->biCompression = 0; //fmt;

plus some workarounds to get things going, then I get zbarcam working.

The tested camera is Z-Star provided by vmware with a driver found on the net.

This case may be important if there are more cameras that have only RGB 24 format. The list of formats is available through the api dialog I suggested to enable (https://sourceforge.net/tracker/?func=detail&aid=3337995&group_id=189236&atid=928518)

I know you're stopping to support vfw, but if it will be the only option in 0.11, isn't it worth a bit of work? Probably my work.

If I were to proceed with the RGB 24 format, please suggest the solution.

Discussion

  •  
    Attachments
  • Patch attached. It's beautiful... Does not overlap with other vfw patches.

    BTW: Where do the fourcc RGB3 and BGR3 come from? They are not listed at fourcc.org.

     
  • I forgot to add, that the picture is upside-down. But it's a small problem since we have vfw dialogs with a checkbox "vertical flip". Nevertheless maybe it's a todo if vfw stays with zbar.