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

SwsVector* sws_cloneVec ( SwsVector *  a  ) 

Allocates and returns a clone of the vector a, that is a vector with the same coefficients as a.

Definition at line 3056 of file swscale.c.

References av_malloc().

                                     {
    double *coeff= av_malloc(a->length*sizeof(double));
    int i;
    SwsVector *vec= av_malloc(sizeof(SwsVector));

    vec->coeff= coeff;
    vec->length= a->length;

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

    return vec;
}


Generated by  Doxygen 1.6.0   Back to index