Logo Search packages:      
Sourcecode: libdc1394-22 version File versions  Download package

dc1394error_t dc1394_avt_get_multiple_slope ( dc1394camera_t camera,
dc1394bool_t on_off,
uint32_t *  points_nb,
uint32_t *  kneepoint1,
uint32_t *  kneepoint2,
uint32_t *  kneepoint3 
)

Retrieve if on/off, the nb of kneepoints used and the kneepoints values

Definition at line 428 of file avt.c.

References dc1394_get_adv_control_register().

{
    dc1394error_t err;
    uint32_t value;

    /* Retrieve current hdr parameters */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_HDR_CONTROL, &value);
    DC1394_ERR_RTN(err,"Could not get AVT HDR control register");

    /* Multiple slope ON / OFF : Bit 6 */
    *on_off = (uint32_t)((value & 0x2000000UL) >> 25);

    /* Number of actives points : Bits 28..31 */
    *points_nb =(uint32_t)((value & 0xFUL));

    /* kneepoints */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_KNEEPOINT_1, kneepoint1);
    DC1394_ERR_RTN(err,"Could not get AVT kneepoint 1");
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_KNEEPOINT_2, kneepoint2);
    DC1394_ERR_RTN(err,"Could not get AVT kneepoint 2");
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_KNEEPOINT_3, kneepoint3);
    DC1394_ERR_RTN(err,"Could not get AVT kneepoint 3");

    return DC1394_SUCCESS;

}


Generated by  Doxygen 1.6.0   Back to index