diff options
author | Zeeshan Ali <zeenix@gmail.com> | 2004-01-11 22:16:49 +0000 |
---|---|---|
committer | Zeeshan Ali <zeenix@gmail.com> | 2004-01-11 22:16:49 +0000 |
commit | 7c663da045a703cf8863142a6dffd755d36120f3 (patch) | |
tree | c1fe11b9df7e69011fa57317ae4d1f5882a0a292 /ext/libcaca/gstcacasink.h | |
parent | 4ec54daec56cff8b5dec3138621b3d66e47d1ef9 (diff) |
It should work now, but it does'nt (All i see is a black-window) :(
Original commit message from CVS:
It should work now, but it does'nt (All i see is a black-window) :(
Diffstat (limited to 'ext/libcaca/gstcacasink.h')
-rw-r--r-- | ext/libcaca/gstcacasink.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/ext/libcaca/gstcacasink.h b/ext/libcaca/gstcacasink.h index fd3829a6..3a6e7bfe 100644 --- a/ext/libcaca/gstcacasink.h +++ b/ext/libcaca/gstcacasink.h @@ -22,6 +22,7 @@ #define __GST_CACASINK_H__ #include <gst/gst.h> +#include <gst/video/gstvideosink.h> #include <gst/video/video.h> #include <caca.h> @@ -30,13 +31,16 @@ extern "C" { #endif /* __cplusplus */ +#define GST_CACA_DEFAULT_SCREEN_WIDTH 80 +#define GST_CACA_DEFAULT_SCREEN_HEIGHT 25 +#define GST_CACA_DEFAULT_BPP 24 +#define GST_CACA_DEFAULT_RED_MASK R_MASK_32_INT +#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32_INT +#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32_INT -#define GST_CACA_DEFAULT_IMAGE_WIDTH 320 -#define GST_CACA_DEFAULT_IMAGE_HEIGHT 240 -#define GST_CACA_DEFAULT_BPP 32 -#define GST_CACA_DEFAULT_RED_MASK R_MASK_32 -#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32 -#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32 +//#define GST_CACA_DEFAULT_RED_MASK R_MASK_32_REVERSE_INT +//#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32_REVERSE_INT +//#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32_REVERSE_INT #define GST_TYPE_CACASINK \ (gst_cacasink_get_type()) @@ -59,31 +63,26 @@ typedef struct _GstCACASink GstCACASink; typedef struct _GstCACASinkClass GstCACASinkClass; struct _GstCACASink { - GstElement element; + GstVideoSink videosink; GstPad *sinkpad; gulong format; gint screen_width, screen_height; - gint image_width, image_height; guint bpp; guint dither; guint red_mask, green_mask, blue_mask; - gint frames_displayed; - guint64 frame_time; - - GstClock *clock; + gint64 correction; + GstClockID id; struct caca_bitmap *bitmap; }; struct _GstCACASinkClass { - GstElementClass parent_class; + GstVideoSinkClass parent_class; /* signals */ - void (*frame_displayed) (GstElement *element); - void (*have_size) (GstElement *element, guint width, guint height); }; GType gst_cacasink_get_type(void); |