2020-07-28 03:37:16 -05:00
|
|
|
/*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SKIA_OPTS_H
|
|
|
|
#define SKIA_OPTS_H
|
|
|
|
|
|
|
|
#include <include/core/SkTypes.h>
|
|
|
|
|
|
|
|
SK_API void SkConvertRGBToRGBA(uint32_t* dest, const uint8_t* src, int count);
|
|
|
|
|
|
|
|
SK_API void SkConvertGrayToRGBA(uint32_t* dest, const uint8_t* src, int count);
|
|
|
|
|
|
|
|
SK_API void SkConvertRGBAToRGB(uint8_t* dest, const uint32_t* src, int count);
|
|
|
|
|
2020-12-08 05:46:40 -06:00
|
|
|
SK_API void SkConvertRGBAToR(uint8_t* dest, const uint32_t* src, int count);
|
2020-07-28 03:37:16 -05:00
|
|
|
|
|
|
|
namespace SkLoOpts
|
|
|
|
{
|
|
|
|
SK_API void Init();
|
|
|
|
|
|
|
|
typedef void (*Swizzle_u8_8888)(uint8_t*, const uint32_t*, int);
|
|
|
|
extern Swizzle_u8_8888 RGB1_to_RGB, // i.e. remove an (opaque) alpha
|
2020-12-08 05:46:40 -06:00
|
|
|
RGB1_to_R; // i.e. copy one channel to the result
|
2020-07-28 03:37:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|