mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +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 =
|
err =
|
||||||
gst_omx_component_set_config (self->enc,
|
gst_omx_component_set_config (self->enc,
|
||||||
OMX_IndexConfigBrcmVideoRequestIFrame, &config);
|
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
|
#else
|
||||||
OMX_CONFIG_INTRAREFRESHVOPTYPE config;
|
OMX_CONFIG_INTRAREFRESHVOPTYPE config;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue