mediafoundation: Disable querying supprted maximum resolution
Initializing MFT for checking supported maximum resolution is too slow. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/760>
This commit is contained in:
parent
565817abd8
commit
912b2d7af9
@ -1232,6 +1232,10 @@ gst_mf_h264_enc_plugin_init_internal (GstPlugin * plugin, guint rank,
|
|||||||
|
|
||||||
GST_DEBUG_OBJECT (transform, "Check supported resolutions of %s",
|
GST_DEBUG_OBJECT (transform, "Check supported resolutions of %s",
|
||||||
device_name);
|
device_name);
|
||||||
|
|
||||||
|
/* FIXME: This would take so long time.
|
||||||
|
* Need to find smart way to find supported resolution*/
|
||||||
|
#if 0
|
||||||
for (i = 0; i < G_N_ELEMENTS (resolutions_to_check); i++) {
|
for (i = 0; i < G_N_ELEMENTS (resolutions_to_check); i++) {
|
||||||
guint width, height;
|
guint width, height;
|
||||||
|
|
||||||
@ -1259,6 +1263,10 @@ gst_mf_h264_enc_plugin_init_internal (GstPlugin * plugin, guint rank,
|
|||||||
GST_WARNING_OBJECT (transform, "Couldn't query supported resolution");
|
GST_WARNING_OBJECT (transform, "Couldn't query supported resolution");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
/* FIXME: don't hardcode supported resolution */
|
||||||
|
max_width = max_height = 8192;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* high profile supported since windows8 */
|
/* high profile supported since windows8 */
|
||||||
src_caps = gst_caps_from_string ("video/x-h264, "
|
src_caps = gst_caps_from_string ("video/x-h264, "
|
||||||
|
@ -1003,6 +1003,9 @@ gst_mf_h265_enc_plugin_init_internal (GstPlugin * plugin, guint rank,
|
|||||||
if (!gst_mf_result (hr))
|
if (!gst_mf_result (hr))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
/* FIXME: This would take so long time.
|
||||||
|
* Need to find smart way to find supported resolution*/
|
||||||
|
#if 0
|
||||||
for (i = 0; i < G_N_ELEMENTS (resolutions_to_check); i++) {
|
for (i = 0; i < G_N_ELEMENTS (resolutions_to_check); i++) {
|
||||||
guint width, height;
|
guint width, height;
|
||||||
|
|
||||||
@ -1030,6 +1033,10 @@ gst_mf_h265_enc_plugin_init_internal (GstPlugin * plugin, guint rank,
|
|||||||
GST_WARNING_OBJECT (transform, "Couldn't query supported resolution");
|
GST_WARNING_OBJECT (transform, "Couldn't query supported resolution");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
/* FIXME: don't hardcode supported resolution */
|
||||||
|
max_width = max_height = 8192;
|
||||||
|
#endif
|
||||||
|
|
||||||
src_caps = gst_caps_from_string ("video/x-h265, "
|
src_caps = gst_caps_from_string ("video/x-h265, "
|
||||||
"stream-format=(string) byte-stream, "
|
"stream-format=(string) byte-stream, "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user