mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
d3d11: Run indent
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2131>
This commit is contained in:
parent
62d09f73b7
commit
fb226f4733
3 changed files with 17 additions and 8 deletions
|
@ -427,7 +427,7 @@ static GstFlowReturn gst_d3d11_av1_dec_new_sequence (GstAV1Decoder * decoder,
|
|||
static GstFlowReturn gst_d3d11_av1_dec_new_picture (GstAV1Decoder * decoder,
|
||||
GstVideoCodecFrame * frame, GstAV1Picture * picture);
|
||||
static GstAV1Picture *gst_d3d11_av1_dec_duplicate_picture (GstAV1Decoder *
|
||||
decoder, GstVideoCodecFrame * frame, GstAV1Picture * picture);
|
||||
decoder, GstVideoCodecFrame * frame, GstAV1Picture * picture);
|
||||
static GstFlowReturn gst_d3d11_av1_dec_start_picture (GstAV1Decoder * decoder,
|
||||
GstAV1Picture * picture, GstAV1Dpb * dpb);
|
||||
static GstFlowReturn gst_d3d11_av1_dec_decode_tile (GstAV1Decoder * decoder,
|
||||
|
|
|
@ -549,8 +549,7 @@ gst_d3d11_screen_capture_src_decide_allocation (GstBaseSrc * bsrc,
|
|||
/* d3d11 buffer pool will update buffer size based on allocated texture,
|
||||
* get size from config again */
|
||||
config = gst_buffer_pool_get_config (pool);
|
||||
gst_buffer_pool_config_get_params (config,
|
||||
nullptr, &size, nullptr, nullptr);
|
||||
gst_buffer_pool_config_get_params (config, nullptr, &size, nullptr, nullptr);
|
||||
gst_structure_free (config);
|
||||
|
||||
if (!self->downstream_supports_d3d11) {
|
||||
|
|
|
@ -692,9 +692,13 @@ gst_d3d11_video_sink_key_event (GstD3D11Window * window, const gchar * event,
|
|||
if (self->enable_navigation_events) {
|
||||
GST_LOG_OBJECT (self, "send key event %s, key %s", event, key);
|
||||
if (0 == g_strcmp0 ("key-press", event))
|
||||
key_event = gst_navigation_event_new_key_press (key, GST_NAVIGATION_MODIFIER_NONE);
|
||||
key_event =
|
||||
gst_navigation_event_new_key_press (key,
|
||||
GST_NAVIGATION_MODIFIER_NONE);
|
||||
else if (0 == g_strcmp0 ("key-release", event))
|
||||
key_event = gst_navigation_event_new_key_release (key, GST_NAVIGATION_MODIFIER_NONE);
|
||||
key_event =
|
||||
gst_navigation_event_new_key_release (key,
|
||||
GST_NAVIGATION_MODIFIER_NONE);
|
||||
|
||||
if (event)
|
||||
gst_navigation_send_event_simple (GST_NAVIGATION (self), key_event);
|
||||
|
@ -711,11 +715,17 @@ gst_d3d11_video_mouse_key_event (GstD3D11Window * window, const gchar * event,
|
|||
GST_LOG_OBJECT (self,
|
||||
"send mouse event %s, button %d (%.1f, %.1f)", event, button, x, y);
|
||||
if (0 == g_strcmp0 ("mouse-button-press", event))
|
||||
mouse_event = gst_navigation_event_new_mouse_button_press (button, x, y, GST_NAVIGATION_MODIFIER_NONE);
|
||||
mouse_event =
|
||||
gst_navigation_event_new_mouse_button_press (button, x, y,
|
||||
GST_NAVIGATION_MODIFIER_NONE);
|
||||
else if (0 == g_strcmp0 ("mouse-button-release", event))
|
||||
mouse_event = gst_navigation_event_new_mouse_button_release (button, x, y, GST_NAVIGATION_MODIFIER_NONE);
|
||||
mouse_event =
|
||||
gst_navigation_event_new_mouse_button_release (button, x, y,
|
||||
GST_NAVIGATION_MODIFIER_NONE);
|
||||
else if (0 == g_strcmp0 ("mouse-move", event))
|
||||
mouse_event = gst_navigation_event_new_mouse_move (x, y, GST_NAVIGATION_MODIFIER_NONE);
|
||||
mouse_event =
|
||||
gst_navigation_event_new_mouse_move (x, y,
|
||||
GST_NAVIGATION_MODIFIER_NONE);
|
||||
|
||||
if (event)
|
||||
gst_navigation_send_event_simple (GST_NAVIGATION (self), mouse_event);
|
||||
|
|
Loading…
Reference in a new issue