Mercurial > libavcodec.hg
comparison cook.c @ 9176:e353d3a41e0b libavcodec
Add cook channel count function, part of multichannel cook
author | banan |
---|---|
date | Sun, 15 Mar 2009 19:36:45 +0000 |
parents | da3196ebcf99 |
children | 7b62479a31ec |
comparison
equal
deleted
inserted
replaced
9175:da3196ebcf99 | 9176:e353d3a41e0b |
---|---|
1015 PRINT("log2_numvector_size",q->log2_numvector_size); | 1015 PRINT("log2_numvector_size",q->log2_numvector_size); |
1016 PRINT("numvector_size",q->numvector_size); | 1016 PRINT("numvector_size",q->numvector_size); |
1017 PRINT("total_subbands",q->total_subbands); | 1017 PRINT("total_subbands",q->total_subbands); |
1018 } | 1018 } |
1019 #endif | 1019 #endif |
1020 | |
1021 static av_cold int cook_count_channels(unsigned int mask){ | |
1022 int i; | |
1023 int channels = 0; | |
1024 for(i = 0;i<32;i++){ | |
1025 if(mask & (1<<i)) | |
1026 ++channels; | |
1027 } | |
1028 return channels; | |
1029 } | |
1020 | 1030 |
1021 /** | 1031 /** |
1022 * Cook initialization | 1032 * Cook initialization |
1023 * | 1033 * |
1024 * @param avctx pointer to the AVCodecContext | 1034 * @param avctx pointer to the AVCodecContext |