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

📄 umc_mp3_encoder.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) 2002-2007 Intel Corporation. All Rights Reserved.
//
*/


#ifndef __UMC_MP3_ENCODER_H__
#define __UMC_MP3_ENCODER_H__

#include "umc_media_data.h"
#include "umc_audio_codec.h"
#include "audio_codec_params.h"
#include "mp3_status.h"

struct _MP3Enc;

namespace UMC {


/* /////////////////////////////////////////////////////////////////////////////
//  Class:       MP3Encoder
//
//  Notes:       Implementation of MPEG-I layer 3 encoder.
//
*/
  class   MP3Encoder:public AudioCodec {
  public:
    Status  Init(BaseCodecParams * init);
    Status  Close();

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

    Status  GetInfo(BaseCodecParams * init);
    Status  GetDuration(Ipp32f *p_duration);

    MP3Encoder(void);
    ~MP3Encoder();

    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;
    Ipp32s  m_id;
    Ipp32s  m_frame_size;
    Ipp32s  m_upsample;
    Ipp32s  m_force_mpeg1;
    Ipp32s  m_mc_matrix_procedure;
    Ipp32s  m_mc_lfe_filter_off;
    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 + -