Hi Roger, Amy,
On Mon, 2012-07-02 at 14:36 +0200, Roger Oberholtzer wrote:
> On Mon, 2012-07-02 at 11:31 +0000, amy.tabb@... wrote:
> > Hello Roger,
> > I see what you are talking about now.
> > However, when I look at my camera manual, I have video modes Mono8,
> > Mono16, and some format 7s (and this matches what libdc1394 lists as
> > available video modes for my camera). So is it a problem from the
> > libdc1394 side that the library cannot interpret Sony Mono8 as a Raw8,
> > or is it a problem that the programmer deals with when using Sony
> > cameras, when it is known that the cameras have color CCDs? My opinion
> > is that is an issue with Sony cameras that one deals with when using
> > libdc1394.
> Isn't it the other way around? In my case, the Sony camera provides ONLY
> raw Bayer images. There is no Mono/RGB/YUV to be had from the camera.
> Any Mono would have to be made by dc1394 from the raw Bayer images that
> the camera provides.
> So, if I want the raw Bayer image unmolested by dc1394, how do I ask for
> it? If I ask for Mono8, dc1394 seems to be supplying the raw Bayer
> image. That is not the same thing as Mono. And the problem is how I then
> differentiate between a real Mono image and a Bayer image masquerading
> as a Mono image?
> Os is there an assumption that dc1394 should not provide raw Bayer
> images. You have to ask for one of the other formats, and if the camera
> does not provide it directly, dc1394 will do a conversion? Even that
> seems an incorrect assessment, since when I ask for Mono I get the raw
> Bayer image. Which admittedly looks rather Mono. But it is not...
There is no RAW8 color coding available with standard (legacy?) video
modes (Format_1~3). Only MONO8 and MONO16 are available (see IIDC
specs). In order to provide an output for software that do not work with
Format_7, Sony seems to have support for these modes. What you get from
them will likely be a RAW8 but could very well be a de-bayered (and
monochrome) MONO8. There is no way to tell in advance; only Sony's docs
can provide this information. Since the data is stored in a mode
labelled as MONO8 in the specs, libdc1394 reports a MONO8 format.
In Format_7, however, the story is different. RAW8 is clearly labelled
and different from MONO8. If you can, use a Format_7 video mode; this
should remove any ambiguity.
Damien 高原 Douxchamps http://damien.douxchamps.net/