gtk/gsk/gpu/gskgpuconvertcicpopprivate.h
Matthias Clasen 226652edb0 gsk: Add a cicp convert shader
This shader receives cicp parameters via uniforms, and converts
the texture data from or to the output colorstate. It computes
the matrix in the vertex shader, and then picks the eotf/oetf
according to the cicp parameters in the fragment shader.
2024-07-24 08:16:08 -06:00

30 lines
1.9 KiB
C

#pragma once
#include "gskgpushaderopprivate.h"
#include <graphene.h>
G_BEGIN_DECLS
void gsk_gpu_convert_from_cicp_op (GskGpuFrame *frame,
GskGpuShaderClip clip,
const GdkCicp *cicp,
GskGpuColorStates color_states,
float opacity,
gboolean straight_alpha,
const graphene_point_t *offset,
const GskGpuShaderImage *image);
void gsk_gpu_convert_to_cicp_op (GskGpuFrame *frame,
GskGpuShaderClip clip,
const GdkCicp *cicp,
GskGpuColorStates color_states,
float opacity,
gboolean straight_alpha,
const graphene_point_t *offset,
const GskGpuShaderImage *image);
G_END_DECLS