xref: /aosp_15_r20/external/skia/src/core/SkYUVMath.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2019 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkYUVMath_DEFINED
9 #define SkYUVMath_DEFINED
10 
11 enum SkYUVColorSpace : int;
12 
13 void SkColorMatrix_RGB2YUV(SkYUVColorSpace, float m[20]);
14 void SkColorMatrix_YUV2RGB(SkYUVColorSpace, float m[20]);
15 
16 // Used to create the pre-compiled tables in SkYUVMath.cpp
17 void SkColorMatrix_DumpYUVMatrixTables();
18 
19 #endif
20