aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/qr/parse.h
blob: 0e08354660877257a271e3ea32daa62e01c093fa (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
#ifndef QR_PARSE_H
#define QR_PARSE_H

#include "data.h"

#ifdef __cplusplus
extern "C" {
#endif

int qr_code_parse(const void *      buffer,
                  size_t            line_bits,
                  size_t            line_stride,
                  size_t            line_count,
                  struct qr_data ** data);

int qr_decode_format(unsigned long bits, enum qr_ec_level * ec, int * mask);
int qr_decode_version(unsigned long bits, int * version);

#ifdef __cplusplus
}
#endif

#endif