mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
*** empty log message ***
This commit is contained in:
parent
bd32ff6974
commit
c402611a7f
@ -30,7 +30,6 @@
|
|||||||
* Auxiliary Support Routines.
|
* Auxiliary Support Routines.
|
||||||
*/
|
*/
|
||||||
#include "tiffiop.h"
|
#include "tiffiop.h"
|
||||||
#include "cmath.h"
|
|
||||||
|
|
||||||
#ifdef COLORIMETRY_SUPPORT
|
#ifdef COLORIMETRY_SUPPORT
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -45,7 +44,7 @@ TIFFDefaultTransferFunction(TIFFDirectory* td)
|
|||||||
tf[0][0] = 0;
|
tf[0][0] = 0;
|
||||||
for (i = 1; i < n; i++) {
|
for (i = 1; i < n; i++) {
|
||||||
double t = (double)i/((double) n-1.);
|
double t = (double)i/((double) n-1.);
|
||||||
tf[0][i] = (uint16)cfloor(65535.*pow(t, 2.2) + .5);
|
tf[0][i] = (uint16)floor(65535.*pow(t, 2.2) + .5);
|
||||||
}
|
}
|
||||||
if (td->td_samplesperpixel - td->td_extrasamples > 1) {
|
if (td->td_samplesperpixel - td->td_extrasamples > 1) {
|
||||||
tf[1] = (uint16 *)_TIFFmalloc(n * sizeof (uint16));
|
tf[1] = (uint16 *)_TIFFmalloc(n * sizeof (uint16));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user