Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions gxf/codec/video_encoder/videoencoder_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,23 +749,22 @@ gxf_result_t VideoEncoderRequest::setEncoderParameters() {
"Failed to set encoder bitrate")
}

CHECK_ENCODER_ERROR(setIDRInterval(impl_->ctx, impl_->ctx->idr_interval),
"Failed to set IDR interval")

CHECK_ENCODER_ERROR(setIFrameInterval(impl_->ctx, impl_->ctx->iframe_interval),
"Failed to set IFrame Interval")
CHECK_ENCODER_ERROR(setMaxPerfMode(impl_->ctx, true),
"Failed to set Max performance mode")
}
CHECK_ENCODER_ERROR(setIDRInterval(impl_->ctx, impl_->ctx->idr_interval),
"Failed to set IDR interval")

CHECK_ENCODER_ERROR(setNumBFrames(impl_->ctx, impl_->ctx->num_of_bframes),
"Failed to set number of B Frames")
CHECK_ENCODER_ERROR(setIFrameInterval(impl_->ctx, impl_->ctx->iframe_interval),
"Failed to set IFrame Interval")

CHECK_ENCODER_ERROR(setInsertSpsPpsAtIdrEnabled(impl_->ctx, true),
"Failed to set encoder SPSPPS at IDR")
CHECK_ENCODER_ERROR(setNumBFrames(impl_->ctx, impl_->ctx->num_of_bframes),
"Failed to set number of B Frames")

CHECK_ENCODER_ERROR(setMaxPerfMode(impl_->ctx, true),
"Failed to set Max performance mode")
CHECK_ENCODER_ERROR(setInsertSpsPpsAtIdrEnabled(impl_->ctx, true),
"Failed to set encoder SPSPPS at IDR")

CHECK_ENCODER_ERROR(insertVUI(impl_->ctx, true), "Failed to Insert VUI")
}
CHECK_ENCODER_ERROR(insertVUI(impl_->ctx, true), "Failed to Insert VUI")
return GXF_SUCCESS;
}

Expand Down