OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::IStreamReader 类参考抽象类

读取数据流接口。 更多...

#include <opencv2/videoio.hpp>

cv::IStreamReader 的协作图

公共成员函数

virtual ~IStreamReader ()
 
virtual long long read (char *buffer, long long size)=0
 从流中读取字节。
 
virtual long long seek (long long offset, int origin)=0
 设置流的位置。
 

详细描述

读取数据流接口。

构造函数 & 析构函数文档

◆ ~IStreamReader()

virtual cv::IStreamReader::~IStreamReader ( )
virtual

成员函数文档

◆ read()

virtual long long cv::IStreamReader::read ( char * buffer,
long long size )
纯虚函数
Python
cv.IStreamReader.read(buffer, size) -> retval

从流中读取字节。

参数
buffer至少分配了 size 字节的缓冲区
size要读取的最大字节数
返回
实际读取的字节数

cv::PluginStreamReader 中实现。

◆ seek()

virtual long long cv::IStreamReader::seek ( long long offset,
int origin )
纯虚函数
Python
cv.IStreamReader.seek(offset, origin) -> retval

设置流的位置。

参数
offset查找偏移量
originSEEK_SET / SEEK_END / SEEK_CUR
另请参见
fseek

cv::PluginStreamReader 中实现。


本类的文档由以下文件生成