Revision adcec46a libswscale/swscale_altivec_template.c

View differences:

libswscale/swscale_altivec_template.c
226 226
      for(j=0; j<filterSize; j++) {
227 227
	val += ((int)src[srcPos + j])*filter[filterSize*i + j];
228 228
      }
229
      dst[i] = clip(val>>7, 0, (1<<15)-1);
229
      dst[i] = av_clip(val>>7, 0, (1<<15)-1);
230 230
    }
231 231
  }
232 232
  else
......
265 265
	val_vEven = vec_mule(src_v, filter_v);
266 266
	val_s = vec_sums(val_vEven, vzero);
267 267
	vec_st(val_s, 0, tempo);
268
	dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1);
268
	dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1);
269 269
      }
270 270
    }
271 271
    break;
......
292 292
	val_v = vec_msums(src_v, filter_v, (vector signed int)vzero);
293 293
	val_s = vec_sums(val_v, vzero);
294 294
	vec_st(val_s, 0, tempo);
295
	dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1);
295
	dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1);
296 296
      }
297 297
    }
298 298
    break;
......
321 321
	vector signed int val_s = vec_sums(val_v, vzero);
322 322

  
323 323
	vec_st(val_s, 0, tempo);
324
	dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1);
324
	dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1);
325 325
      }
326 326
    }
327 327
    break;
......
383 383
        val_s = vec_sums(val_v, vzero);
384 384
          
385 385
        vec_st(val_s, 0, tempo);
386
        dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1);        
386
        dst[i] = av_clip(tempo[3]>>7, 0, (1<<15)-1);        
387 387
      }
388 388
      
389 389
    }

Also available in: Unified diff