Commit 0c7ff52f authored by banan's avatar banan

Add cook channel count function, part of multichannel cook

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17992 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4137f4c1
...@@ -1018,6 +1018,16 @@ static void dump_cook_context(COOKContext *q) ...@@ -1018,6 +1018,16 @@ static void dump_cook_context(COOKContext *q)
} }
#endif #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 * Cook initialization
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment