[FFmpeg-cvslog] r17992 - trunk/libavcodec/cook.c

banan subversion
Sun Mar 15 20:36:45 CET 2009


Author: banan
Date: Sun Mar 15 20:36:45 2009
New Revision: 17992

Log:
Add cook channel count function, part of multichannel cook

Modified:
   trunk/libavcodec/cook.c

Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c	Sun Mar 15 20:34:52 2009	(r17991)
+++ trunk/libavcodec/cook.c	Sun Mar 15 20:36:45 2009	(r17992)
@@ -1018,6 +1018,16 @@ static void dump_cook_context(COOKContex
 }
 #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
  *




More information about the ffmpeg-cvslog mailing list