[FFmpeg-soc] [soc]: r792 - in dirac/libavcodec: dirac_arith.c dirac_arith.h

marco subversion at mplayerhq.hu
Tue Aug 14 22:05:16 CEST 2007


Author: marco
Date: Tue Aug 14 22:05:15 2007
New Revision: 792

Log:
Fix indentation

Modified:
   dirac/libavcodec/dirac_arith.c
   dirac/libavcodec/dirac_arith.h

Modified: dirac/libavcodec/dirac_arith.c
==============================================================================
--- dirac/libavcodec/dirac_arith.c	(original)
+++ dirac/libavcodec/dirac_arith.c	Tue Aug 14 22:05:15 2007
@@ -65,7 +65,7 @@ static unsigned int arith_lookup[256] = 
 static void dirac_arith_init_common(dirac_arith_state_t arith) {
     int i;
 
-    arith->low = 0;
+    arith->low   = 0;
     arith->range = 0x10000;
 
     /* Initialize contexts.  */
@@ -84,18 +84,18 @@ static void dirac_arith_init_common(dira
 void dirac_arith_init (dirac_arith_state_t arith,
                        GetBitContext *gb, int length) {
     align_get_bits(gb);
-    arith->pb = NULL;
+    arith->pb        = NULL;
     arith->bits_left = 8 * length - 16;
-    arith->code = get_bits_long(gb, 16);
-    arith->gb = gb;
+    arith->code      = get_bits_long(gb, 16);
+    arith->gb        = gb;
 
     dirac_arith_init_common(arith);
 }
 
 void dirac_arith_coder_init(dirac_arith_state_t arith, PutBitContext *pb) {
-    arith->pb = pb;
-    arith->carry = 0;
-    arith->gb = NULL;
+    arith->pb        = pb;
+    arith->carry     = 0;
+    arith->gb        = NULL;
 
     dirac_arith_init_common(arith);
 }
@@ -116,15 +116,15 @@ int dirac_arith_get_bit (dirac_arith_sta
 
     assert(!arith->pb);
 
-    count = arith->code - arith->low;
-    range_times_prob = (arith->range * prob_zero) >> 16;
+    count             = arith->code - arith->low;
+    range_times_prob  = (arith->range * prob_zero) >> 16;
     if (count >= range_times_prob) {
         ret = 1;
-        arith->low += range_times_prob;
+        arith->low   += range_times_prob;
         arith->range -= range_times_prob;
     } else {
         ret = 0;
-        arith->range = range_times_prob;
+        arith->range  = range_times_prob;
     }
 
     /* Update contexts. */
@@ -136,12 +136,12 @@ int dirac_arith_get_bit (dirac_arith_sta
     while (arith->range <= 0x4000) {
         if (((arith->low + arith->range - 1)^arith->low) >= 0x8000) {
             arith->code ^= 0x4000;
-            arith->low ^= 0x4000;
+            arith->low  ^= 0x4000;
         }
-        arith->low <<= 1;
+        arith->low   <<= 1;
         arith->range <<= 1;
-        arith->low &= 0xFFFF;
-        arith->code <<= 1;
+        arith->low    &= 0xFFFF;
+        arith->code  <<= 1;
         if (arith->bits_left > 0) {
             arith->code |= get_bits (gb, 1);
             arith->bits_left--;

Modified: dirac/libavcodec/dirac_arith.h
==============================================================================
--- dirac/libavcodec/dirac_arith.h	(original)
+++ dirac/libavcodec/dirac_arith.h	Tue Aug 14 22:05:15 2007
@@ -95,20 +95,20 @@ struct dirac_arith_context_set {
     unsigned int sign;          ///< context to read the sign
 };
 
-void dirac_arith_init (dirac_arith_state_t arith,
-                       GetBitContext *gb, int length);
+void dirac_arith_init(dirac_arith_state_t arith,
+                      GetBitContext *gb, int length);
 
 void dirac_arith_coder_init(dirac_arith_state_t arith, PutBitContext *pb);
 
-int dirac_arith_get_bit (dirac_arith_state_t arith, int context);
+int dirac_arith_get_bit(dirac_arith_state_t arith, int context);
 
 void dirac_arith_put_bit(dirac_arith_state_t arith, int bit, int context);
 
-unsigned int dirac_arith_read_uint (dirac_arith_state_t arith,
-                                    struct dirac_arith_context_set *context_set);
+unsigned int dirac_arith_read_uint(dirac_arith_state_t arith,
+                                   struct dirac_arith_context_set *context_set);
 
-int dirac_arith_read_int (dirac_arith_state_t arith,
-                          struct dirac_arith_context_set *context_set);
+int dirac_arith_read_int(dirac_arith_state_t arith,
+                         struct dirac_arith_context_set *context_set);
 
 void dirac_arith_flush(dirac_arith_state_t arith);
 



More information about the FFmpeg-soc mailing list