]> 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 2891f9434eabfeb1cde66da8add5df356f136599..7e4b7395421d44b33f1e964a8f6b8d44910b7f3a 100644 (file)
@@ -26,6 +26,9 @@
 
 #include <framework/mlt.h>
 
+#include "config.h"
+#include <pthread.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -36,11 +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;
+       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 );
+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();
+
 
 #ifdef __cplusplus
 }