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

📄 umc_dv_internal.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.
//
//
*/
#include "umc_defs.h"
#if defined (UMC_ENABLE_DV_VIDEO_DECODER)

#ifndef __UMC_DV_INTERNAL_H
#define __UMC_DV_INTERNAL_H

#include "umc_dv_sequence.h"

namespace UMC
{

#pragma pack(1)

// See details in ippi manual, Function HuffmanDecodeSegment_DV
class BlockParam
{
public:
    Ipp32u     : 4;                                       // empty bits
    Ipp32u cl  : 2;                                       // quantization class of block
    Ipp32u m0  : 1;                                       // type of block
    Ipp32u     : 9;                                       // empty bits
    Ipp32u qno : 4;                                       // quantization number of block
    Ipp32u     : 12;                                      // empty bits
};

#pragma pack()

inline
Ipp8u SaturateByte(Ipp32s lValue)
{
    if (255 < lValue)
        return 255;
    else if (0 > lValue)
        return 0;

    return static_cast<Ipp8u> (lValue);

} // Ipp8u SaturateByte(Ipp32s lValue)

} // end namespace UMC

#endif // __UMC_DV_INTERNAL_H

#endif //(UMC_ENABLE_DV_VIDEO_DECODER)

⌨️ 快捷键说明

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