📄 umc_speech_decoder.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) 2006 Intel Corporation. All Rights Reserved.
//
*/
#ifndef __UMC_SPEECH_DECODER_H__
#define __UMC_SPEECH_DECODER_H__
#include "umc_media_data.h"
#include "usc.h"
#include "umc_speech_codec.h"
#include "umc_speech_mediadata.h"
#include "umc_amr_transform_defs.h"
#define CHECK_POINTER(p) { if((p) == NULL) return (UMC_ERR_NULL_PTR); }
#define CHECK_STATUS(p) { if(UMC_OK != (p)) return UMC_ERR_FAILED; }
#define SET_DATA(p, f, b, n) {p.SetFrameType(f); p.SetBitrate(b); p.SetNBytes(n);}
namespace UMC
{
class SpeechDecoder : public USCDecoder
{
DYNAMIC_CAST_DECL(SpeechDecoder, USCDecoder);
public:
~SpeechDecoder();
SpeechDecoder(USC_Fxns *FNS) : USCDecoder(FNS)
{ m_pDataBuffer = NULL; m_CurrentBitrate = 12200;};
Status GetFrame(MediaData *in, MediaData *out);
Status Init(BaseCodecParams *init);
private:
Status PackToSpeechMediaData(MediaData* pData);
Status UnpackFromSpeechMediaData(MediaData* pData);
SpeechMediaData m_SpeechDataIn;
SpeechMediaData m_SpeechDataOut;
Ipp8u* m_pDataBuffer;
Ipp8u m_aReorderedData[256];
Ipp32s m_CurrentBitrate;
};
};// namespace UMC
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -