📄 umc_byte_iterator.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_BYTE_ITERATOR_H__
#define __UMC_BYTE_ITERATOR_H__
#include "umc_defs.h"
#if defined (UMC_ENABLE_H264_SPLITTER)
#include "ippdefs.h"
#include "umc_structures.h"
#include "umc_media_data.h"
namespace UMC
{
/**
* Simple iterator
*/
class ByteIterator
{
public:
ByteIterator(MediaData & p_data);
~ByteIterator();
Status Increment(Ipp8u & o_byte);
private:
MediaData & m_data;
};
/**
* The byte iterator with H.264 prevention support
*/
class PrevH264ByteIterator
{
private:
typedef enum PrevH264State
{
H264_PREV_NONE = 0,
H264_PREV_00 = 1,
H264_PREV_00_00 = 2
} PrevH264State;
public:
PrevH264ByteIterator(MediaData & p_data);
virtual ~PrevH264ByteIterator();
Status Increment(Ipp8u & o_byte);
private:
MediaData & m_data;
PrevH264State m_state;
Ipp32s m_iStart;
};
} // namespace UMC
#endif // UMC_ENABLE_H264_SPLITTER
#endif // __UMC_BYTE_ITERATOR_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -