diff options
| author | Sebastien Lugan <slugan@users.noreply.github.com> | 2004-04-29 13:27:24 +0000 |
|---|---|---|
| committer | Sebastien Lugan <slugan@users.noreply.github.com> | 2004-04-29 13:27:24 +0000 |
| commit | 64c34e0d5260ef8e4dee4638458431aec0e1e614 (patch) | |
| tree | be55a288cf2553bc3e116439878e3c8ed090c0ad /libopenjpeg/raw.c | |
| parent | ec9bd9f6a455a83da8c2c77f5b2628b416cca18f (diff) | |
Reformatage : indent -kr -i2 -ci2 $(find . -name '*.c') $(find . -name '*.h')
Diffstat (limited to 'libopenjpeg/raw.c')
| -rw-r--r-- | libopenjpeg/raw.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/libopenjpeg/raw.c b/libopenjpeg/raw.c index 390146ce..bae2e899 100644 --- a/libopenjpeg/raw.c +++ b/libopenjpeg/raw.c @@ -40,7 +40,7 @@ unsigned char *raw_end; /* pointer to the end of the buffer */ */ int raw_numbytes() { - return raw_bp - raw_start; + return raw_bp - raw_start; } /* @@ -51,11 +51,11 @@ int raw_numbytes() */ void raw_init_dec(unsigned char *bp, int len) { - raw_start = bp; - raw_lenmax = len; - raw_len = 0; - raw_c = 0; - raw_ct = 0; + raw_start = bp; + raw_lenmax = len; + raw_len = 0; + raw_c = 0; + raw_ct = 0; } /* @@ -63,19 +63,19 @@ void raw_init_dec(unsigned char *bp, int len) */ int raw_decode() { - int d; - if (raw_ct == 0) { - raw_ct = 8; - if (raw_len == raw_lenmax) - raw_c = 0xff; - else { - if (raw_c == 0xff) - raw_ct = 7; - raw_c = *(raw_start + raw_len); - raw_len++; - } + int d; + if (raw_ct == 0) { + raw_ct = 8; + if (raw_len == raw_lenmax) + raw_c = 0xff; + else { + if (raw_c == 0xff) + raw_ct = 7; + raw_c = *(raw_start + raw_len); + raw_len++; } - raw_ct--; - d = (raw_c >> raw_ct) & 0x01; - return d; + } + raw_ct--; + d = (raw_c >> raw_ct) & 0x01; + return d; } |
