mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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
2 changed files with 15 additions and 0 deletions
|
@ -1232,6 +1232,10 @@ gst_mf_h264_enc_plugin_init_internal (GstPlugin * plugin, guint rank,
|
|||
|
||||
GST_DEBUG_OBJECT (transform, "Check supported resolutions of %s",
|
||||
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++) {
|
||||
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");
|
||||
goto done;
|
||||
}
|
||||
#else
|
||||
/* FIXME: don't hardcode supported resolution */
|
||||
max_width = max_height = 8192;
|
||||
#endif
|
||||
|
||||
/* high profile supported since windows8 */
|
||||
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))
|
||||
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++) {
|
||||
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");
|
||||
goto done;
|
||||
}
|
||||
#else
|
||||
/* FIXME: don't hardcode supported resolution */
|
||||
max_width = max_height = 8192;
|
||||
#endif
|
||||
|
||||
src_caps = gst_caps_from_string ("video/x-h265, "
|
||||
"stream-format=(string) byte-stream, "
|
||||
|
|
Loading…
Reference in a new issue