Initial version of the actual am7xxxsink
[gst-am7xxxsink.git] / src / gstam7xxxsink.h
index 59075be..cab2bd6 100644 (file)
@@ -1,5 +1,5 @@
 /* GStreamer
 /* GStreamer
- * Copyright (C) 2007 Sean D'Epagnier sean@depagnier.com
+ * Copyright (C) 2013  Antonio Ospite <ospite@studenti.unina.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -25,7 +25,7 @@
 #include <gst/video/gstvideosink.h>
 #include <gst/video/video.h>
 
 #include <gst/video/gstvideosink.h>
 #include <gst/video/video.h>
 
-#include <linux/fb.h>
+#include <am7xxx.h>
 
 G_BEGIN_DECLS
 
 
 G_BEGIN_DECLS
 
@@ -46,19 +46,15 @@ typedef struct _GstAM7XXXSinkClass GstAM7XXXSinkClass;
 struct _GstAM7XXXSink {
   GstVideoSink videosink;
 
 struct _GstAM7XXXSink {
   GstVideoSink videosink;
 
-  /*< private >*/
-  struct fb_fix_screeninfo fixinfo;
-  struct fb_var_screeninfo varinfo;
+  unsigned int device_index;
 
 
-  int fd;
-  unsigned char *framebuffer;
+  unsigned int width, height;
 
 
-  char *device;
+  am7xxx_context *ctx;
+  am7xxx_device *dev;
 
 
-  int width, height;
-  int cx, cy, linelen, lines, bytespp;
-
-  int fps_n, fps_d;
+  am7xxx_image_format format;
+  am7xxx_device_info device_info;
 };
 
 struct _GstAM7XXXSinkClass {
 };
 
 struct _GstAM7XXXSinkClass {