#62 vfw support RGB 24 format

next_release
open
spadix
5
2013-02-02
2011-06-29
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

  • Jarek Czekalski

    Jarek Czekalski - 2011-07-02

    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.

     
  • Jarek Czekalski

    Jarek Czekalski - 2011-07-02

    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.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks