mp3_hdr.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 29 行
H
29 行
/*****************************************************************
** **
** Copyright (C) 2004 Amlogic,Inc. **
** All rights reserved **
** Filename : mp3_hdr.h /Project:AVOS **
** Revision : 1.0 **
** **
*****************************************************************/
#ifndef _MP3_HDR_H
#define _MP3_HDR_H
#include "aw_msg.h"
int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* mp3_bps);
//int get_mp3_bps();
#define mp_decode_mp3_header(hbuf, mp3_bps) mp_get_mp3_header(hbuf,NULL,NULL, mp3_bps)
static inline int mp_check_mp3_header(unsigned int head, int* mp3_bps){
if( (head & 0x0000e0ff) != 0x0000e0ff ||
(head & 0x00fc0000) == 0x00fc0000) return 0;
if(mp_decode_mp3_header((unsigned char*)(unsigned)(&head),mp3_bps)<=0) return 0;
return 1;
}
int get_ring_stream_info(int fd, int total_size, AUDIO_STREAM_INFO *asi);
#endif /* _MP3_HDR_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?