Unfortunately, it sounds like you are out of luck.

The protocol that this camera supports is just too different from IIDC for you to be able to force it to work with libdc1394. If you obtained low-level documentation for the camera, you might be able to modify libdc1394 to meet your needs, but I suspect that would be more work than it's worth.

-David



On Wed, Jan 8, 2014 at 11:49 PM, Motti Shneor <motti.shneor@gmail.com> wrote:
Hello and thanks again.

I try the grab_color_image2, and it crashes trying to


        /*-----------------------------------------------------------------------
         *  list Capture Modes
         *-----------------------------------------------------------------------*/
        err=dc1394_video_get_supported_modes(camera, &modes);
        DC1394_ERR_RTN(err,"Could not get list of modes");

 -->>>       uint32_t selected_mode = modes.modes[modes.num-1]; <<<---- here the program crashes because  modes.num is 0


I debugged into dc1394_video_get_supported_modes and saw it succeeded in dc1394_get_control_register, (hence no error reported)

but the retrieved data did not match any of the following Format_0, Format_1 Format_2 Format_6 and Format_7 conditionals. So the modes remain 0 in number, but still no error is returned.
The sample program assumes there are modes there --- and crashes.

Now what?

On 9 בינו 2014, at 08:34, Rodolphe Pineau wrote:

>
> On Jan 8, 2014, at 22:18, Motti Shneor <motti.shneor@gmail.com> wrote:
>
>> Thanks David, I did just that, parallel to sending the query to the list, and it was identified correctly by the iidc1394lib: here is the (debug-logging) output of my test-program:
>>
>> 2014-01-08 21:59:07.300 CameraLister[13123:403] Hello, World!
>> libdc1394 debug: Initializing platform 0: macosx
>> libdc1394 debug: Initialized platform 0
>> libdc1394 debug: Enumerating cameras...
>> libdc1394 debug: Enumerating platform macosx
>> libdc1394 debug: Platform macosx has 1 device(s)
>> libdc1394 debug: Got 22 quads of config ROM
>> libdc1394 debug: Adding camera 1687300080382:0 168:0 ((null):(null))
>> camera 0 : VITANA PL-6xx Imaging Module
>>
>> I went on to PixeLink web-site and searched their product definitions, and it is not said anywhere that the camera is IIDC compliant. However it sure appears in the list of IIDC cameras supported by libdc1394, so I believe it IS IIDC, only not advertised as such.
>>
>> What do you recommend as an ultimate test to make sure it is feasible for me to use libdc1394 for my development? I have to support many IIDC cameras, and I have LOTS of development to do, so I don't want to find out too late that I need to revert and find other solution.
>>
>> Any specific test contained in the package?
>>
>> Thanks!
>
> Hi Motti
> Try one of the examples : grab_color_image, grab_color_image2 or grab_gray_image
> This will save a ppm or pgm file that can be converted to other format.
> If it saves the file this means you have libdc1394 working (and if the file is not empty).
>
> Regards, Rodolphe
>
>
> --
>
> |        Rodolphe Pineau    RTI-Zone        |
> |         http://www.rti-zone.org/          |
> |   Robotics / Unix / Mac OS X / Astronomy  |
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Mailing list for libdc1394-devel
> libdc1394-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libdc1394-devel

Motti Shneor
e-mail: motti.shneor@gmail.com
phone: +972-8-9267730
mobile: +972-54-3136621
---------------------------------------------------------
Ceterum censeo Microsoftinem delendam esse





------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Mailing list for libdc1394-devel
libdc1394-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdc1394-devel