summaryrefslogtreecommitdiffstats
path: root/gst/videocrop/gstvideocrop.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-10-04 22:37:07 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-10-04 22:37:07 +0000
commitec674dcbdf726b2dc8ac199e289513233c3d4f11 (patch)
tree8b3aead5245f9c49acf069ece7a5e28077e8103d /gst/videocrop/gstvideocrop.h
parent425c1eecbffec926ed5dae61491458d85fc38599 (diff)
downloadgst-plugins-bad-ec674dcbdf726b2dc8ac199e289513233c3d4f11.tar.gz
gst-plugins-bad-ec674dcbdf726b2dc8ac199e289513233c3d4f11.tar.bz2
gst-plugins-bad-ec674dcbdf726b2dc8ac199e289513233c3d4f11.zip
gst/videocrop/gstvideocrop.*: Handle packed YUV formats (UYVY, YUY2, YUYV) separately; also, fix passthrough mode; la...
Original commit message from CVS: * gst/videocrop/gstvideocrop.c: (gst_video_crop_class_init), (gst_video_crop_init), (gst_video_crop_get_image_details_from_caps), (gst_video_crop_transform_packed_complex), (gst_video_crop_transform_packed_simple), (gst_video_crop_transform), (gst_video_crop_transform_caps), (gst_video_crop_set_caps), (gst_videocrop_clear_negotiated_caps_locked), (gst_video_crop_set_property): * gst/videocrop/gstvideocrop.h: Handle packed YUV formats (UYVY, YUY2, YUYV) separately; also, fix passthrough mode; lastly, clear negotiated basetransform caps when the cropping changes in order to force renegotiation.
Diffstat (limited to 'gst/videocrop/gstvideocrop.h')
-rw-r--r--gst/videocrop/gstvideocrop.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gst/videocrop/gstvideocrop.h b/gst/videocrop/gstvideocrop.h
index 23ffca16..0075997f 100644
--- a/gst/videocrop/gstvideocrop.h
+++ b/gst/videocrop/gstvideocrop.h
@@ -35,19 +35,26 @@ G_BEGIN_DECLS
#define GST_IS_VIDEO_CROP_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_CROP))
+typedef enum {
+ VIDEO_CROP_PIXEL_FORMAT_PACKED_SIMPLE = 0, /* RGBx, AYUV */
+ VIDEO_CROP_PIXEL_FORMAT_PACKED_COMPLEX, /* UYVY, YVYU */
+ VIDEO_CROP_PIXEL_FORMAT_PLANAR /* I420, YV12 */
+} VideoCropPixelFormat;
+
typedef struct _GstVideoCropImageDetails GstVideoCropImageDetails;
struct _GstVideoCropImageDetails
{
/*< private >*/
- gboolean packed; /* TRUE if packed, FALSE if planar */
+ VideoCropPixelFormat packing;
guint width;
guint height;
guint size;
/* for packed RGB and YUV */
- guint stride;
- guint bytes_per_pixel;
+ guint stride;
+ guint bytes_per_pixel;
+ guint8 macro_y_off; /* for YUY2, YVYU, UYVY, Y offset within macropixel in bytes */
/* for planar YUV */
guint y_stride, y_off;