OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc5486
)
Little helper macro to make the use of INIT_VLC_USE_NEW_STATIC easier.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 30 May 2008 20:00:19 +0000
(20:00 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 30 May 2008 20:00:19 +0000
(20:00 +0000)
Originally committed as revision 13562 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bitstream.h
patch
|
blob
|
history
diff --git
a/libavcodec/bitstream.h
b/libavcodec/bitstream.h
index
8d2d795
..
737c58c
100644
(file)
--- a/
libavcodec/bitstream.h
+++ b/
libavcodec/bitstream.h
@@
-805,6
+805,15
@@
int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
#define INIT_VLC_USE_NEW_STATIC 4
void free_vlc(VLC *vlc);
+#define INIT_VLC_STATIC(vlc, bits, a,b,c,d,e,f,g, static_size)\
+{\
+ static VLC_TYPE table[static_size][2];\
+ (vlc)->table= table;\
+ (vlc)->table_allocated= static_size;\
+ init_vlc(vlc, bits, a,b,c,d,e,f,g, INIT_VLC_USE_NEW_STATIC);\
+}
+
+
/**
*
* if the vlc code is invalid and max_depth=1 than no bits will be removed