⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 umc_aac_encoder_int.h

📁 audio-video-codecs.rar语音编解码器
💻 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_AAC_ENCODER_INT_H__
#define __UMC_AAC_ENCODER_INT_H__

#define NO_FLOAT

#include "umc_media_data.h"
#include "umc_audio_codec.h"

#if defined(LINUX32) || defined(LINUX64) || defined(OSX)
#include "aaccmn_const.h"
#endif

struct _AACEnc;

namespace UMC
{

/* /////////////////////////////////////////////////////////////////////////////
//  Class:       AACEncoderInt
//
//  Notes:       Implementation of AAC encoder.
//
*/

class AACEncoderInt : public AudioCodec {
  DYNAMIC_CAST_DECL(AACEncoderInt, AudioCodec)
public:

  Status Init(BaseCodecParams* init);
  Status Close();

  Status GetFrame(MediaData* in, MediaData* out);

  Status GetInfo(BaseCodecParams* init);

  AACEncoderInt(void);
  ~AACEncoderInt();

  Status SetParams(BaseCodecParams* /*params*/) { return UMC_ERR_NOT_IMPLEMENTED;};
  Status Reset() { return UMC_ERR_NOT_IMPLEMENTED;};
  Status GetDuration(Ipp32f* p_duration);

  IppBool CheckBitRate(Ipp32s br, Ipp32s& idx);

protected:

  struct _AACEnc *state;
  Ipp32s m_channel_number;
  Ipp32s m_sampling_frequency;
  Ipp32s m_bitrate;
  Ipp32s m_adtsProfile;
  Ipp32s m_adtsID;
  enum AudioObjectType m_audioObjectType;
  enum UMC_AACOuputFormat m_outputFormat;

  MemID  stateMemId;

  Status MemLock();
  Status MemUnlock();

  Ipp64f m_pts_prev;
};

}// namespace UMC

#endif /* __UMC_AAC_ENCODER_INT_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -