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

📄 umc_ac3_decoder.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-2006 Intel Corporation. All Rights Reserved.
//
*/

#ifndef __AC3_DECODER_H__
#define __AC3_DECODER_H__

#include "ippdefs.h"
#include "umc_audio_codec.h"
#include "umc_dynamic_cast.h"

#include "ac3_dec_status.h"
#include "audio_codec_params.h"

struct _AC3Dec;

namespace UMC {

  // profile and level definitions for aac
  // values for profile and level fields in BaseCodecParams
#define AC3_PROFILE_MAIN  0

#define AC3_LEVEL_MAIN    0

  class   AC3DecoderParams:public AudioCodecParams {
    DYNAMIC_CAST_DECL(AC3DecoderParams, AudioCodecParams)
  public:
    AC3DecoderParams(void) {
      out_acmod      = 0;
      outlfeon       = 0;
      dualmonomode   = 0;
      drc_scaleLow   = 1;
      drc_scaleHigh  = 1;
      out_compmod    = 0;
      karaokeCapable = 3;
      crc_mute       = 0;
      gainScale      = 1;
    };
    Ipp32s  dualmonomode;
    Ipp32s  out_acmod;
    Ipp32s  outlfeon;
    Ipp32s  out_compmod;
    Ipp32s  karaokeCapable;
    Ipp32s  crc_mute;
    Ipp32f  drc_scaleLow;
    Ipp32f  drc_scaleHigh;
    Ipp32f  gainScale;
  };

  class   AC3Decoder:public AudioCodec {
    DYNAMIC_CAST_DECL(AC3Decoder, AudioCodec);
  public:

    AC3Decoder();
    ~AC3Decoder(void);

    Status  Init(BaseCodecParams * init);
    Status  GetFrame(MediaData * in, MediaData * out);
    Status  Close();
    Status  Reset();
    Status  GetInfo(BaseCodecParams * info);
    Status  GetDuration(Ipp32f *p_duration);
    Status  SetParams(BaseCodecParams * params);

protected:
    struct _AC3Dec *state;
    cAudioCodecParams params;
    Ipp64f  m_pts_prev;
    MemID  stateMemId;

    Status StatusAC3_2_UMC(AC3Status st);
    Status MemLock();
    Status MemUnlock();
  };
}       // namespace UMC

#endif

⌨️ 快捷键说明

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