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

📄 umc_audio_codec.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_AUDIO_CODEC_H__
#define __UMC_AUDIO_CODEC_H__

#include "umc_structures.h"
#include "umc_base_codec.h"
#include "umc_media_data.h"

namespace UMC
{

class AudioCodecParams : public BaseCodecParams
{
    DYNAMIC_CAST_DECL(AudioCodecParams, BaseCodecParams)
public:
    AudioCodecParams();

    AudioStreamInfo m_info_in;                                  // (AudioStreamInfo) original audio stream info
    AudioStreamInfo m_info_out;                                 // (AudioStreamInfo) output audio stream info

    Ipp32u m_frame_num;                                         // (Ipp32u) keeps number of processed frames
};

/******************************************************************************/

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

public:

    // Default constructor
    AudioCodec(void){};
    // Destructor
    virtual ~AudioCodec(void){};

    virtual Status GetDuration(Ipp32f *p_duration)
    {
        p_duration[0] = (Ipp32f)-1.0;
        return UMC_ERR_NOT_IMPLEMENTED;
    }

protected:

    Ipp32u m_frame_num;                                         // (Ipp32u) keeps number of processed frames.
};

/******************************************************************************/

class AudioData: public MediaData
{
    DYNAMIC_CAST_DECL(AudioData, MediaData)

public:
    AudioStreamInfo m_info;
    AudioData()
    {memset(&m_info, 0, sizeof(AudioStreamInfo));}

};

} // namespace UMC

#endif /* __UMC_AUDIO_CODEC_H__ */

⌨️ 快捷键说明

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