OpenCV 4.10.0
开源计算机视觉
|
#include <opencv2/gapi/oak/oak.hpp>
公共类型 | |
enum class | Profile : int { H264_BASELINE , H264_HIGH , H264_MAIN , H265_MAIN , MJPEG } |
enum class | RateControlMode : int { CBR , VBR } |
公共属性 | |
std::int32_t | bitrate = 8000 |
float | frameRate = 30.0f |
std::int32_t | height = 1080 |
std::int32_t | keyframeFrequency = 30 |
bool | lossless = false |
std::int32_t | maxBitrate = 8000 |
std::int32_t | numBFrames = 0 |
std::uint32_t | numFramesPool = 4 |
Profile | profile = Profile::H265_MAIN |
std::int32_t | quality = 80 |
RateControlMode | rateCtrlMode = RateControlMode::CBR |
std::int32_t | width = 1920 |
|
strong |
|
strong |
std::int32_t cv::gapi::oak::EncoderConfig::bitrate = 8000 |
指定压缩输出比特流的优选比特率(kb)
float cv::gapi::oak::EncoderConfig::frameRate = 30.0f |
帧率
std::int32_t cv::gapi::oak::EncoderConfig::height = 1080 |
输入和压缩输出帧高度
std::int32_t cv::gapi::oak::EncoderConfig::keyframeFrequency = 30 |
每 x 帧插入一个关键帧
bool cv::gapi::oak::EncoderConfig::lossless = false |
无损模式([M]JPEG 仅限)
std::int32_t cv::gapi::oak::EncoderConfig::maxBitrate = 8000 |
指定压缩输出比特流的最大比特率(kb)
std::int32_t cv::gapi::oak::EncoderConfig::numBFrames = 0 |
指定要插入的 B 帧数量
std::uint32_t cv::gapi::oak::EncoderConfig::numFramesPool = 4 |
此选项指定此节点池中可用的帧数(如果接收器节点消耗速度慢,这会有所帮助)
Profile cv::gapi::oak::EncoderConfig::profile = Profile::H265_MAIN |
编码配置文件,H264、H265 或 MJPEG
std::int32_t cv::gapi::oak::EncoderConfig::quality = 80 |
0-100% 之间的值(近似质量)
RateControlMode cv::gapi::oak::EncoderConfig::rateCtrlMode = RateControlMode::CBR |
速率控制模式指定使用恒定比特率还是可变比特率(H264 / H265)
std::int32_t cv::gapi::oak::EncoderConfig::width = 1920 |
输入和压缩输出帧宽度