📄 umc_data_writer.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-2006 Intel Corporation. All Rights Reserved.
//
*/
#ifndef __UMC_DATA_WRITER_H__
#define __UMC_DATA_WRITER_H__
/*
// Class: DataWriter
//
// Notes: Base abstract class of data writer. Class describes
// the high level interface of abstract source of data.
// All specific ( reading from file, from network, inernet, etc ) must be implemented in
// derevied classes.
// Splitter uses this class to obtain data
//
*/
#include "umc_structures.h"
#include "umc_dynamic_cast.h"
namespace UMC
{
class DataWriterParams
{
DYNAMIC_CAST_DECL_BASE(DataWriterParams)
public:
// Default constructor
DataWriterParams(void){}
// Destructor
virtual ~DataWriterParams(void){}
};
class DataWriter
{
DYNAMIC_CAST_DECL_BASE(DataWriter)
public:
// Default constructor
DataWriter(void){}
// Destructor
virtual ~DataWriter(void){}
// Initialization abstract destination media
virtual Status Init(DataWriterParams *InitParams) = 0;
// Close destination media
virtual Status Close(void) = 0;
// Reset all internal parameters to start writing from begin
virtual Status Reset(void) = 0;
// Write data to output stream
virtual Status PutData(void *data, Ipp32s &nsize) = 0;
// Set current position in destination media
virtual Status SetPosition(Ipp32u /* nPosLow */,
Ipp32u * /* pnPosHigh */,
Ipp32u /* nMethod */)
{ return UMC_ERR_FAILED; }
// Get current position in destination media
virtual Status GetPosition(Ipp32u * /* pnPosLow */, Ipp32u * /* pnPosHigh */)
{ return UMC_ERR_FAILED; }
};
} // namespace UMC
#endif /* __UMC_DATA_WRITER_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -