From: Sebastian Dröge Date: Sun, 18 Apr 2010 08:07:24 +0000 (+0200) Subject: gamma: Improve docs a bit X-Git-Tag: RELEASE-0.10.23~220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92cedb0510be490f118f245b85fc54755f267b49;p=platform%2Fupstream%2Fgst-plugins-good.git gamma: Improve docs a bit --- diff --git a/gst/videofilter/gstgamma.c b/gst/videofilter/gstgamma.c index 34e4e2a..aeab6ef 100644 --- a/gst/videofilter/gstgamma.c +++ b/gst/videofilter/gstgamma.c @@ -3,6 +3,7 @@ * Copyright (C) <2003> David Schleef * Copyright (C) 2003 Arwed v. Merkatz * Copyright (C) 2006 Mark Nauwelaerts + * Copyright (C) 2010 Sebastian Dröge * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -37,6 +38,9 @@ * |[ * gst-launch videotestsrc ! gamma gamma=2.0 ! ffmpegcolorspace ! ximagesink * ]| This pipeline will make the image "brighter". + * |[ + * gst-launch videotestsrc ! gamma gamma=0.5 ! ffmpegcolorspace ! ximagesink + * ]| This pipeline will make the image "darker". * */ @@ -315,6 +319,7 @@ gst_gamma_packed_rgb_ip (GstGamma * gamma, guint8 * data) r = APPLY_MATRIX (cog_ycbcr_to_rgb_matrix_8bit_sdtv, 0, y, u, v); g = APPLY_MATRIX (cog_ycbcr_to_rgb_matrix_8bit_sdtv, 1, y, u, v); b = APPLY_MATRIX (cog_ycbcr_to_rgb_matrix_8bit_sdtv, 2, y, u, v); + data[offsets[0]] = CLAMP (r, 0, 255); data[offsets[1]] = CLAMP (g, 0, 255); data[offsets[2]] = CLAMP (b, 0, 255); diff --git a/gst/videofilter/gstgamma.h b/gst/videofilter/gstgamma.h index 8680dba..85d2e27 100644 --- a/gst/videofilter/gstgamma.h +++ b/gst/videofilter/gstgamma.h @@ -53,6 +53,8 @@ struct _GstGamma { GstVideoFilter videofilter; + /* < private > */ + /* format */ GstVideoFormat format; gint width;