📄 umc_mp3dec_fp.h
字号:
/*//////////////////////////////////////////////////////////////////////////////
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright(c) 2003-2007 Intel Corporation. All Rights Reserved.
//
*/
#ifndef __UMC_MP3DEC_FP_H__
#define __UMC_MP3DEC_FP_H__
#include "ipps.h"
#include "audio_codec_params.h"
#include "mp3_status.h"
#include "umc_audio_codec.h"
#include "vm_types.h"
#include "vm_debug.h"
/* /////////////////////////////////////////////////////////////////////////////
// Class: MP3Decoder
//
*/
struct _MP3Dec;
namespace UMC {
#define MP3_PROFILE_MPEG1 1
#define MP3_PROFILE_MPEG2 2
#define MP3_LEVEL_LAYER1 1
#define MP3_LEVEL_LAYER2 2
#define MP3_LEVEL_LAYER3 3
class MP3Decoder:public AudioCodec {
public:
MP3Decoder();
~MP3Decoder();
Status Init(BaseCodecParams *init);
Status GetFrame(MediaData * in, MediaData * out);
Status Close();
Status Reset();
Status GetInfo(BaseCodecParams * info);
Status SetParams(BaseCodecParams *) {
return UMC_ERR_NOT_IMPLEMENTED;
};
Status GetDuration(Ipp32f *p_duration);
protected:
struct _MP3Dec *state;
cAudioCodecParams params;
Ipp64f m_pts_prev;
MemID stateMemId;
Ipp32s m_mc_lfe_filter_off;
Ipp32s m_syncro_mode;
Status StatusMP3_2_UMC(MP3Status st);
Status MemLock();
Status MemUnlock();
};
} // namespace UMC
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -