1 /* TSI 2023.xmo */
2 /*******************************************************************************
3  * Copyright (c) 2023 Think Silicon Single Member PC
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this header file and/or associated documentation files to use, copy,
7  * modify, merge, publish, distribute, sublicense, and/or sell copies of the
8  * Materials, and to permit persons to whom the Materials are furnished to do
9  * so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Materials.
13  *
14  * MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
15  * NEMAGFX API. THE UNMODIFIED, NORMATIVE VERSIONS OF THINK-SILICON NEMAGFX
16  * SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT:
17  *   https://think-silicon.com/products/software/nemagfx-api
18  *
19  *  The software is provided 'as is', without warranty of any kind, express or
20  *  implied, including but not limited to the warranties of merchantability,
21  *  fitness for a particular purpose and noninfringement. In no event shall
22  *  Think Silicon Single Member PC be liable for any claim, damages or other
23  *  liability, whether in an action of contract, tort or otherwise, arising
24  *  from, out of or in connection with the software or the use or other dealings
25  *  in the software.
26  ******************************************************************************/
27 
28 /**
29  * @file
30  * @brief API for rendering .tsvg images
31  *
32  */
33 
34 #ifndef NEMA_VG_TSVG_H_
35 #define NEMA_VG_TSVG_H_
36 
37 #include "nema_vg_context.h"
38 
39 /** \brief Draws a TSVG buffer
40  *
41  * \param buffer Pointer to the TSVG buffer that will be drawn
42  *
43  */
44 void
45 nema_vg_draw_tsvg(const void* buffer);
46 
47 /** \brief Get the width and height of tsvg
48  *
49  * \param buffer Tsvg buffer
50  * \param width return Tsvg width
51  * \param height return Tsvg height
52  *
53  */
54 void nema_vg_get_tsvg_resolution(const void *buffer, uint32_t *width, uint32_t *height);
55 
56 #endif // NEMA_VG_TSVG_H_
57