summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <code@datenwolf.net>2025-07-19 12:34:03 +0200
committerWolfgang Draxinger <code@datenwolf.net>2025-07-19 12:34:03 +0200
commitead2b129d2e555a8040bc8178bc82698ef8e3221 (patch)
tree42e07a3aee20dd311e989fc0ed2397c39fe69715
parent1a9569912879f52c69a6f301719e5b543fe86cc6 (diff)
downloadglsldebayer-dev_dw.tar.gz
glsldebayer-dev_dw.tar.bz2
zlib/libpng licensedreleasedev_dw
-rw-r--r--Makefile3
-rw-r--r--debayer.fs.glsl3
-rw-r--r--debayer.vs.glsl3
-rw-r--r--glsldebayer.c3
-rwxr-xr-xlinpoly.py6
5 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e4d2f8c..1dcde3f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: zlib-acknowledgement
+# (c) 2025 Wolfgang 'datenwolf' Draxinger
+
.PHONY: all clean allclean
all: glsldebayer
diff --git a/debayer.fs.glsl b/debayer.fs.glsl
index e6eace4..e4a1f23 100644
--- a/debayer.fs.glsl
+++ b/debayer.fs.glsl
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: zlib-acknowledgement */
+/* (c) 2025 Wolfgang 'datenwolf' Draxinger */
+
uniform sampler2D u_sampler;
uniform highp mat4 u_coef_r;
uniform highp mat4 u_coef_g;
diff --git a/debayer.vs.glsl b/debayer.vs.glsl
index 149b18c..f7d81cd 100644
--- a/debayer.vs.glsl
+++ b/debayer.vs.glsl
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: zlib-acknowledgement */
+/* (c) 2025 Wolfgang 'datenwolf' Draxinger */
+
attribute highp vec2 a_position;
varying highp vec2 v_position;
void main(){
diff --git a/glsldebayer.c b/glsldebayer.c
index 1e0720e..ec94044 100644
--- a/glsldebayer.c
+++ b/glsldebayer.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: zlib-acknowledgement */
+/* (c) 2025 Wolfgang 'datenwolf' Draxinger */
+
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <EGL/egl.h>
diff --git a/linpoly.py b/linpoly.py
index 3419a07..fb58985 100755
--- a/linpoly.py
+++ b/linpoly.py
@@ -1,4 +1,10 @@
#!/usr/bin/env -S python3
+# SPDX-License-Identifier: zlib-acknowledgement
+# (c) 2025 Wolfgang 'datenwolf' Draxinger
+#
+# Fit a power polynomial of degree 16 to a tristimulus linearization LUT
+# and output the coefficients in the form of C-style arrays
+
import numpy
from numpy.polynomial import Polynomial, Chebyshev
from matplotlib.pyplot import *