📄 umc_media_buffer.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-2005 Intel Corporation. All Rights Reserved.//*/#ifndef __UMC_MEDIA_BUFFER_H__#define __UMC_MEDIA_BUFFER_H__#include "umc_structures.h"#include "umc_dynamic_cast.h"#include "umc_media_receiver.h"namespace UMC{class MediaBufferParams : public MediaReceiverParams{ DYNAMIC_CAST_DECL(MediaBufferParams, MediaReceiverParams)public: // Default constructor MediaBufferParams(void) : m_prefInputBufferSize(0), m_numberOfFrames(0), m_prefOutputBufferSize(0) {} size_t m_prefInputBufferSize; // (size_t) preferable size of input potion(s) vm_var32 m_numberOfFrames; // (vm_var32) minimum number of data potion in buffer size_t m_prefOutputBufferSize; // (size_t) preferable size of output potion(s)};class MediaBuffer : public MediaReceiver{ DYNAMIC_CAST_DECL(MediaBuffer, MediaReceiver)public: // Constructor MediaBuffer(void) { m_bDirty = false; } // Destructor virtual ~MediaBuffer(void){} // Lock output buffer virtual Status LockOutputBuffer(MediaData *out) = 0; // Unlock output buffer virtual Status UnLockOutputBuffer(MediaData *out) = 0; bool m_bDirty; // (bool) is the first received data should be ignored};} // end namespace UMC#endif /* __UMC_MEDIA_BUFFER_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -