umc_dv_internal.h

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

H
54
字号
/*
//              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 + =
减小字号Ctrl + -
显示快捷键?