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

conrad subversion at mplayerhq.hu
Thu Jan 1 21:31:54 CET 2009


Author: conrad
Date: Thu Jan  1 21:31:53 2009
New Revision: 3921

Log:
Remove hidden pointer from dirac_arith_state typedef

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

Modified: dirac/libavcodec/dirac_arith.c
==============================================================================
--- dirac/libavcodec/dirac_arith.c	Thu Jan  1 21:31:51 2009	(r3920)
+++ dirac/libavcodec/dirac_arith.c	Thu Jan  1 21:31:53 2009	(r3921)
@@ -193,7 +193,7 @@ struct dirac_arith_context_set ff_dirac_
 };
 
 
-static void dirac_arith_init_common(dirac_arith_state arith)
+static void dirac_arith_init_common(dirac_arith_state *arith)
 {
     int i;
 
@@ -213,7 +213,7 @@ static void dirac_arith_init_common(dira
  * @param gb GetBitContext to read from
  * @param length amount of bytes to decode
  */
-void dirac_init_arith_decoder(dirac_arith_state arith,
+void dirac_init_arith_decoder(dirac_arith_state *arith,
                       GetBitContext *gb, int length)
 {
     align_get_bits(gb);
@@ -225,7 +225,7 @@ void dirac_init_arith_decoder(dirac_arit
     dirac_arith_init_common(arith);
 }
 
-void dirac_init_arith_encoder(dirac_arith_state arith, PutBitContext *pb)
+void dirac_init_arith_encoder(dirac_arith_state *arith, PutBitContext *pb)
 {
     arith->pb        = pb;
     arith->carry     = 0;
@@ -241,7 +241,7 @@ void dirac_init_arith_encoder(dirac_arit
  * @param context the context of the bit to read
  * @return the bit read
  */
-int dirac_get_arith_bit(dirac_arith_state arith, int context)
+int dirac_get_arith_bit(dirac_arith_state *arith, int context)
 {
     GetBitContext *gb = arith->gb;
     unsigned int prob_zero = arith->contexts[context];
@@ -297,7 +297,7 @@ int dirac_get_arith_bit(dirac_arith_stat
  * @param context the context of the bit to write
  * @param bit the bit to write
  */
-void dirac_put_arith_bit(dirac_arith_state arith, int context, int bit)
+void dirac_put_arith_bit(dirac_arith_state *arith, int context, int bit)
 {
     PutBitContext *pb = arith->pb;
     unsigned int prob_zero = arith->contexts[context];
@@ -346,7 +346,7 @@ unsigned int follow_context(int index,
  * @param context_set the collection of contexts to read the unsigned int
  * @return value read by arithmetic decoder
  */
-unsigned int dirac_get_arith_uint(dirac_arith_state arith,
+unsigned int dirac_get_arith_uint(dirac_arith_state *arith,
                                    struct dirac_arith_context_set *context_set)
 {
     int ret = 1;
@@ -369,7 +369,7 @@ unsigned int dirac_get_arith_uint(dirac_
  * @param context_set  the collection of contexts used to write the unsigned int
  * @param i            value to write
  */
-void dirac_put_arith_uint(dirac_arith_state arith,
+void dirac_put_arith_uint(dirac_arith_state *arith,
                             struct dirac_arith_context_set *context_set,
                             unsigned int i)
 {
@@ -389,7 +389,7 @@ void dirac_put_arith_uint(dirac_arith_st
  * @param context_set the collection of contexts to read the signed int
  * @return value read by arithmetic decoder
  */
-int dirac_get_arith_int(dirac_arith_state arith,
+int dirac_get_arith_int(dirac_arith_state *arith,
                          struct dirac_arith_context_set *context_set)
 {
     int ret = dirac_get_arith_uint(arith, context_set);
@@ -405,7 +405,7 @@ int dirac_get_arith_int(dirac_arith_stat
  * @param context_set  the collection of contexts used to write the signed int
  * @param i            value to write
  */
-void dirac_put_arith_int(dirac_arith_state arith,
+void dirac_put_arith_int(dirac_arith_state *arith,
                            struct dirac_arith_context_set *context_set,
                            int i)
 {
@@ -419,7 +419,7 @@ void dirac_put_arith_int(dirac_arith_sta
  * Flush the arithmetic decoder, consume all bytes up to the
  * initialized length.
  */
-void dirac_get_arith_terminate(dirac_arith_state arith)
+void dirac_get_arith_terminate(dirac_arith_state *arith)
 {
     assert(!arith->pb);
     skip_bits_long(arith->gb, arith->bits_left);
@@ -430,7 +430,7 @@ void dirac_get_arith_terminate(dirac_ari
 /**
  * Flush the arithmetic coder.
  */
-void dirac_put_arith_terminate(dirac_arith_state arith)
+void dirac_put_arith_terminate(dirac_arith_state *arith)
 {
     int i;
     int rem;

Modified: dirac/libavcodec/dirac_arith.h
==============================================================================
--- dirac/libavcodec/dirac_arith.h	Thu Jan  1 21:31:51 2009	(r3920)
+++ dirac/libavcodec/dirac_arith.h	Thu Jan  1 21:31:53 2009	(r3921)
@@ -86,7 +86,7 @@ typedef struct dirac_arith_state {
 
     GetBitContext *gb;
     PutBitContext *pb;
-} *dirac_arith_state;
+} dirac_arith_state;
 
 struct dirac_arith_context_set {
     unsigned int follow[6];     ///< the first follow contexts
@@ -101,32 +101,32 @@ extern struct dirac_arith_context_set ff
 extern struct dirac_arith_context_set ff_dirac_context_set_quant;
 extern struct dirac_arith_context_set ff_dirac_context_sets_waveletcoeff[];
 
-void dirac_init_arith_decoder(dirac_arith_state arith,
+void dirac_init_arith_decoder(dirac_arith_state *arith,
                       GetBitContext *gb, int length);
 
-int dirac_get_arith_bit(dirac_arith_state arith, int context);
+int dirac_get_arith_bit(dirac_arith_state *arith, int context);
 
-unsigned int dirac_get_arith_uint(dirac_arith_state arith,
+unsigned int dirac_get_arith_uint(dirac_arith_state *arith,
                                    struct dirac_arith_context_set *context_set);
 
-int dirac_get_arith_int(dirac_arith_state arith,
+int dirac_get_arith_int(dirac_arith_state *arith,
                          struct dirac_arith_context_set *context_set);
 
-void dirac_get_arith_terminate(dirac_arith_state arith);
+void dirac_get_arith_terminate(dirac_arith_state *arith);
 
 
-void dirac_init_arith_encoder(dirac_arith_state arith, PutBitContext *pb);
+void dirac_init_arith_encoder(dirac_arith_state *arith, PutBitContext *pb);
 
-void dirac_put_arith_bit(dirac_arith_state arith, int bit, int context);
+void dirac_put_arith_bit(dirac_arith_state *arith, int bit, int context);
 
-void dirac_put_arith_uint(dirac_arith_state arith,
+void dirac_put_arith_uint(dirac_arith_state *arith,
                             struct dirac_arith_context_set *context_set,
                             unsigned int i);
 
-void dirac_put_arith_int(dirac_arith_state arith,
+void dirac_put_arith_int(dirac_arith_state *arith,
                            struct dirac_arith_context_set *context_set,
                            int i);
 
-void dirac_put_arith_terminate(dirac_arith_state arith);
+void dirac_put_arith_terminate(dirac_arith_state *arith);
 
 #endif /* AVCODEC_DIRAC_ARITH_H */



More information about the FFmpeg-soc mailing list