Exemple #1
0
void ssr_filter_bank_end(fb_info *fb)
{
    faad_mdct_end(fb->mdct256);
    faad_mdct_end(fb->mdct2048);

    if (fb) faad_free(fb);
}
Exemple #2
0
void filter_bank_end(fb_info *fb)
{
    if (fb != NULL)
    {
#ifdef PROFILE
        printf("FB:                 %I64d cycles\n", fb->cycles);
#endif

        faad_mdct_end(fb->mdct256);
        faad_mdct_end(fb->mdct2048);
#ifdef LD_DEC
        faad_mdct_end(fb->mdct1024);
#endif

        faad_free(fb);
    }
}
Exemple #3
0
void filter_bank_end(fb_info *fb)
{
 if(fb){
#ifdef USE_VORBIS_MDCT
  if(fb->use_vorbis_mdct){
   oggdec_mdct_clear((mdct_lookup *)fb->mdct256);
   oggdec_mdct_clear((mdct_lookup *)fb->mdct2048);
  }else{
#endif
   faad_mdct_end(fb->mdct256);
   faad_mdct_end(fb->mdct2048);
#ifdef USE_VORBIS_MDCT
  }
#endif

#ifdef LD_DEC
#ifdef USE_VORBIS_MDCT
  if(fb->use_vorbis_mdct)
   oggdec_mdct_clear((mdct_lookup *)fb->mdct1024);
  else
#endif
   faad_mdct_end(fb->mdct1024);
  if(fb->ld_window[0])
   free(fb->ld_window[0]);
  if(fb->ld_window[1])
   free(fb->ld_window[1]);
#endif

  if(fb->long_window[0])
   free(fb->long_window[0]);
  if(fb->short_window[0])
   free(fb->short_window[0]);

  if(fb->tmp_buf)
   free(fb->tmp_buf);
  free(fb);
 }
}