~ubuntu-branches/ubuntu/trusty/gimp/trusty

« back to all changes in this revision

Viewing changes to app/gegl/gimpoperationlevels.c

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2009-08-14 09:57:17 UTC
  • mto: (1.1.21 upstream) (0.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: james.westby@ubuntu.com-20090814095717-37dh2xqy5t0rurpk
ImportĀ upstreamĀ versionĀ 2.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
  else
91
91
    value = (value - low_input);
92
92
 
 
93
  /* clamp to new black and white points */
 
94
  value = CLAMP (value, 0.0, 1.0);
 
95
 
93
96
  if (inv_gamma != 1.0)
94
97
    {
95
 
      if (value >= 0.0)
96
 
        value =  pow ( value, inv_gamma);
97
 
      else
98
 
        value = -pow (-value, inv_gamma);
 
98
      value =  pow ( value, inv_gamma);
99
99
    }
100
100
 
101
101
  /*  determine the output intensity  */