[Mplayer-cvslog] CVS: main/libac3 decode.c,1.5,1.6
Nick Kurshev
nickols_k at users.sourceforge.net
Wed Jun 20 09:53:57 CEST 2001
Update of /cvsroot/mplayer/main/libac3
In directory usw-pr-cvs1:/tmp/cvs-serv10866/main/libac3
Modified Files:
decode.c
Log Message:
Better 3dnow! optimization
Index: decode.c
===================================================================
RCS file: /cvsroot/mplayer/main/libac3/decode.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** decode.c 2001/06/16 15:23:48 1.5
--- decode.c 2001/06/20 07:53:55 1.6
***************
*** 56,60 ****
static bsi_t bsi;
static syncinfo_t syncinfo;
! //static uint32_t frame_count = 0;
static uint32_t done_banner;
--- 56,60 ----
static bsi_t bsi;
static syncinfo_t syncinfo;
! //static uint32_t frame_count=0;
static uint32_t done_banner;
***************
*** 68,72 ****
// downmix stuff
static float cmixlev_lut[4] = { 0.707, 0.595, 0.500, 0.707 };
! static float smixlev_lut[4] = { 0.707, 0.500, 0.0 , 0.500 };
static dm_par_t dm_par;
--- 68,72 ----
// downmix stuff
static float cmixlev_lut[4] = { 0.707, 0.595, 0.500, 0.707 };
! static float smixlev_lut[4] = { 0.707, 0.500, 0.0 , 0.500 };
static dm_par_t dm_par;
***************
*** 151,169 ****
}
!
! void
! ac3_init(void)
{
imdct_init();
sanity_check_init(&syncinfo,&bsi,&audblk);
decode_mute();
#if defined(HAVE_SSE)
! printf("!! libac3: using SSE optimization\n");
#elif defined(HAVE_3DNOWEX)
! printf("!! libac3: using 3dNow-dsp! optimization\n");
#elif defined(HAVE_3DNOW)
! printf("!! libac3: using 3dNow! optimization\n");
#else
! printf("!! libac3: using FPU optimization\n");
#endif
}
--- 151,176 ----
}
! #define AC3VER " (core v0.6.2) "
! void ac3_init(void)
{
+ #if 0
+ // FIXME - don't do that statically here
+ ac3_config.num_output_ch = 2;
+ ac3_config.flags = 0;
+ #endif
imdct_init();
+ memset (&syncinfo, 0, sizeof (syncinfo));
+ memset (&bsi, 0, sizeof (bsi));
+ memset (&audblk, 0, sizeof (audblk));
sanity_check_init(&syncinfo,&bsi,&audblk);
decode_mute();
#if defined(HAVE_SSE)
! printf("!! libac3"AC3VER": using SSE optimization\n");
#elif defined(HAVE_3DNOWEX)
! printf("!! libac3"AC3VER": using 3dNow-dsp! optimization\n");
#elif defined(HAVE_3DNOW)
! printf("!! libac3"AC3VER": using 3dNow! optimization\n");
#else
! printf("!! libac3"AC3VER": using FPU optimization\n");
#endif
}
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list