📄 umc_mp3_enc_int.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) 2002-2007 Intel Corporation. All Rights Reserved.
//
*/
#ifndef __UMC_MP3_ENC_INT_H__
#define __UMC_MP3_ENC_INT_H__
#include "umc_media_data.h"
#include "umc_audio_codec.h"
#include "audio_codec_params.h"
#include "mp3_status.h"
#include "vm_debug.h"
struct _MP3Enc;
namespace UMC {
/* /////////////////////////////////////////////////////////////////////////////
// Class: MP3Encoder
//
// Notes: Implementation of MPEG-I layer 3 encoder.
//
*/
class MP3EncoderInt:public AudioCodec {
public:
Status Init(BaseCodecParams *init);
Status Close();
Status GetFrame(MediaData *in, MediaData *out);
Status GetInfo(BaseCodecParams *init);
Status GetDuration(Ipp32f *p_duration);
MP3EncoderInt(void);
~MP3EncoderInt();
Status SetParams(BaseCodecParams * params);
Status Reset();
IppBool CheckBitRate(Ipp32s sample_rate,
Ipp32s layer,
Ipp32s bitrate,
Ipp32s stereo);
protected:
struct _MP3Enc *state;
Ipp32s m_stereo;
Ipp32s m_freq;
Ipp32s m_layer;
Ipp32s m_bitrate;
Ipp32s m_br_mode;
Ipp32s m_stereo_mode;
Ipp32s m_ns_mode;
Ipp64f m_pts_prev;
MemID stateMemId;
Status StatusMP3_2_UMC(MP3Status st);
Status MemLock();
Status MemUnlock();
};
} // namespace UMC
#endif /* __UMC_MP3_ENCODER_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -