diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-11-11 23:32:29 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-11-11 23:32:29 +0000 |
| commit | 33df605c935eefc3d3e258d02932b8c11cf4b929 (patch) | |
| tree | 7dd11d63841e6fdb217b6d3260f350fab4e687d9 /apps/codecs/libffmpegFLAC | |
| parent | ffc3963d57153cd8d4d8fbb72bcc387a9578a4ab (diff) | |
| download | rockbox-33df605c935eefc3d3e258d02932b8c11cf4b929.zip rockbox-33df605c935eefc3d3e258d02932b8c11cf4b929.tar.gz rockbox-33df605c935eefc3d3e258d02932b8c11cf4b929.tar.bz2 rockbox-33df605c935eefc3d3e258d02932b8c11cf4b929.tar.xz | |
Move ff_log2_tab out of header file into its own .c file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libffmpegFLAC')
| -rw-r--r-- | apps/codecs/libffmpegFLAC/golomb.h | 11 | ||||
| -rw-r--r-- | apps/codecs/libffmpegFLAC/tables.c | 14 |
2 files changed, 15 insertions, 10 deletions
diff --git a/apps/codecs/libffmpegFLAC/golomb.h b/apps/codecs/libffmpegFLAC/golomb.h index 2739f38..57e84f4 100644 --- a/apps/codecs/libffmpegFLAC/golomb.h +++ b/apps/codecs/libffmpegFLAC/golomb.h @@ -22,16 +22,7 @@ #include <limits.h> /* From libavutil/common.h */ -const uint8_t ff_log2_tab[256] ICONST_ATTR = { - 0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, - 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, - 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, - 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 -}; +extern const uint8_t ff_log2_tab[256]; static inline int av_log2(unsigned int v) { diff --git a/apps/codecs/libffmpegFLAC/tables.c b/apps/codecs/libffmpegFLAC/tables.c new file mode 100644 index 0000000..8422bf7 --- /dev/null +++ b/apps/codecs/libffmpegFLAC/tables.c @@ -0,0 +1,14 @@ +#include "../codec.h" +#include <inttypes.h> + +/* From ffmpeg - libavutil/common.h */ +const uint8_t ff_log2_tab[256] ICONST_ATTR = { + 0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, + 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, + 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, + 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 +}; |