diff options
Diffstat (limited to 'third_party/skcms/src/Transform.h')
-rw-r--r-- | third_party/skcms/src/Transform.h | 103 |
1 files changed, 51 insertions, 52 deletions
diff --git a/third_party/skcms/src/Transform.h b/third_party/skcms/src/Transform.h index 9ced5a0b69..1c4c15b4e3 100644 --- a/third_party/skcms/src/Transform.h +++ b/third_party/skcms/src/Transform.h @@ -9,57 +9,56 @@ #pragma once -typedef enum { - Op_noop, - - Op_load_565, - Op_load_888, - Op_load_8888, - Op_load_1010102, - Op_load_161616, - Op_load_16161616, - Op_load_hhh, - Op_load_hhhh, - Op_load_fff, - Op_load_ffff, - - Op_swap_rb, - Op_clamp, - Op_invert, - Op_force_opaque, - Op_premul, - Op_unpremul, - - Op_matrix_3x3, - Op_matrix_3x4, - Op_lab_to_xyz, +#define FOREACH_Op(M) \ + M(noop) \ + M(load_565) \ + M(load_888) \ + M(load_8888) \ + M(load_1010102) \ + M(load_161616) \ + M(load_16161616) \ + M(load_hhh) \ + M(load_hhhh) \ + M(load_fff) \ + M(load_ffff) \ + M(swap_rb) \ + M(clamp) \ + M(invert) \ + M(force_opaque) \ + M(premul) \ + M(unpremul) \ + M(matrix_3x3) \ + M(matrix_3x4) \ + M(lab_to_xyz) \ + M(tf_r) \ + M(tf_g) \ + M(tf_b) \ + M(tf_a) \ + M(table_8_r) \ + M(table_8_g) \ + M(table_8_b) \ + M(table_8_a) \ + M(table_16_r) \ + M(table_16_g) \ + M(table_16_b) \ + M(table_16_a) \ + M(clut_3D_8) \ + M(clut_3D_16) \ + M(clut_4D_8) \ + M(clut_4D_16) \ + M(store_565) \ + M(store_888) \ + M(store_8888) \ + M(store_1010102) \ + M(store_161616) \ + M(store_16161616) \ + M(store_hhh) \ + M(store_hhhh) \ + M(store_fff) \ + M(store_ffff) - Op_tf_r, - Op_tf_g, - Op_tf_b, - Op_tf_a, - Op_table_8_r, - Op_table_8_g, - Op_table_8_b, - Op_table_8_a, - Op_table_16_r, - Op_table_16_g, - Op_table_16_b, - Op_table_16_a, - - Op_clut_3D_8, - Op_clut_3D_16, - Op_clut_4D_8, - Op_clut_4D_16, - - Op_store_565, - Op_store_888, - Op_store_8888, - Op_store_1010102, - Op_store_161616, - Op_store_16161616, - Op_store_hhh, - Op_store_hhhh, - Op_store_fff, - Op_store_ffff, +typedef enum { + #define M(op) Op_##op, + FOREACH_Op(M) + #undef M } Op; |