/
jxl-loader.h
45 lines (34 loc) 路 1.55 KB
/
jxl-loader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Copyright (C) 2024 oupson
*
* This file is part of Chafa, a program that shows pictures on text terminals.
*
* Chafa is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Chafa is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Chafa. If not, see <http://www.gnu.org/licenses/>. */
#ifndef __JXL_LOADER_H__
#define __JXL_LOADER_H__
#include "file-mapping.h"
#include <glib.h>
G_BEGIN_DECLS
typedef struct JxlLoader JxlLoader;
JxlLoader *jxl_loader_new_from_mapping (FileMapping *mapping);
void jxl_loader_destroy (JxlLoader *loader);
gboolean jxl_loader_get_is_animation (JxlLoader *loader);
gconstpointer jxl_loader_get_frame_data (JxlLoader *loader,
ChafaPixelType *pixel_type_out, gint *width_out,
gint *height_out, gint *rowstride_out);
gint jxl_loader_get_frame_delay (JxlLoader *loader);
void jxl_loader_goto_first_frame (JxlLoader *loader);
gboolean jxl_loader_goto_next_frame (JxlLoader *loader);
G_END_DECLS
#endif /* __JXL_LOADER_H__ */