Home | History | Annotate | Download | only in gpu_tonemapper

Lines Matching refs:Tonemapper

22 #include "Tonemapper.h"
29 Tonemapper::Tonemapper()
45 Tonemapper::~Tonemapper()
67 Tonemapper *Tonemapper::build(int type, void *colorMap, int colorMapSize, void *lutXform,
76 // build new tonemapper
77 Tonemapper *tonemapper = new Tonemapper();
79 tonemapper->engineContext = engine_initialize(isSecure);
82 engine_bind(tonemapper->engineContext);
85 tonemapper->tonemapTexture = engine_load3DTexture(colorMap, colorMapSize, 0);
86 tonemapper->tonemapScaleOffset[0] = ((float)(colorMapSize-1))/((float)(colorMapSize));
87 tonemapper->tonemapScaleOffset[1] = 1.0f/(2.0f*colorMapSize);
90 tonemapper->lutXformTexture = engine_load1DTexture(lutXform, lutXformSize, 0);
91 bool bUseXform = (tonemapper->lutXformTexture != 0) && (lutXformSize != 0);
94 tonemapper->lutXformScaleOffset[0] = ((float)(lutXformSize-1))/((float)(lutXformSize));
95 tonemapper->lutXformScaleOffset[1] = 1.0f/(2.0f*lutXformSize);
117 tonemapper->programID =
124 return tonemapper;
128 int Tonemapper::blit(const void *dst, const void *src, int srcFenceFd)