~ubuntu-branches/ubuntu/vivid/mpv/vivid

« back to all changes in this revision

Viewing changes to video/out/filter_kernels.c

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2014-12-22 19:08:25 UTC
  • mfrom: (28.1.3 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141222190825-bdtz8aiwvv65wpmi
Tags: 0.7.2-1ubuntu1
debian/rules: Disable altivec on ppc64el again, as it FTBFS with it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    double sum = 0;
92
92
    for (int n = 0; n < filter->size; n++) {
93
93
        double x = f - (n - filter->size / 2 + 1);
94
 
        double w = filter->weight(filter, fabs(x) / filter->inv_scale);
 
94
        double c = fabs(x) / filter->inv_scale;
 
95
        double w = c <= filter->radius ? filter->weight(filter, c) : 0;
95
96
        out_w[n] = w;
96
97
        sum += w;
97
98
    }