]> git.sesse.net Git - mlt/blobdiff - src/modules/qimage/qimage_wrapper.h
Fix uninitialized pointer read. (coverity-743163)
[mlt] / src / modules / qimage / qimage_wrapper.h
index 7e1711ae95edd286dfc873473aa689e1e41af529..7e4b7395421d44b33f1e964a8f6b8d44910b7f3a 100644 (file)
@@ -27,6 +27,7 @@
 #include <framework/mlt.h>
 
 #include "config.h"
+#include <pthread.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -38,18 +39,25 @@ struct producer_qimage_s
        mlt_properties filenames;
        int count;
        int image_idx;
+       int qimage_idx;
        uint8_t *current_image;
        uint8_t *current_alpha;
        int current_width;
-       int current_height;     
+       int current_height;
+       mlt_cache_item image_cache;
+       mlt_cache_item alpha_cache;
+       mlt_cache_item qimage_cache;
+       void *qimage;
+       mlt_image_format format;
 };
 
 typedef struct producer_qimage_s *producer_qimage;
 
-extern void refresh_qimage( mlt_frame, int width, int height );
-#ifdef USE_KDE
+extern int refresh_qimage( producer_qimage self, mlt_frame frame );
+extern void refresh_image( producer_qimage, mlt_frame, mlt_image_format, int width, int height );
+extern void make_tempfile( producer_qimage, const char *xml );
 extern void init_qimage();
-#endif
+
 
 #ifdef __cplusplus
 }