Logo Search packages:      
Sourcecode: zebra version File versions  Download package

int zebra_video_init ( zebra_video_t video,
unsigned long  format 
)

initialize video using a specific format for debug. use zebra_negotiate_format() to automatically select and initialize the best available format

Definition at line 190 of file video.c.

References ZEBRA_ERR_INVALID, and zebra_video_init().

Referenced by zebra_negotiate_format(), zebra_processor_init(), and zebra_video_init().

{
    if(vdo->initialized)
        /* FIXME re-init different format? */
        return(err_capture(vdo, SEV_ERROR, ZEBRA_ERR_INVALID, __func__,
                           "already initialized, re-init unimplemented"));

    if(vdo->init(vdo, fmt))
        return(-1);
    vdo->format = fmt;
    if(video_init_images(vdo))
        return(-1);
    vdo->initialized = 1;
    return(0);
}


Generated by  Doxygen 1.6.0   Back to index