OpenCV
4.7.0
Open Source Computer Vision
|
#include <opencv2/gapi/oak/oak.hpp>
Public Types | |
enum | Profile : int { Profile::H264_BASELINE, Profile::H264_HIGH, Profile::H264_MAIN, Profile::H265_MAIN, Profile::MJPEG } |
enum | RateControlMode : int { RateControlMode::CBR, RateControlMode::VBR } |
Public Attributes | |
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 |
Specifies preferred bitrate (kb) of compressed output bitstream
float cv::gapi::oak::EncoderConfig::frameRate = 30.0f |
Frame rate
std::int32_t cv::gapi::oak::EncoderConfig::height = 1080 |
Input and compressed output frame height
std::int32_t cv::gapi::oak::EncoderConfig::keyframeFrequency = 30 |
Every x number of frames a keyframe will be inserted
bool cv::gapi::oak::EncoderConfig::lossless = false |
Lossless mode ([M]JPEG only)
std::int32_t cv::gapi::oak::EncoderConfig::maxBitrate = 8000 |
Specifies maximum bitrate (kb) of compressed output bitstream
std::int32_t cv::gapi::oak::EncoderConfig::numBFrames = 0 |
Specifies number of B frames to be inserted
std::uint32_t cv::gapi::oak::EncoderConfig::numFramesPool = 4 |
This options specifies how many frames are available in this nodes pool (can help if receiver node is slow at consuming
Profile cv::gapi::oak::EncoderConfig::profile = Profile::H265_MAIN |
Encoding profile, H264, H265 or MJPEG
std::int32_t cv::gapi::oak::EncoderConfig::quality = 80 |
Value between 0-100% (approximates quality)
RateControlMode cv::gapi::oak::EncoderConfig::rateCtrlMode = RateControlMode::CBR |
Rate control mode specifies if constant or variable bitrate should be used (H264 / H265)
std::int32_t cv::gapi::oak::EncoderConfig::width = 1920 |
Input and compressed output frame width