view libmpdemux/mp3_hdr.h @ 5337:0bd1c35aa42c

byte interleaving for mga untested (no g200 mga or whatever i would need ...) experimental sse2 version (even less tested as no p4 either ...) sse2 version would need 16-byte aligned src & dst else sig11 sse2 version is disabled by default
author michael
date Mon, 25 Mar 2002 16:35:24 +0000
parents 701976d7a7d1
children e29f95ed5d36
line wrap: on
line source


int mp_decode_mp3_header(unsigned char* hbuf);

static inline int mp_check_mp3_header(unsigned int head){
    if( (head & 0x0000e0ff) != 0x0000e0ff ||  
        (head & 0x00fc0000) == 0x00fc0000) return 0;
    if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0;
    return 1;
}