diff libmpcodecs/vf_smartblur.c @ 9494:543ab3909b78

sws_ prefix, more seperation between internal & external swscaler API sws_scale() returns the number of outputed lines
author michael
date Sun, 23 Feb 2003 22:05:55 +0000
parents 442ea8b6733c
children e9a2af584986
line wrap: on
line diff
--- a/libmpcodecs/vf_smartblur.c	Sun Feb 23 20:48:13 2003 +0000
+++ b/libmpcodecs/vf_smartblur.c	Sun Feb 23 22:05:55 2003 +0000
@@ -46,7 +46,7 @@
 	float strength;
 	int threshold;
 	float quality;
-	SwsContext *filterContext;
+	struct SwsContext *filterContext;
 }FilterParam;
 
 struct vf_priv_s {
@@ -88,15 +88,15 @@
 	SwsVector *vec;
 	SwsFilter swsF;
 
-	vec = getGaussianVec(f->radius, f->quality);
-	scaleVec(vec, f->strength);
+	vec = sws_getGaussianVec(f->radius, f->quality);
+	sws_scaleVec(vec, f->strength);
 	vec->coeff[vec->length/2]+= 1.0 - f->strength;
 	swsF.lumH= swsF.lumV= vec;
 	swsF.chrH= swsF.chrV= NULL;
-	f->filterContext= getSwsContext(
+	f->filterContext= sws_getContext(
 		width, height, IMGFMT_Y8, width, height, IMGFMT_Y8, 0, &swsF, NULL);
 
-	freeVec(vec);
+	sws_freeVec(vec);
 
 	return 0;
 }
@@ -116,7 +116,7 @@
 }
 
 static void freeBuffers(FilterParam *f){
-	if(f->filterContext) freeSwsContext(f->filterContext);
+	if(f->filterContext) sws_freeContext(f->filterContext);
 	f->filterContext=NULL;
 }
 
@@ -138,7 +138,7 @@
 	int srcStrideArray[3]= {srcStride, 0, 0};
 	int dstStrideArray[3]= {dstStride, 0, 0};
 
-	f.filterContext->swScale(f.filterContext, srcArray, srcStrideArray, 0, h, dstArray, dstStrideArray);
+	sws_scale(f.filterContext, srcArray, srcStrideArray, 0, h, dstArray, dstStrideArray);
 	
 	if(f.threshold > 0){
 		for(y=0; y<h; y++){