producer_qimage.c, qimage_wrapper.{h,cpp}: enhance qimage producer to use the new...
[melted] / src / modules / qimage / qimage_wrapper.h
index 0f2214d..9c9243e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * qimage_wrapper.h -- a QT/QImage based producer for MLT
- * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
+ * Copyright (C) 2006 Visual Media
  * Author: Charles Yates <charles.yates@gmail.com>
  *
  * NB: This module is designed to be functionally equivalent to the 
@@ -26,6 +26,9 @@
 
 #include <framework/mlt.h>
 
+#include "config.h"
+#include <pthread.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -36,11 +39,21 @@ struct producer_qimage_s
        mlt_properties filenames;
        int count;
        int image_idx;
+       uint8_t *current_image;
+       uint8_t *current_alpha;
+       int current_width;
+       int current_height;
+       mlt_cache_item image_cache;
+       mlt_cache_item alpha_cache;
+       pthread_mutex_t mutex;
 };
 
 typedef struct producer_qimage_s *producer_qimage;
 
-extern void refresh_qimage( mlt_frame, int width, int height );
+extern void refresh_qimage( producer_qimage, mlt_frame, int width, int height );
+#ifdef USE_KDE
+extern void init_qimage();
+#endif
 
 #ifdef __cplusplus
 }