Function
GskComponentTransfernew_table
unstable since: 4.20
Declaration [src]
GskComponentTransfer*
gsk_component_transfer_new_table (
guint n,
float* values
)
Description [src]
Creates a new component transfer that applies a piecewise linear function.
The new value is computed as
C' = values[k] + (C - k / n) * n * (values[k + 1] - values[k])
where k is the smallest value such that
k / n <= C < (k + 1) / n.
Available since: 4.20
Parameters
n
-
Type:
guint
No description available.
values
-
Type:
float*
No description available.
The data is owned by the caller of the function.
Return value
Type: GskComponentTransfer
A new GskComponentTransfer
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |