[MPlayer-cvslog] r24915 - in trunk/libaf: af.c af.h

uau subversion at mplayerhq.hu
Thu Nov 1 07:51:57 CET 2007


Author: uau
Date: Thu Nov  1 07:51:57 2007
New Revision: 24915

Log:
Remove unused functions in af.c


Modified:
   trunk/libaf/af.c
   trunk/libaf/af.h

Modified: trunk/libaf/af.c
==============================================================================
--- trunk/libaf/af.c	(original)
+++ trunk/libaf/af.c	Thu Nov  1 07:51:57 2007
@@ -524,39 +524,6 @@ inline int af_lencalc(frac_t mul, af_dat
   return t*(((d->len/t)*mul.n)/mul.d + 1);
 }
 
-/* Calculate how long the output from the filters will be given the
-   input length "len". The calculated length is >= the actual
-   length. */
-int af_outputlen(af_stream_t* s, int len)
-{
-  int t = s->input.bps*s->input.nch;
-  af_instance_t* af=s->first; 
-  frac_t mul = {1,1};
-  // Iterate through all filters 
-  do{
-    af_frac_mul(&mul, &af->mul);
-    af=af->next;
-  }while(af);
-  return t * (((len/t)*mul.n + 1)/mul.d);
-}
-
-/* Calculate how long the input to the filters should be to produce a
-   certain output length, i.e. the return value of this function is
-   the input length required to produce the output length "len". The
-   calculated length is <= the actual length */
-int af_inputlen(af_stream_t* s, int len)
-{
-  int t = s->input.bps*s->input.nch;
-  af_instance_t* af=s->first; 
-  frac_t mul = {1,1};
-  // Iterate through all filters 
-  do{
-    af_frac_mul(&mul, &af->mul);
-    af=af->next;
-  }while(af);
-  return t * (((len/t) * mul.d - 1)/mul.n);
-}
-
 /* Calculate how long the input IN to the filters should be to produce
    a certain output length OUT but with the following three constraints:
    1. IN <= max_insize, where max_insize is the maximum possible input

Modified: trunk/libaf/af.h
==============================================================================
--- trunk/libaf/af.h	(original)
+++ trunk/libaf/af.h	Thu Nov  1 07:51:57 2007
@@ -199,24 +199,6 @@ af_data_t* af_play(af_stream_t* s, af_da
 af_instance_t *af_control_any_rev (af_stream_t* s, int cmd, void* arg);
 
 /**
- * \brief Calculate how long the output from the filters will be for a given
- *        input length.
- * \param len input lenght for which to calculate output length
- * \return calculated output length, will always be >= the resulting
- *         length when actually calling af_play.
- */
-int af_outputlen(af_stream_t* s, int len);
-
-/**
- * \brief Calculate how long the input to the filters should be to produce a
- *        certain output length
- * \param len wanted output length
- * \return input length required to produce the output length "len". Possibly
- *         smaller to avoid overflow of output buffer
- */
-int af_inputlen(af_stream_t* s, int len);
-
-/**
  * \brief calculate required input length for desired output size
  * \param len desired minimum output length
  * \param max_outsize maximum output length



More information about the MPlayer-cvslog mailing list