mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
opencv: Fix indention
This commit is contained in:
parent
5e25d41b84
commit
21ea46568b
2 changed files with 11 additions and 11 deletions
|
@ -45,9 +45,9 @@ gst_opencv_get_ipl_depth_and_channels (GstStructure * structure,
|
||||||
info = gst_video_format_get_info (format);
|
info = gst_video_format_get_info (format);
|
||||||
|
|
||||||
if (GST_VIDEO_FORMAT_INFO_IS_RGB (info))
|
if (GST_VIDEO_FORMAT_INFO_IS_RGB (info))
|
||||||
*channels=3;
|
*channels = 3;
|
||||||
else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (info))
|
else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (info))
|
||||||
*channels=1;
|
*channels = 1;
|
||||||
else {
|
else {
|
||||||
g_set_error (err, GST_CORE_ERROR, GST_CORE_ERROR_NEGOTIATION,
|
g_set_error (err, GST_CORE_ERROR, GST_CORE_ERROR_NEGOTIATION,
|
||||||
"Unsupported structure %s", gst_structure_get_name (structure));
|
"Unsupported structure %s", gst_structure_get_name (structure));
|
||||||
|
@ -113,7 +113,7 @@ gst_opencv_parse_iplimage_params_from_caps (GstCaps * caps, gint * width,
|
||||||
*channels = 1;
|
*channels = 1;
|
||||||
else {
|
else {
|
||||||
g_set_error (err, GST_CORE_ERROR, GST_CORE_ERROR_NEGOTIATION,
|
g_set_error (err, GST_CORE_ERROR, GST_CORE_ERROR_NEGOTIATION,
|
||||||
"Unsupported caps %s", gst_caps_to_string(caps));
|
"Unsupported caps %s", gst_caps_to_string (caps));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -158,12 +158,12 @@ static void gst_segmentation_get_property (GObject * object, guint prop_id,
|
||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
static GstFlowReturn gst_segmentation_transform_ip (GstVideoFilter * btrans,
|
static GstFlowReturn gst_segmentation_transform_ip (GstVideoFilter * btrans,
|
||||||
GstVideoFrame *frame);
|
GstVideoFrame * frame);
|
||||||
|
|
||||||
static gboolean gst_segmentation_stop (GstBaseTransform * basesrc);
|
static gboolean gst_segmentation_stop (GstBaseTransform * basesrc);
|
||||||
static gboolean gst_segmentation_set_info(GstVideoFilter *filter,
|
static gboolean gst_segmentation_set_info (GstVideoFilter * filter,
|
||||||
GstCaps *incaps, GstVideoInfo *in_info,
|
GstCaps * incaps, GstVideoInfo * in_info,
|
||||||
GstCaps *outcaps, GstVideoInfo *out_info);
|
GstCaps * outcaps, GstVideoInfo * out_info);
|
||||||
static void gst_segmentation_release_all_pointers (GstSegmentation * filter);
|
static void gst_segmentation_release_all_pointers (GstSegmentation * filter);
|
||||||
|
|
||||||
/* Codebook algorithm + connected components functions*/
|
/* Codebook algorithm + connected components functions*/
|
||||||
|
@ -188,7 +188,7 @@ gst_segmentation_class_init (GstSegmentationClass * klass)
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
GstBaseTransformClass *basesrc_class = GST_BASE_TRANSFORM_CLASS (klass);
|
GstBaseTransformClass *basesrc_class = GST_BASE_TRANSFORM_CLASS (klass);
|
||||||
GstVideoFilterClass *video_class = (GstVideoFilterClass*) klass;
|
GstVideoFilterClass *video_class = (GstVideoFilterClass *) klass;
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
|
|
||||||
|
@ -294,9 +294,9 @@ gst_segmentation_get_property (GObject * object, guint prop_id,
|
||||||
/* GstElement vmethod implementations */
|
/* GstElement vmethod implementations */
|
||||||
/* this function handles the link with other elements */
|
/* this function handles the link with other elements */
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_segmentation_set_info(GstVideoFilter *filter,
|
gst_segmentation_set_info (GstVideoFilter * filter,
|
||||||
GstCaps *incaps, GstVideoInfo *in_info,
|
GstCaps * incaps, GstVideoInfo * in_info,
|
||||||
GstCaps *outcaps, GstVideoInfo *out_info)
|
GstCaps * outcaps, GstVideoInfo * out_info)
|
||||||
{
|
{
|
||||||
GstSegmentation *segmentation = GST_SEGMENTATION (filter);
|
GstSegmentation *segmentation = GST_SEGMENTATION (filter);
|
||||||
CvSize size;
|
CvSize size;
|
||||||
|
|
Loading…
Reference in a new issue