encoder: add ability to request keyframes from livestream encoders (#38172)

* add param that requests keyframe

* set keyframe request to false on cleanup

* clean

* timing and errors

* remove other changes

* clean diff

* clean diff

* clean up live adaptation params and functions

* better function names

* fix syntax

* remove unused var

* clean diff
This commit is contained in:
stef
2026-06-15 17:48:13 -04:00
committed by GitHub
parent fafcee04f4
commit 0240a62fd9
10 changed files with 50 additions and 16 deletions
+4
View File
@@ -76,6 +76,10 @@ void FfmpegEncoder::set_bitrate(int bitrate) {
LOGE("adaptive bitrate is not supported for ffmpeg encoder %s", encoder_info.publish_name);
}
void FfmpegEncoder::request_keyframe() {
LOGE("keyframe request is not supported for ffmpeg encoder %s", encoder_info.publish_name);
}
int FfmpegEncoder::encode_frame(VisionBuf* buf, VisionIpcBufExtra *extra) {
assert(buf->width == this->in_width);
assert(buf->height == this->in_height);