Skip to content

Instantly share code, notes, and snippets.

@Kyant0
Kyant0 / zcam.c
Last active April 29, 2023 04:58
Fast conversion between srgb and zcam
#include <jni.h>
#include <stdlib.h>
#include <math.h>
void srgb_to_zcam(double *jch, const double *srgb);
void zcam_to_clipped_srgb(double *srgb, const double *jch);
JNIEXPORT jdoubleArray JNICALL
Java_com_kyant_color_NativeColor_srgbToZcam(