Minor code style changes by executing gst-indent in gst/vaapi directory.
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
gst_vaapidecode_sink_query (GstVideoDecoder * vdec, GstQuery * query);
static gboolean
gst_vaapidecode_src_query (GstVideoDecoder * vdec, GstQuery * query);
-static gboolean
-gst_vaapidecode_negotiate (GstVaapiDecode * decode);
+static gboolean gst_vaapidecode_negotiate (GstVaapiDecode * decode);
static void
gst_vaapi_decoder_state_changed (GstVaapiDecoder * decoder,
}
static gboolean
-is_surface_resolution_changed (GstVideoDecoder *vdec, GstVaapiSurface *surface)
+is_surface_resolution_changed (GstVideoDecoder * vdec,
+ GstVaapiSurface * surface)
{
guint surface_width, surface_height;
guint configured_width, configured_height;
GstVideoCodecState *state;
gboolean ret = FALSE;
- gst_vaapi_surface_get_size(surface, &surface_width, &surface_height);
+ gst_vaapi_surface_get_size (surface, &surface_width, &surface_height);
state = gst_video_decoder_get_output_state (vdec);
configured_width = GST_VIDEO_INFO_WIDTH (&state->info);
proxy = gst_video_codec_frame_get_user_data (out_frame);
/* reconfigure if un-cropped surface resolution changed */
- if (is_surface_resolution_changed (vdec, GST_VAAPI_SURFACE_PROXY_SURFACE (proxy)))
+ if (is_surface_resolution_changed (vdec,
+ GST_VAAPI_SURFACE_PROXY_SURFACE (proxy)))
gst_vaapidecode_negotiate (decode);
gst_vaapi_surface_proxy_set_destroy_notify (proxy,
return FALSE;
vaapidecbin->has_vpp = gst_vaapi_display_has_video_processing (display) ?
- HAS_VPP_YES : HAS_VPP_NO;
+ HAS_VPP_YES : HAS_VPP_NO;
gst_vaapi_display_unref (display);
}
static gboolean
-gst_vaapi_decode_bin_reconfigure (GstVaapiDecodeBin* vaapidecbin)
+gst_vaapi_decode_bin_reconfigure (GstVaapiDecodeBin * vaapidecbin)
{
if (!ensure_vpp (vaapidecbin))
return FALSE;
goto bail;
vaapidecbin->has_vpp = gst_vaapi_display_has_video_processing (display) ?
- HAS_VPP_YES : HAS_VPP_NO;
+ HAS_VPP_YES : HAS_VPP_NO;
/* the underlying VA driver implementation doesn't support video
* post-processing, hence we have to disable it */
}
ret = GST_ELEMENT_CLASS (gst_vaapi_decode_bin_parent_class)->change_state
- (element, transition);
+ (element, transition);
if (ret == GST_STATE_CHANGE_FAILURE)
return ret;
}
gboolean
-gst_vaapi_caps_feature_contains (const GstCaps * caps, GstVaapiCapsFeature feature)
+gst_vaapi_caps_feature_contains (const GstCaps * caps,
+ GstVaapiCapsFeature feature)
{
const gchar *feature_str;
vip->fps_n = vi.fps_n;
vip->fps_d = vi.fps_d;
- GST_VIDEO_INFO_MULTIVIEW_MODE (vip) =
- GST_VIDEO_INFO_MULTIVIEW_MODE (&vi);
- GST_VIDEO_INFO_MULTIVIEW_FLAGS (vip) =
- GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vi);
+ GST_VIDEO_INFO_MULTIVIEW_MODE (vip) = GST_VIDEO_INFO_MULTIVIEW_MODE (&vi);
+ GST_VIDEO_INFO_MULTIVIEW_FLAGS (vip) = GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vi);
}
/**
return NULL;
if (GST_VAAPI_PLUGIN_BASE_DISPLAY (sink)) {
- raw_caps = gst_vaapi_plugin_base_get_allowed_raw_caps (GST_VAAPI_PLUGIN_BASE (sink));
+ raw_caps =
+ gst_vaapi_plugin_base_get_allowed_raw_caps (GST_VAAPI_PLUGIN_BASE
+ (sink));
if (raw_caps) {
out_caps = gst_caps_make_writable (out_caps);
gst_caps_append (out_caps, gst_caps_copy (raw_caps));
ret = gst_vaapi_plugin_base_get_input_buffer (GST_VAAPI_PLUGIN_BASE (sink),
src_buffer, &buffer);
if (ret == GST_FLOW_NOT_SUPPORTED)
- return GST_FLOW_OK; /* let's ignore the frame if it couldn't be uploaded */
+ return GST_FLOW_OK; /* let's ignore the frame if it couldn't be uploaded */
if (ret != GST_FLOW_OK)
return ret;
gst_video_info_set_format (&allocator->image_info, GST_VIDEO_FORMAT_I420,
GST_VIDEO_INFO_WIDTH (vinfo), GST_VIDEO_INFO_HEIGHT (vinfo));
else
- allocator->image_info = *vinfo;
+ allocator->image_info = *vinfo;
image = new_image (display, &allocator->image_info);
if (!image)