OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eec287
)
Add cook channel count function, part of multichannel cook
author
Benjamin Larsson
<banan@ludd.ltu.se>
Sun, 15 Mar 2009 19:36:45 +0000
(19:36 +0000)
committer
Benjamin Larsson
<banan@ludd.ltu.se>
Sun, 15 Mar 2009 19:36:45 +0000
(19:36 +0000)
Originally committed as revision 17992 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cook.c
patch
|
blob
|
history
diff --git
a/libavcodec/cook.c
b/libavcodec/cook.c
index
1c1bf72
..
e476ded
100644
(file)
--- a/
libavcodec/cook.c
+++ b/
libavcodec/cook.c
@@
-1018,6
+1018,16
@@
static void dump_cook_context(COOKContext *q)
}
#endif
+static av_cold int cook_count_channels(unsigned int mask){
+ int i;
+ int channels = 0;
+ for(i = 0;i<32;i++){
+ if(mask & (1<<i))
+ ++channels;
+ }
+ return channels;
+}
+
/**
* Cook initialization
*