OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::gapi::oak::EncoderConfig 結構參考

#include <opencv2/gapi/oak/oak.hpp>

cv::gapi::oak::EncoderConfig 的協作圖

公共型別

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
 

成員列舉文件

◆ Profile

enum class cv::gapi::oak::EncoderConfig::Profile : int
strong

編碼配置檔案,H264、H265 或 MJPEG

列舉器
H264_BASELINE 
H264_HIGH 
H264_MAIN 
H265_MAIN 
MJPEG 

◆ RateControlMode

位元速率控制模式指定應使用恆定位元速率還是可變位元速率 (H264 / H265)

列舉器
CBR 
VBR 

成員資料文件

◆ bitrate

std::int32_t cv::gapi::oak::EncoderConfig::bitrate = 8000

指定壓縮輸出碼流的首選位元速率 (kb)

◆ frameRate

float cv::gapi::oak::EncoderConfig::frameRate = 30.0f

幀率

◆ height

std::int32_t cv::gapi::oak::EncoderConfig::height = 1080

輸入和壓縮輸出幀高度

◆ keyframeFrequency

std::int32_t cv::gapi::oak::EncoderConfig::keyframeFrequency = 30

每隔 x 幀插入一個關鍵幀

◆ lossless

bool cv::gapi::oak::EncoderConfig::lossless = false

無損模式(僅 [M]JPEG)

◆ maxBitrate

std::int32_t cv::gapi::oak::EncoderConfig::maxBitrate = 8000

指定壓縮輸出碼流的最大位元速率 (kb)

◆ numBFrames

std::int32_t cv::gapi::oak::EncoderConfig::numBFrames = 0

指定要插入的 B 幀的數量

◆ numFramesPool

std::uint32_t cv::gapi::oak::EncoderConfig::numFramesPool = 4

此選項指定此節點池中有多少幀可用(如果接收器節點消耗速度慢,則可能有用)

◆ profile

Profile cv::gapi::oak::EncoderConfig::profile = Profile::H265_MAIN

編碼配置檔案,H264、H265 或 MJPEG

◆ quality

std::int32_t cv::gapi::oak::EncoderConfig::quality = 80

值介於 0-100% 之間(近似質量)

◆ rateCtrlMode

RateControlMode cv::gapi::oak::EncoderConfig::rateCtrlMode = RateControlMode::CBR

位元速率控制模式指定應使用恆定位元速率還是可變位元速率 (H264 / H265)

◆ width

std::int32_t cv::gapi::oak::EncoderConfig::width = 1920

輸入和壓縮輸出幀寬度


此結構的文件是從以下檔案生成的