projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7917333
)
Trivial whitespace fixes.
author
Andre Noll
<maan@systemlinux.org>
Sun, 18 Oct 2009 11:01:21 +0000
(13:01 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:19 +0000
(19:34 +0100)
bitstream.c
patch
|
blob
|
history
diff --git
a/bitstream.c
b/bitstream.c
index e36faaf861ae4de3f3a0470d55a404851e55d946..23adb2bd28912bd3364234b2a367d562ced1740e 100644
(file)
--- a/
bitstream.c
+++ b/
bitstream.c
@@
-29,18
+29,18
@@
#define GET_DATA(v, table, i, wrap, size) \
{\
#define GET_DATA(v, table, i, wrap, size) \
{\
-
const uint8_t *ptr = (const uint8_t *)table + i * wrap;
\
-
switch(size) {
\
-
case 1:
\
-
v = *(const uint8_t *)ptr;
\
-
break;
\
-
case 2:
\
-
v = *(const uint16_t *)ptr;
\
-
break;
\
-
default:
\
-
v = *(const uint32_t *)ptr;
\
-
break;
\
-
}
\
+
const uint8_t *ptr = (const uint8_t *)table + i * wrap;
\
+
switch (size) {
\
+
case 1:
\
+
v = *(const uint8_t *)ptr;
\
+
break;
\
+
case 2:
\
+
v = *(const uint16_t *)ptr;
\
+
break;
\
+
default:
\
+
v = *(const uint32_t *)ptr;
\
+
break;
\
+
}
\
}
static int alloc_table(struct vlc *vlc, int size)
}
static int alloc_table(struct vlc *vlc, int size)
@@
-158,11
+158,11
@@
static int build_table(struct vlc *vlc, int table_nb_bits,
* \param bits_wrap The number of bytes between each entry of the
* 'bits' or 'codes' tables.
*
* \param bits_wrap The number of bytes between each entry of the
* 'bits' or 'codes' tables.
*
- *
* \param bits_size The number of bytes of each entry of the
* 'bits' or 'codes' tables.
*
* \param codes_wrap Same as bits_wrap but uses the 'codes' table.
* \param bits_size The number of bytes of each entry of the
* 'bits' or 'codes' tables.
*
* \param codes_wrap Same as bits_wrap but uses the 'codes' table.
+ *
* \param codes_size Same as bits_size but for the 'codes' table.
*
* The wrap and size parameters allow to use any memory configuration and
* \param codes_size Same as bits_size but for the 'codes' table.
*
* The wrap and size parameters allow to use any memory configuration and