Logo Search packages:      
Sourcecode: ffmpeg-debian version File versions

void sws_printVec2 ( SwsVector *  a,
AVClass *  log_ctx,
int  log_level 

Prints with av_log() a textual representation of the vector a if log_level <= av_log_level.

Definition at line 3070 of file swscale.c.

References av_log().

    int i;
    double max=0;
    double min=0;
    double range;

    for (i=0; i<a->length; i++)
        if (a->coeff[i]>max) max= a->coeff[i];

    for (i=0; i<a->length; i++)
        if (a->coeff[i]<min) min= a->coeff[i];

    range= max - min;

    for (i=0; i<a->length; i++)
        int x= (int)((a->coeff[i]-min)*60.0/range +0.5);
        av_log(log_ctx, log_level, "%1.3f ", a->coeff[i]);
        for (;x>0; x--) av_log(log_ctx, log_level, " ");
        av_log(log_ctx, log_level, "|\n");

Generated by  Doxygen 1.6.0   Back to index