opencv: use caps constants more

This commit is contained in:
Stefan Sauer 2011-11-18 19:28:26 +01:00
parent 4f69b60ac0
commit b7cb6ecedb
2 changed files with 14 additions and 7 deletions

View file

@ -76,6 +76,7 @@
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstfacedetect.h"
GST_DEBUG_CATEGORY_STATIC (gst_face_detect_debug);
@ -152,13 +153,13 @@ gst_opencv_face_detect_flags_get_type (void)
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb")
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
);
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb")
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
);
GST_BOILERPLATE (GstFaceDetect, gst_face_detect, GstOpencvVideoFilter,

View file

@ -61,13 +61,15 @@
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include "gstmotioncells.h"
#include "motioncells_wrapper.h"
#include <sys/time.h>
#include <time.h>
#include <limits.h>
#include <glib.h>
#include "gstmotioncells.h"
#include "motioncells_wrapper.h"
#include <gst/video/video.h>
GST_DEBUG_CATEGORY_STATIC (gst_motion_cells_debug);
#define GST_CAT_DEFAULT gst_motion_cells_debug
@ -139,10 +141,14 @@ enum
/* the capabilities of the inputs and outputs.
*/
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw-rgb"));
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB));
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw-rgb"));
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB));
GST_BOILERPLATE (GstMotioncells, gst_motion_cells, GstElement,
GST_TYPE_ELEMENT);