tizen 2.3 release
[framework/multimedia/gst-plugins-ext0.10.git] / evaspixmapsink / evaspixmapsink.h
old mode 100644 (file)
new mode 100755 (executable)
similarity index 97%
rename from mobile/evaspixmapsink/evaspixmapsink.h
rename to evaspixmapsink/evaspixmapsink.h
index 9bbacca..25d8495
@@ -25,7 +25,6 @@
 #define __GST_EVASPIXMAPSINK_H__
 
 #include <gst/video/gstvideosink.h>
-#include <mm_ta.h>
 
 #ifdef HAVE_XSHM
 #include <sys/types.h>
@@ -57,6 +56,8 @@
 #include <math.h>
 #include <stdlib.h>
 
+//#define DUMP_IMG
+
 #define MAX_PLANE_NUM          3
 #define MAX_BUFFER_NUM         20
 #define MAX_GEM_BUFFER_NUM     (MAX_PLANE_NUM * MAX_BUFFER_NUM)
@@ -141,7 +142,7 @@ struct _GstXContext {
 
        Window root;
 
-       gulong white, black;
+       gulong white;
 
        gint depth;
        gint bpp;
@@ -284,6 +285,7 @@ struct _GstEvasPixmapSink {
 
        /* size of incoming video, used as the size for XvImage */
        guint video_width, video_height;
+       gboolean need_to_fill_black;
 
        /* display sizes, used for clipping the image */
        gint disp_x, disp_y;
@@ -323,7 +325,7 @@ struct _GstEvasPixmapSink {
        gboolean visible;
        gint last_updated_idx;
        gchar update_visibility;
-       guint epipe_request_count;
+       gint epipe_request_count;
 
        /* pixmap */
        gboolean do_link;
@@ -340,6 +342,16 @@ struct _GstEvasPixmapSink {
 
        gint drm_fd;
        gem_info_t gem_info[MAX_GEM_BUFFER_NUM];
+
+  /* if needed combine planes data */
+       gint need_combine_data;
+
+       GstVideoRectangle src_prev;
+       GstVideoRectangle result_prev;
+
+#ifdef DUMP_IMG
+       void *pixmap_addr[NUM_OF_PIXMAP];
+#endif
 };
 
 /* max plane count *********************************************************/