chromium/third_party/skia/src/encode/SkImageEncoderFns.h

/*
 * Copyright 2012 The Android Open Source Project
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkImageEncoderFns_DEFINED
#define SkImageEncoderFns_DEFINED

#include "include/core/SkColorSpace.h"
#include "include/core/SkData.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include "include/encode/SkICC.h"
#include "modules/skcms/skcms.h"

#include <cstring>

transform_scanline_proc;

static inline void transform_scanline_memcpy(char* dst, const char* src, int width, int bpp) {}

static inline void transform_scanline_A8_to_GrayAlpha(char* dst, const char* src, int width, int) {}


static void skcms(char* dst, const char* src, int n,
                  skcms_PixelFormat srcFmt, skcms_AlphaFormat srcAlpha,
                  skcms_PixelFormat dstFmt, skcms_AlphaFormat dstAlpha) {}

static inline void transform_scanline_gray(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_565(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_RGBX(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_BGRX(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_444(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_rgbA(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_bgrA(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_to_premul_legacy(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_BGRA(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_4444(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_101010x(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_1010102(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_1010102_premul(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_bgr_101010x(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_bgra_1010102(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_bgr_101010x_xr(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_bgra_10101010_xr(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_bgra_1010102_premul(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_F16(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_F16F16F16x(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_F16_premul(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_F16_to_8888(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_F16_premul_to_8888(char* dst,
                                                         const char* src,
                                                         int width,
                                                         int) {}

static inline void transform_scanline_F16_to_premul_8888(char* dst,
                                                         const char* src,
                                                         int width,
                                                         int) {}

static inline void transform_scanline_F32(char* dst, const char* src, int width, int) {}

static inline void transform_scanline_F32_premul(char* dst, const char* src, int width, int) {}

static inline sk_sp<SkData> icc_from_color_space(const SkColorSpace* cs,
                                                 const skcms_ICCProfile* profile,
                                                 const char* profile_description) {}

static inline sk_sp<SkData> icc_from_color_space(const SkImageInfo& info,
                                                 const skcms_ICCProfile* profile,
                                                 const char* profile_description) {}

#endif  // SkImageEncoderFns_DEFINED