feat: 支持高通 iris v4l2m2m 硬件编码器

- 新增高通平台检测,避免 Amlogic v4l2m2m 检测误判
- 对高通 Iris 编码器调整 GOP 和 capture buffers
- 强制关键帧仅在高通 Iris 之外启用
This commit is contained in:
a15355447898
2026-08-03 02:40:15 +00:00
committed by SilentWind
parent d613739b06
commit 1d48d45592
4 changed files with 105 additions and 7 deletions

View File

@@ -379,12 +379,12 @@ private:
frame->pts = ms;
// Force keyframe if requested
if (force_keyframe_) {
if (force_keyframe_ && util_encode::supports_forced_keyframe(name_)) {
frame->pict_type = AV_PICTURE_TYPE_I;
force_keyframe_ = false;
} else {
frame->pict_type = AV_PICTURE_TYPE_NONE;
}
force_keyframe_ = false;
ret = avcodec_send_frame(c_, frame);
if (ret == AVERROR(EAGAIN)) {