videolevels: add support for 8- and 16-bit Bayer

Since GstVideoFilter doesn't support Bayer, most work was in reverting back to GstBaseTransform
This commit is contained in:
Joshua M. Doe
2018-07-10 14:38:53 -04:00
parent 5d58db5e9e
commit 44dfc350f0
3 changed files with 249 additions and 147 deletions

View File

@@ -25,7 +25,7 @@
#ifndef __GST_VIDEO_LEVELS_H__
#define __GST_VIDEO_LEVELS_H__
#include <gst/video/gstvideofilter.h>
#include <gst/base/gstbasetransform.h>
#include <gst/video/video.h>
G_BEGIN_DECLS
@@ -67,12 +67,16 @@ typedef enum {
*/
struct _GstVideoLevels
{
GstVideoFilter element;
GstBaseTransform element;
/* format */
gint width;
gint height;
gint bpp_in;
GstVideoInfo info_in;
GstVideoInfo info_out;
gint bpp_out;
gint endianness_in;
gint stride_in;
gint stride_out;
/* properties */
gint lower_input;
@@ -97,7 +101,7 @@ struct _GstVideoLevels
struct _GstVideoLevelsClass
{
GstVideoFilterClass parent_class;
GstBaseTransformClass parent_class;
};
GType gst_videolevels_get_type(void);