#include "images/images.h"
#include "images/color.h"
#include "images/error.h"
#include "images/math.h"
#include <string.h>
#include "images/images.h"
#include "images/color.h"
#include "images/error.h"
#include "images/math.h"
#include <string.h>
uns color_space_channels[COLOR_SPACE_MAX] = {
[COLOR_SPACE_UNKNOWN] = 0,
uns color_space_channels[COLOR_SPACE_MAX] = {
[COLOR_SPACE_UNKNOWN] = 0,
struct image_conv_options image_conv_defaults = {
.flags = IMAGE_CONV_COPY_ALPHA | IMAGE_CONV_FILL_ALPHA | IMAGE_CONV_APPLY_ALPHA,
.background = { .color_space = COLOR_SPACE_GRAYSCALE } };
struct image_conv_options image_conv_defaults = {
.flags = IMAGE_CONV_COPY_ALPHA | IMAGE_CONV_FILL_ALPHA | IMAGE_CONV_APPLY_ALPHA,
.background = { .color_space = COLOR_SPACE_GRAYSCALE } };
if (dest->pixel_size == 4)
{
image_conv_rgb_n_to_cmyk_4(dest, src);
if (dest->pixel_size == 4)
{
image_conv_rgb_n_to_cmyk_4(dest, src);
byte *a = xmalloc(3 * CNT), *b = xmalloc(3 * CNT);
for (uns i = 0; i < 3 * CNT; i++)
a[i] = random_max(256);
byte *a = xmalloc(3 * CNT), *b = xmalloc(3 * CNT);
for (uns i = 0; i < 3 * CNT; i++)
a[i] = random_max(256);
for (uns i = 0; i < TESTS; i++)
srgb_to_luv_pixels(b, a, CNT);
for (uns i = 0; i < TESTS; i++)
srgb_to_luv_pixels(b, a, CNT);
for (uns i = 0; i < TESTS; i++)
color_conv_pixels(b, a, CNT, srgb_to_luv_grid);
for (uns i = 0; i < TESTS; i++)
color_conv_pixels(b, a, CNT, srgb_to_luv_grid);