![]() |
OpenCV 4.12.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 |
輸入和壓縮輸出幀寬度