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

AVImageFormat* av_probe_image_format ( AVProbeData *  pd  ) 

Guesses image format based on data in the image.

Definition at line 3212 of file utils.c.

References first_image_format.

Referenced by av_read_image().

{
    AVImageFormat *fmt1, *fmt;
    int score, score_max;

    fmt = NULL;
    score_max = 0;
    for(fmt1 = first_image_format; fmt1 != NULL; fmt1 = fmt1->next) {
        if (fmt1->img_probe) {
            score = fmt1->img_probe(pd);
            if (score > score_max) {
                score_max = score;
                fmt = fmt1;
            }
        }
    }
    return fmt;
}


Generated by  Doxygen 1.6.0   Back to index