mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
226652edb0
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.
30 lines
1.9 KiB
C
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
|