Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkcicpparams.h
Go to the documentation of this file.
1/* gdkcicpparams.h
2 *
3 * Copyright 2024 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gdk/gdk.h> can be included directly."
23#endif
24
25#include <gdk/gdktypes.h>
26
28
29
30#define GDK_TYPE_CICP_PARAMS (gdk_cicp_params_get_type ())
32GDK_DECLARE_INTERNAL_TYPE (GdkCicpParams, gdk_cicp_params, GDK, CICP_PARAMS, GObject)
33
36
39
42 guint color_primaries);
43
46
49 guint transfer_function);
50
53
56 guint matrix_coefficients);
57
58/**
59 * GdkCicpRange:
60 * @GDK_CICP_RANGE_NARROW: The values use the range of 16-235 (for Y) and 16-240 for u and v.
61 * @GDK_CICP_RANGE_FULL: The values use the full range.
62 *
63 * The values of this enumeration describe whether image data uses
64 * the full range of 8-bit values.
65 *
66 * In digital broadcasting, it is common to reserve the lowest and
67 * highest values. Typically the allowed values for the narrow range
68 * are 16-235 for Y and 16-240 for u,v (when dealing with YUV data).
69 *
70 * Since: 4.16
71 */
77
80
83 GdkCicpRange range);
84
87 GError **error);
88
89
#define GDK_AVAILABLE_IN_4_16
GDK_AVAILABLE_IN_4_16 void gdk_cicp_params_set_color_primaries(GdkCicpParams *self, guint color_primaries)
GDK_AVAILABLE_IN_4_16 void gdk_cicp_params_set_transfer_function(GdkCicpParams *self, guint transfer_function)
GDK_AVAILABLE_IN_4_16 guint gdk_cicp_params_get_transfer_function(GdkCicpParams *self)
GDK_AVAILABLE_IN_4_16 guint gdk_cicp_params_get_matrix_coefficients(GdkCicpParams *self)
GDK_AVAILABLE_IN_4_16 GdkCicpRange gdk_cicp_params_get_range(GdkCicpParams *self)
GDK_AVAILABLE_IN_4_16 void gdk_cicp_params_set_matrix_coefficients(GdkCicpParams *self, guint matrix_coefficients)
GdkCicpRange
@ GDK_CICP_RANGE_NARROW
@ GDK_CICP_RANGE_FULL
GDK_AVAILABLE_IN_4_16 GDK_AVAILABLE_IN_4_16 GdkCicpParams * gdk_cicp_params_new(void)
GDK_AVAILABLE_IN_4_16 guint gdk_cicp_params_get_color_primaries(GdkCicpParams *self)
GDK_AVAILABLE_IN_4_16 GdkColorState * gdk_cicp_params_build_color_state(GdkCicpParams *self, GError **error)
GDK_AVAILABLE_IN_4_16 void gdk_cicp_params_set_range(GdkCicpParams *self, GdkCicpRange range)
#define GDK_DECLARE_INTERNAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gdktypes.h:122
struct _GdkColorState GdkColorState
Definition gdktypes.h:78
struct _GdkCicpParams GdkCicpParams
Definition gdktypes.h:77
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
unsigned int guint
Definition gtypes.h:61
static void error(LoadState *S, const char *why)