mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 21:40:22 +00:00
Merge branch 'matthiasc/for-main' into 'main'
Cosmetics See merge request GNOME/gtk!7512
This commit is contained in:
commit
785709d51c
@ -33,21 +33,19 @@ test_transfer (gconstpointer data)
|
||||
}
|
||||
}
|
||||
|
||||
typedef const float Matrix[9];
|
||||
|
||||
typedef struct
|
||||
{
|
||||
const char *name;
|
||||
Matrix *to_xyz;
|
||||
Matrix *from_xyz;
|
||||
const float *to_xyz;
|
||||
const float *from_xyz;
|
||||
} MatrixTest;
|
||||
static MatrixTest matrices[] = {
|
||||
{ "srgb", &srgb_to_xyz, &xyz_to_srgb },
|
||||
{ "rec2020", &rec2020_to_xyz, &xyz_to_rec2020 },
|
||||
{ "pal", &pal_to_xyz, &xyz_to_pal },
|
||||
{ "ntsc", &ntsc_to_xyz, &xyz_to_ntsc },
|
||||
{ "p3", &p3_to_xyz, &xyz_to_p3 },
|
||||
{ "srgb<>rec2020", &rec2020_to_srgb, &srgb_to_rec2020 },
|
||||
{ "srgb", srgb_to_xyz, xyz_to_srgb },
|
||||
{ "rec2020", rec2020_to_xyz, xyz_to_rec2020 },
|
||||
{ "pal", pal_to_xyz, xyz_to_pal },
|
||||
{ "ntsc", ntsc_to_xyz, xyz_to_ntsc },
|
||||
{ "p3", p3_to_xyz, xyz_to_p3 },
|
||||
{ "srgb<>rec2020", rec2020_to_srgb, srgb_to_rec2020 },
|
||||
};
|
||||
|
||||
#define IDX(i,j) 3*i+j
|
||||
@ -99,7 +97,7 @@ test_matrix (gconstpointer data)
|
||||
float res[9];
|
||||
float res2[9];
|
||||
|
||||
multiply (res, *matrix->to_xyz, *matrix->from_xyz);
|
||||
multiply (res, matrix->to_xyz, matrix->from_xyz);
|
||||
|
||||
if (g_test_verbose ())
|
||||
print_matrix (res);
|
||||
|
Loading…
Reference in New Issue
Block a user