rosalina: screen_filter: save up around 10K using this simple trick

This commit is contained in:
TuxSH
2020-04-16 19:50:18 +01:00
parent c7551a731c
commit a67e8e60c6
3 changed files with 10 additions and 8 deletions

View File

@@ -19,7 +19,7 @@
*/
#include <stdint.h>
#include <math.h>
//#include <math.h>
#include "redshift/redshift.h"
@@ -282,8 +282,10 @@ interpolate_color(float a, const float *c1, const float *c2, float *c)
}
/* Helper macro used in the fill functions */
#define F(Y, C) pow((Y) * setting->brightness * \
white_point[C], 1.0/setting->gamma[C])
#define F(Y, C) ((Y) * white_point[C])
/*#define F(Y, C) pow((Y) * setting->brightness * \
white_point[C], 1.0/setting->gamma[C])*/
void
colorramp_fill(uint16_t *gamma_r, uint16_t *gamma_g, uint16_t *gamma_b,
@@ -324,4 +326,4 @@ colorramp_fill_float(float *gamma_r, float *gamma_g, float *gamma_b,
}
}
#undef F
#undef F