1 
2 /****************************************************************************
3 *
4 *  Copyright Raph Levien 2022
5 *  Copyright Nicolas Silva 2022
6 *  Copyright NXP 2022
7 *
8 *  Licensed under the Apache License, Version 2.0 (the "License");
9 *  you may not use this file except in compliance with the License.
10 *  You may obtain a copy of the License at
11 *
12 *      http://www.apache.org/licenses/LICENSE-2.0
13 *
14 *  Unless required by applicable law or agreed to in writing, software
15 *  distributed under the License is distributed on an "AS IS" BASIS,
16 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 *  See the License for the specific language governing permissions and
18 *  limitations under the License.
19 *
20 *****************************************************************************/
21 
22 #ifndef _vg_lite_flat_h_
23 #define _vg_lite_flat_h_
24 
25 #include "vg_lite.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 vg_lite_error_t _flatten_quad_bezier(
32                         vg_lite_stroke_conversion_t *stroke_conversion,
33                         vg_lite_float_t X0,
34                         vg_lite_float_t Y0,
35                         vg_lite_float_t X1,
36                         vg_lite_float_t Y1,
37                         vg_lite_float_t X2,
38                         vg_lite_float_t Y2);
39 
40 vg_lite_error_t _flatten_cubic_bezier(
41                         vg_lite_stroke_conversion_t *  stroke_conversion,
42                         vg_lite_float_t X0,
43                         vg_lite_float_t Y0,
44                         vg_lite_float_t X1,
45                         vg_lite_float_t Y1,
46                         vg_lite_float_t X2,
47                         vg_lite_float_t Y2,
48                         vg_lite_float_t X3,
49                         vg_lite_float_t Y3);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* _vg_lite_flat_h_ */
56