umc_aac_decoder.h
来自「这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数」· C头文件 代码 · 共 87 行
H
87 行
/*//// 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-2005 Intel Corporation. All Rights Reserved.//*/#ifndef __AAC_DECODER_H__#define __AAC_DECODER_H__#include "umc_audio_codec.h"#include "vm_types.h"#include "umc_dynamic_cast.h"#include "ippac.h"#include "aac_dec.h"#include "aaccmn_adif.h"#include "aaccmn_adts.h"#include "audio_codec_params.h"#include "sbrdec.h"namespace UMC { class AACDecoderParams:public AudioCodecParams { public: AACDecoderParams(void) { ModeDecodeHEAACprofile = HEAAC_HQ_MODE; ModeDwnmxHEAACprofile = HEAAC_DWNSMPL_OFF; }; int ModeDecodeHEAACprofile; int ModeDwnmxHEAACprofile; }; class AACDecoder:public AudioCodec { DYNAMIC_CAST_DECL(AACDecoder, AudioCodec); public: enum DecodeMode { DM_UNDEF_STREAM = 0, DM_RAW_STREAM, DM_ADTS_STREAM }; AACDecoder(); ~AACDecoder(void); Status Init(BaseCodecParams * init); Status GetFrame(MediaData * in, MediaData * out); Status Close(); Status Reset(); Status GetInfo(BaseCodecParams * info); Status SetParams(BaseCodecParams * params); Status GetDuration(float *p_duration); protected: Status StatusAAC_2_UMC(AACStatus st); AACDec *state; cAudioCodecParams params; sAdif_header m_adif_header; sAdts_fixed_header m_adts_fixed_header; sAdts_variable_header m_adts_variable_header; double m_pts_prev; int initSubtype; unsigned int adts_sw; struct { AudioStreamType m_init_stream_type; size_t m_init_config_data_size; DecodeMode m_decode_mode; int m_sampling_frequency_index; unsigned long m_channel_config; int m_frame_number; AudioObjectType m_audio_object_type; AudioStreamSubType m_stream_subtype; } m_info; };}; // namespace UMC#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?