title: What image formats other than "Y800" does zbar::Image::Image() accept?
body: <p>The documentation for <a href="http://zbar.sourceforge.net/api/classzbar_1_1Image.html#5134e2e814da0d0070ef165898980848" rel="nofollow noreferrer">zbar::Image::Image()</a> doesn't say anything about the accepted image formats:</p>
  <blockquote>
  <p>zbar::Image::Image    (   unsigned    width = 0, unsigned     height = 0, const
  std::string &amp;     format = &quot;&quot;, const void *   data = NULL, unsigned long
  length = 0    )         [inline] constructor.</p>
  <p>create a new Image with the specified parameters</p>
  </blockquote>
  <p>Since <code>format</code> is a string, not an enum, I can't know the possible values. The only value I know is <code>Y800</code> from the <a href="https://github.com/herbyme/zbar/blob/master/examples/scan_image.cpp" rel="nofollow noreferrer">scan_image.cpp</a> sample that comes with zbar:</p>
  <pre><code>Image image(width, height, &quot;Y800&quot;, raw, width * height);
  </code></pre>
  <p>Are there any other possible values? Also does it matter if I've compiled it without ImageMagick support (I passed <code>--without-imagemagick</code> to <code>./configure</code>)?</p>
  <p><strong>Edit:</strong> I found another possible format mentioned in <a href="https://stackoverflow.com/a/22892668/492336">an answer</a> to another question:</p>
  <blockquote>
  <p>By the Way : zbar Accepts <a href="https://github.com/herbyme/zbar/blob/068c810f75994b61ab9edc689650d09a0fc78bf9/zbar/convert.c#L81" rel="nofollow noreferrer">&quot;GREY&quot; format too</a>...</p>
  </blockquote>