office-gobmx/external/skia/inc/skia_opts.hxx
Luboš Luňák 991b4e032a better name for a helper Skia function
What it really does is converting RGBA to R, so name it after
what it does. That the result happens to be kind-of-grey of the RGBA
is just a result of VCL providing the data that way.

Change-Id: Ic017e34d91879679e0a7dad4d6ab35650fc3a89b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107408
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-12-09 11:50:33 +01:00

28 lines
776 B
C++

/*
* 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);
SK_API void SkConvertRGBAToR(uint8_t* dest, const uint32_t* src, int count);
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
RGB1_to_R; // i.e. copy one channel to the result
}
#endif