From: <tho...@fr...> - 2004-07-18 18:34:23
|
CVS Root: /home/cvs/gstreamer Module: gst-plugins Changes by: thomasvs Date: Mon Jul 19 2004 04:34:21 EST Log message: DEBUG->LOG Modified files: gst/videoscale : videoscale.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/videoscale/videoscale.c.diff?r1=1.22&r2=1.23 ====Begin Diffs==== Index: videoscale.c =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/gst/videoscale/videoscale.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- videoscale.c 18 Jul 2004 18:32:54 -0000 1.22 +++ videoscale.c 18 Jul 2004 18:34:09 -0000 1.23 @@ -250,7 +250,7 @@ int dw = scale->to_width; int dh = scale->to_height; - GST_DEBUG_OBJECT (scale, "scaling RGB %dx%d to %dx%d", sw, sh, dw, dh); + GST_LOG_OBJECT (scale, "scaling RGB %dx%d to %dx%d", sw, sh, dw, dh); switch (scale->scale_bytes) { case 2: @@ -265,7 +265,7 @@ break; } - GST_DEBUG_OBJECT (scale, "%p %p", src, dest); + GST_LOG_OBJECT (scale, "%p %p", src, dest); //scale->scaler(scale, src, dest, sw, sh, dw, dh); } #endif @@ -279,8 +279,7 @@ - GST_DEBUG_OBJECT (scale, "scaling planar 4:1:1 %dx%d to %dx%d", sw, sh, dw, - dh); + GST_LOG_OBJECT (scale, "scaling planar 4:1:1 %dx%d to %dx%d", sw, sh, dw, dh); gst_videoscale_scale_nearest (scale, dest, src, sw, sh, dw, dh); @@ -309,7 +308,7 @@ - GST_DEBUG_OBJECT (scale, "scaling Y-only %dx%d to %dx%d", sw, sh, dw, dh); + GST_LOG_OBJECT (scale, "scaling Y-only %dx%d to %dx%d", sw, sh, dw, dh); @@ -323,7 +322,7 @@ - GST_DEBUG_OBJECT (scale, "scaling 4:2:2 %dx%d to %dx%d", sw, sh, dw, dh); + GST_LOG_OBJECT (scale, "scaling 4:2:2 %dx%d to %dx%d", sw, sh, dw, dh); gst_videoscale_scale_nearest_str2 (scale, dest, src, sw, sh, dw, dh); gst_videoscale_scale_nearest_str4 (scale, dest + 1, src + 1, sw / 2, sh, @@ -342,7 +341,7 @@ gst_videoscale_scale_nearest_str2 (scale, dest + 1, src, sw, sh, dw, dh); gst_videoscale_scale_nearest_str4 (scale, dest, src + 1, sw / 2, sh, dw / 2, @@ -361,7 +360,7 @@ - GST_DEBUG_OBJECT (scale, "scaling 32bit %dx%d to %dx%d", sw, sh, dw, dh); + GST_LOG_OBJECT (scale, "scaling 32bit %dx%d to %dx%d", sw, sh, dw, dh); gst_videoscale_scale_nearest_32bit (scale, dest, src, sw, sh, dw, dh); @@ -376,7 +375,7 @@ - GST_DEBUG_OBJECT (scale, "scaling 24bit %dx%d to %dx%d", sw, sh, dw, dh); + GST_LOG_OBJECT (scale, "scaling 24bit %dx%d to %dx%d", sw, sh, dw, dh); gst_videoscale_scale_nearest_24bit (scale, dest, src, sw, sh, dw, dh); @@ -391,7 +390,7 @@ - GST_DEBUG_OBJECT (scale, "scaling 16bit %dx%d to %dx%d", sw, sh, dw, dh); + GST_LOG_OBJECT (scale, "scaling 16bit %dx%d to %dx%d", sw, sh, dw, dh); gst_videoscale_scale_nearest_16bit (scale, dest, src, sw, sh, dw, dh); @@ -410,7 +409,7 @@ double dest; int color; - GST_DEBUG_OBJECT (scale, "scaling bilinear %f %f %dx%d", x, y, sw, sh); + GST_LOG_OBJECT (scale, "scaling bilinear %f %f %dx%d", x, y, sw, sh); dest = (1 - a) * (1 - b) * RC (j, k) + a * (1 - b) * RC (j + 1, k); @@ -439,7 +438,7 @@ double t1, t2, t3, t4; double a1, a2, a3, a4; - GST_DEBUG_OBJECT (scale, "scaling bicubic %dx%d", sw, sh); + GST_LOG_OBJECT (scale, "scaling bicubic %dx%d", sw, sh); a1 = -a * (1 - a) * (1 - a); a2 = (1 - 2 * a * a + a * a * a); @@ -480,7 +479,7 @@ double xr, yr; int x, y; - GST_DEBUG_OBJECT (scale, "scale plane slow %dx%d %dx%d %g %g %p %p", sw, sh, + GST_LOG_OBJECT (scale, "scale plane slow %dx%d %dx%d %g %g %p %p", sw, sh, dw, dh, zoomx, zoomy, src, dest); for (y = 0; y < dh; y++) { @@ -488,11 +487,11 @@ for (x = 0; x < dw; x++) { xr = ((double) x) / zoomx; - GST_DEBUG_OBJECT (scale, "scale plane slow %g %g %p", xr, yr, + GST_LOG_OBJECT (scale, "scale plane slow %g %g %p", xr, yr, (src + (int) (x) + (int) ((y) * sw))); if (floor (xr) == xr && floor (yr) == yr) { - GST_DEBUG_OBJECT (scale, "scale plane %g %g %p %p", xr, yr, + GST_LOG_OBJECT (scale, "scale plane %g %g %p %p", xr, yr, (src + (int) (x) + (int) ((y) * sw)), dest); *dest++ = RC (xr, yr); } else { @@ -514,7 +513,7 @@ int sum, xcount, ycount, loop; unsigned char *srcp, *srcp2; - GST_DEBUG_OBJECT (scale, "scaling nearest point sample %p %p %d", src, dest, + GST_LOG_OBJECT (scale, "scaling nearest point sample %p %p %d", src, dest, dw); ypos = 0x10000; |