mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
omxvideoenc: Add dynamic IDR insertion support on zynq
As the pi, the zynq has its own API to request keyframe.
This commit is contained in:
parent
9dc359d0c1
commit
09ad21b26c
1 changed files with 9 additions and 0 deletions
|
@ -2810,6 +2810,15 @@ gst_omx_video_enc_handle_frame (GstVideoEncoder * encoder,
|
|||
err =
|
||||
gst_omx_component_set_config (self->enc,
|
||||
OMX_IndexConfigBrcmVideoRequestIFrame, &config);
|
||||
#elif USE_OMX_TARGET_ZYNQ_USCALE_PLUS
|
||||
OMX_ALG_VIDEO_CONFIG_INSERT config;
|
||||
|
||||
GST_OMX_INIT_STRUCT (&config);
|
||||
config.nPortIndex = self->enc_out_port->index;
|
||||
|
||||
GST_DEBUG_OBJECT (self, "Forcing a keyframe");
|
||||
err = gst_omx_component_set_config (self->enc, (OMX_INDEXTYPE)
|
||||
OMX_ALG_IndexConfigVideoInsertInstantaneousDecodingRefresh, &config);
|
||||
#else
|
||||
OMX_CONFIG_INTRAREFRESHVOPTYPE config;
|
||||
|
||||
|
|
Loading…
Reference in a new issue