mirror of https://github.com/mpv-player/mpv
Minor improvements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1046 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a305741d2c
commit
d346c4eff4
|
@ -0,0 +1 @@
|
||||||
|
#include "../libvo/fastmemcpy.h"
|
|
@ -27,6 +27,7 @@
|
||||||
#include "bswap.h"
|
#include "bswap.h"
|
||||||
#include "d_cpu.h"
|
#include "d_cpu.h"
|
||||||
|
|
||||||
|
#include "fastmemcpy.h"
|
||||||
//static FILE* mp3_file=NULL;
|
//static FILE* mp3_file=NULL;
|
||||||
|
|
||||||
int MP3_frames=0;
|
int MP3_frames=0;
|
||||||
|
@ -177,7 +178,7 @@ LOCAL int decode_header(struct frame *fr,unsigned long newhead){
|
||||||
|
|
||||||
// head_check:
|
// head_check:
|
||||||
if( (newhead & 0xffe00000) != 0xffe00000 ||
|
if( (newhead & 0xffe00000) != 0xffe00000 ||
|
||||||
(newhead & 0x0000f300) == 0x0000f300) return FALSE;
|
(newhead & 0x0000fc00) == 0x0000fc00) return FALSE;
|
||||||
|
|
||||||
fr->lay = 4-((newhead>>17)&3);
|
fr->lay = 4-((newhead>>17)&3);
|
||||||
// if(fr->lay!=3) return FALSE;
|
// if(fr->lay!=3) return FALSE;
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_3DNOW
|
#ifdef HAVE_3DNOW
|
||||||
real decwin[2*(512+32)];
|
real decwin[2*(512+32)] __attribute__((aligned(8)));
|
||||||
real cos64[32],cos32[16],cos16[8],cos8[4],cos4[2];
|
real cos64[32] __attribute__((aligned(8)));
|
||||||
|
real cos32[16] __attribute__((aligned(8)));
|
||||||
|
real cos16[8] __attribute__((aligned(8)));
|
||||||
|
real cos8[4] __attribute__((aligned(8)));
|
||||||
|
real cos4[2] __attribute__((aligned(8)));
|
||||||
real *pnts[]={ cos64,cos32,cos16,cos8,cos4 };
|
real *pnts[]={ cos64,cos32,cos16,cos8,cos4 };
|
||||||
#else
|
#else
|
||||||
real decwin[512+32];
|
real decwin[512+32];
|
||||||
|
@ -10,7 +14,7 @@
|
||||||
real *pnts[] = { cos64,cos32,cos16,cos8,cos4 };
|
real *pnts[] = { cos64,cos32,cos16,cos8,cos4 };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
long intwinbase[] = {
|
long intwinbase[] = {
|
||||||
0, -1, -1, -1, -1, -1, -1, -2, -2, -2,
|
0, -1, -1, -1, -1, -1, -1, -2, -2, -2,
|
||||||
-2, -3, -3, -4, -4, -5, -5, -6, -7, -7,
|
-2, -3, -3, -4, -4, -5, -5, -6, -7, -7,
|
||||||
-8, -9, -10, -11, -13, -14, -16, -17, -19, -21,
|
-8, -9, -10, -11, -13, -14, -16, -17, -19, -21,
|
||||||
|
|
Loading…
Reference in New Issue