Lines Matching refs:tonemapper
22 #include "Tonemapper.h"
29 Tonemapper::Tonemapper()
45 Tonemapper::~Tonemapper()
63 Tonemapper *Tonemapper::build(int type, void *colorMap, int colorMapSize, void *lutXform,
72 // build new tonemapper
73 Tonemapper *tonemapper = new Tonemapper();
75 tonemapper->engineContext = engine_initialize(isSecure);
77 engine_bind(tonemapper->engineContext);
80 tonemapper->tonemapTexture = engine_load3DTexture(colorMap, colorMapSize, 0);
81 tonemapper->tonemapScaleOffset[0] = ((float)(colorMapSize-1))/((float)(colorMapSize));
82 tonemapper->tonemapScaleOffset[1] = 1.0f/(2.0f*colorMapSize);
85 tonemapper->lutXformTexture = engine_load1DTexture(lutXform, lutXformSize, 0);
86 bool bUseXform = (tonemapper->lutXformTexture != 0) && (lutXformSize != 0);
89 tonemapper->lutXformScaleOffset[0] = ((float)(lutXformSize-1))/((float)(lutXformSize));
90 tonemapper->lutXformScaleOffset[1] = 1.0f/(2.0f*lutXformSize);
112 tonemapper->programID =
115 return tonemapper;
119 int Tonemapper::blit(const void *dst, const void *src, int srcFenceFd)