Go to the source code of this file.
◆ SkColorMatrix_DumpYUVMatrixTables()
void SkColorMatrix_DumpYUVMatrixTables |
( |
| ) |
|
Definition at line 672 of file SkYUVMath.cpp.
672 {
680 float im[20];
681#ifdef SK_DEBUG
682
684 SkASSERT(memcmp(
m, im,
sizeof(im)) == 0);
685#endif
689 }
690}
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
@ kLastEnum_SkYUVColorSpace
last valid value
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
static void make_rgb_to_yuv_matrix(float mx[20], SkYUVColorSpace cs)
static void matrix44_to_colormatrix(const SkM44 &src, float dst[20])
static void colormatrix_to_matrix44(const float src[20], SkM44 *dst)
bool invert(SkM44 *inverse) const
◆ SkColorMatrix_RGB2YUV()
Definition at line 389 of file SkYUVMath.cpp.
389 {
392 } else {
394 m[0] =
m[6] =
m[12] =
m[18] = 1;
395 }
396}
@ kIdentity_SkYUVColorSpace
maps Y->R, U->G, V->B
constexpr size_t kSizeOfColorMatrix
const float * rgb_to_yuv_array[]
◆ SkColorMatrix_YUV2RGB()
Definition at line 398 of file SkYUVMath.cpp.
398 {
401 } else {
403 m[0] =
m[6] =
m[12] =
m[18] = 1;
404 }
405}
const float * yuv_to_rgb_array[]