check_aec.h 752 Bytes
Newer Older
1
2
3
4
5
#ifndef CHECK_AEC_H
#define CHECK_AEC_H
#include "libaec.h"

struct test_state {
6
    int (* codec)(struct test_state *state);
7
    int id_len;
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
8
    int bytes_per_sample;
9
10
11
12
13
14
15
16
17
18
19
20
21
    unsigned char *ubuf;
    unsigned char *cbuf;
    unsigned char *obuf;
    size_t ibuf_len; /* input buffer legth may be shorter than buf_len */
    size_t buf_len;
    size_t cbuf_len;
    long long int xmax;
    long long int xmin;
    void (*out)(unsigned char *dest, unsigned int val, int size);
    struct aec_stream *strm;
};

int update_state(struct test_state *state);
22
int encode_decode_small(struct test_state *state);
23
int encode_decode_large(struct test_state *state);
24

Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
25
26
27
#define CHECK_PASS "PASS"
#define CHECK_FAIL "FAIL"

28
#endif /* CHECK_AEC_H */