videolevels: use more of the video library

But gst_video_format_get_component_depth is broken in 0.10.36, so manually
get bpp for now.
This commit is contained in:
Joshua M. Doe
2012-06-26 02:00:36 -04:00
parent a8a1f57fe3
commit af6cdbd8f1
3 changed files with 909 additions and 93 deletions

View File

@@ -26,6 +26,7 @@
#define __GST_VIDEO_LEVELS_H__
#include <gst/video/gstvideofilter.h>
#include <gst/video/video.h>
G_BEGIN_DECLS
@@ -72,15 +73,10 @@ struct _GstVideoLevels
gint width;
gint height;
guint stride_in;
GstVideoFormat format_in;
GstVideoFormat format_out;
gint bpp_in;
gint depth_in;
gint endianness_in;
guint stride_out;
gint bpp_out;
gint depth_out;
gint endianness_out;
/* properties */
gdouble lower_input;