[Rawstudio-commit] r1779 - trunk/src

Anders Brander anders at brander.dk
Tue Apr 15 23:07:47 CEST 2008


Author: abrander
Date: 2008-04-15 23:07:47 +0200 (Tue, 15 Apr 2008)
New Revision: 1779

Modified:
   trunk/src/rs-image.c
   trunk/src/rs-image.h
Log:
Removed unsed rs_image8_render_shaded().

Modified: trunk/src/rs-image.c
===================================================================
--- trunk/src/rs-image.c	2008-04-15 21:03:42 UTC (rev 1778)
+++ trunk/src/rs-image.c	2008-04-15 21:07:47 UTC (rev 1779)
@@ -929,37 +929,6 @@
 	g_object_unref(pixbuf);
 }
 
-/**
- * Renders a shaded image
- * @param in The input image
- * @param out The output image or NULL
- * @return The shaded image
- */
-RS_IMAGE8 *
-rs_image8_render_shaded(RS_IMAGE8 *in, RS_IMAGE8 *out)
-{
-	gint size;
-
-	if (!in) return NULL;
-
-	rs_image8_ref(in);
-
-	if (!out)
-		out = rs_image8_new(in->w, in->h, in->channels, in->pixelsize);
-	else
-		rs_image8_realloc(out, in->w, in->h, in->channels, in->pixelsize);
-
-	rs_image8_ref(out);
-
-	size = in->h * in->rowstride;
-	while(size--)
-		out->pixels[size] = ((in->pixels[size]+63)*3)>>3; /* Magic shade formula :) */
-
-	rs_image8_unref(out);
-	rs_image8_unref(in);
-	return out;
-}
-
 RS_IMAGE16 *
 rs_image16_copy(RS_IMAGE16 *in, gboolean copy_pixels)
 {

Modified: trunk/src/rs-image.h
===================================================================
--- trunk/src/rs-image.h	2008-04-15 21:03:42 UTC (rev 1778)
+++ trunk/src/rs-image.h	2008-04-15 21:07:47 UTC (rev 1779)
@@ -65,14 +65,6 @@
 extern RS_IMAGE8 *rs_image8_new(const guint width, const guint height, const guint channels, const guint pixelsize);
 
 /**
- * Renders a shaded image
- * @param in The input image
- * @param out The output image or NULL
- * @return The shaded image
- */
-RS_IMAGE8 *rs_image8_render_shaded(RS_IMAGE8 *in, RS_IMAGE8 *out);
-
-/**
  * Renders an exposure map on top of an GdkPixbuf with 3 channels
  * @param pixbuf A GdkPixbuf
  * @param only_row A single row to render or -1 to render all




More information about the Rawstudio-commit mailing list