blob: ac3c36366fcd99f1bf9d90d38b795bc357c6bfcf (
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
29
|
#ifndef QR_CODE_H
#define QR_CODE_H
#include <stddef.h>
#include "types.h"
struct qr_code {
int version;
struct qr_bitmap * modules;
};
struct qr_code * qr_code_create(const struct qr_data * data);
void qr_code_destroy(struct qr_code *);
int qr_code_width(const struct qr_code *);
size_t qr_code_total_capacity(int version);
struct qr_code * qr_code_parse(const void * buffer,
size_t line_bits,
size_t line_stride,
size_t line_count);
struct qr_bitmap * qr_mask_apply(const struct qr_bitmap * orig,
unsigned int mask);
#endif
|