blob: d094d54788feeba449b83447b11d9508591ccbbf (
plain)
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
|
/* SPDX-FileCopyrightText: Copyright (C) 2025 ZeldaRET */
/* SPDX-License-Identifier: MIT */
#ifndef JFIF_H
#define JFIF_H
#include <stddef.h>
#include <stdint.h>
struct JFIF {
void *data;
size_t data_size;
};
#define JFIF_BUFFER_SIZE (320 * 240 * sizeof(uint16_t))
struct JFIF *
jfif_fromfile(const char *path, size_t max_size);
void
jfif_free(struct JFIF *jfif);
int
jfif_to_c(char **out, size_t *size_out, struct JFIF *jfif, size_t pad_to_size);
int
jfif_to_c_file(const char *out_path, struct JFIF *jfif, size_t pad_to_size);
#endif
|