linux_dev.h

来自「audio-video-codecs.rar语音编解码器」· C头文件 代码 · 共 48 行

H
48
字号
/*
//
//                  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-2006 Intel Corporation. All Rights Reserved.
//
*/

//
//    This file contains class covering Linux /dev situated devices interface
//

#ifndef __LINUX_DEV_H__
#define __LINUX_DEV_H__

#ifdef LINUX32

#include "umc_structures.h"

namespace UMC
{
    class LinuxDev
    {
    public:
        LinuxDev():m_iHandle(-1), m_iMode(0) {}
        virtual ~LinuxDev() { Close(); }

        Status Init(vm_char* szDevName, Ipp32s iMode);
        Status Read(Ipp8u* pbData, Ipp32u uiDataSize,
                    Ipp32u* puiReadSize);
        Status Write(Ipp8u* pbBuffer, Ipp32u uiBufSize,
                     Ipp32u* puiWroteSize);
        Status Ioctl(Ipp32s iReqCode);
        Status Ioctl(Ipp32s iReqCode, void* uiParam);
        void Close();

    protected:
        Ipp32s m_iHandle;
        Ipp32s m_iMode;
    };
};  //  namespace UMC

#endif // LINUX32

#endif // __LINUX_DEV_H__

⌨️ 快捷键说明

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