mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Add cook channel count function, part of multichannel cook
Originally committed as revision 17992 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0eec287596
commit
b217024706
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user