#include <video_capture.h>
◆ OnIncomingCapturedData()
virtual void AVE::VideoCaptureCVPixelBufferCallback::OnIncomingCapturedData |
( |
void * |
buffer, |
|
|
double |
reference_time_ms |
|
) |
| |
|
pure virtual |
通知SDK采集到视频数据,SDK会同步拷贝数据,切换到内部线程进行编码,如果缓冲队列不够,SDK会自动丢帧
- Parameters
-
data | CVPixelBufferRef转换后的void* |
reference_time_ms | 采集到该帧的时间戳,单位毫秒,不能超过2^52, 用于音画同步,如果采集实现是摄像头,最好使用系统采集回调的原始时间戳,如果不是,最好是生成该帧的UTC时间戳 |
◆ SetFillMode()
virtual void AVE::VideoCaptureCVPixelBufferCallback::SetFillMode |
( |
int |
mode | ) |
|
|
pure virtual |
当时图像宽高和编码宽高的宽高比不一致时使用的填充模式,默认裁剪
- Parameters
-
◆ SetROI()
virtual int AVE::VideoCaptureCVPixelBufferCallback::SetROI |
( |
ROIRect * |
rects, |
|
|
int |
count |
|
) |
| |
|
pure virtual |
设置编码器感兴趣的区域,优化图像主观体验
- Parameters
-
rects | 区域数组,设置NULL清空配置 |
count | 区域个数,最大支持6个,设置0清空配置 |
◆ SetRotation()
virtual void AVE::VideoCaptureCVPixelBufferCallback::SetRotation |
( |
int |
rotation | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: