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

📄 jp2bitspercomp.h

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 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) 2004-2005 Intel Corporation. All Rights Reserved.//////*/#ifndef __JP2BITSPERCOMP_H__#define __JP2BITSPERCOMP_H__#include "ippdefs.h"#include "jp2const.h"class JP2BitsPerComp{public:    JP2BitsPerComp(Ipp8u code = 0) : m_code(code) {}    JP2BitsPerComp(const JP2BitsPerComp &value) : m_code(value.m_code) {}    JP2BitsPerComp& operator=(const JP2BitsPerComp& value)    {        m_code = value.m_code;        return *this;    }    JP2BitsPerComp& operator=(Ipp8u code)    {        m_code = code;        return *this;    }    // NOTE: Actual bit depth is BitDepth + 1;    unsigned int BitDepth()     const { return  m_code & JP2M_BIT_DEPTH; }    bool         IsSigned()     const { return (m_code & JP2M_IS_SIGNED) != 0; }    bool         IsConformant() const { return BitDepth() <= JP2V_MAX_BIT_DEPTH; }    bool operator ==(const JP2BitsPerComp& value) const    {        return m_code == value.m_code;    }    bool operator !=(const JP2BitsPerComp& value) const    {        return !operator==(value);    }protected:    Ipp8u m_code;};#endif // __JP2BITSPERCOMP_H__

⌨️ 快捷键说明

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