Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching refs:raw

47    RAW encoding interface
52 opj_raw_t *raw = (opj_raw_t*)opj_malloc(sizeof(opj_raw_t));
53 return raw;
56 void opj_raw_destroy(opj_raw_t *raw) {
57 if(raw) {
58 opj_free(raw);
62 OPJ_UINT32 opj_raw_numbytes(opj_raw_t *raw) {
63 const ptrdiff_t diff = raw->bp - raw->start;
68 void opj_raw_init_dec(opj_raw_t *raw, OPJ_BYTE *bp, OPJ_UINT32 len) {
69 raw->start = bp;
70 raw->lenmax = len;
71 raw->len = 0;
72 raw->c = 0;
73 raw->ct = 0;
76 OPJ_UINT32 opj_raw_decode(opj_raw_t *raw) {
78 if (raw->ct == 0) {
79 raw->ct = 8;
80 if (raw->len == raw->lenmax) {
81 raw->c = 0xff;
83 if (raw->c == 0xff) {
84 raw->ct = 7;
86 raw->c = *(raw->start + raw->len);
87 raw->len++;
90 raw->ct--;
91 d = (raw->c >> raw->ct) & 0x01;