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

📄 umc_h264_syntax_reader.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_H264_SYNTAX_READER_H__
#define __UMC_H264_SYNTAX_READER_H__

#include "umc_defs.h"
#if defined (UMC_ENABLE_H264_SPLITTER)

#include "umc_structures.h"
#include "umc_media_data.h"
#include "umc_byte_iterator.h"

namespace UMC
{
    /**
     * The generic syntax reader for H.264
     */
    class H264_SyntaxReader : public PrevH264ByteIterator
    {

    public:
        H264_SyntaxReader( MediaData & p_data ) ;
        virtual ~H264_SyntaxReader(void);

    private:

        Status LoadByte();
        Ipp32s GetBitIncrement();
        Status CountGolombLength(Ipp32s & o_iLength);

    public:

        /**
         * Reads u(v)
         */
        Status ReadU(Ipp32u p_iWidth, Ipp32u & o_int);

        /**
        * Reads ue(v)
        */
        Status ReadUE(Ipp32u & o_int);

        /**
        * Reads se(v)
        */
        Status ReadSE(Ipp32s & o_int);

    private:
        // bit offset in the m_cData byte
        Ipp32u m_iBitOffset;
        // currently parsed byte
        Ipp8u m_cData;

    };
} // namespace UMC

#endif // UMC_ENABLE_H264_SPLITTER
#endif // __UMC_H264_SYNTAX_READER_H__

⌨️ 快捷键说明

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