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

dc1394error_t dc1394_avt_get_shading ( dc1394camera_t camera,
dc1394bool_t on_off,
dc1394bool_t compute,
dc1394bool_t show,
uint32_t *  frame_nb 
)

Retrieve if shading is on and the number of frames used to compute the shading reference frame

Definition at line 275 of file avt.c.

References dc1394_get_adv_control_register().

{
    dc1394error_t err;
    uint32_t value;

    /* Retrieve shading properties */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_SHDG_CTRL, &value);
    DC1394_ERR_RTN(err,"Could not get AVT shading control reg");

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

    /* Compute : Bit 5 */
    if (compute)
        *compute = (uint32_t)((value & 0x4000000UL) >> 26);

    /* Show image : Bit 4 */
    if (show)
        *show = (uint32_t)((value & 0x8000000UL) >> 27);

    /* Number of images for auto computing of the shading reference: Bits 24..31 */
    if (frame_nb)
        *frame_nb =(uint32_t)((value & 0xFFUL));

    return DC1394_SUCCESS;

}


Generated by  Doxygen 1.6.0   Back to index