chromium/third_party/qcms/src/tests/qcms_test_tetra_clut_rgba.c

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "qcms.h"
#include "qcms_test_util.h"
#include "timing.h"

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// External qcms tetra clut interpolators.

extern void qcms_transform_data_tetra_clut_rgba(qcms_transform *transform,
                                                unsigned char *src,
                                                unsigned char *dest,
                                                size_t length,
                                                qcms_format_type output_format);

#ifdef SSE2_ENABLE
extern void qcms_transform_data_tetra_clut_rgba_sse2(qcms_transform *transform,
                                                     unsigned char *src,
                                                     unsigned char *dest,
                                                     size_t length,
                                                     qcms_format_type output_format);
#else
void qcms_transform_data_tetra_clut_rgba_dummy(qcms_transform *transform,
                                               unsigned char *src,
                                               unsigned char *dest,
                                               size_t length,
                                               qcms_format_type output_format)
{
    (void)(transform);
    (void)(src);
    (void)(dest);
    (void)(length);
    (void)(output_format);
}
#endif

static float *create_lut(size_t lutSize)
{}

static int diffs;

static int validate(unsigned char *dst0, unsigned char *dst1, size_t length, int limit, const size_t pixel_size)
{}

static int qcms_test_tetra_clut_rgba(size_t width,
        size_t height,
        int iterations,
        const char *in_profile,
        const char *out_profile,
        const int force_software)
{}

struct qcms_test_case qcms_test_tetra_clut_rgba_info =;