]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dirac_dwt.h
lavc/mediacodec: fix codec_name leak
[ffmpeg] / libavcodec / dirac_dwt.h
index 1a899b3c3d8c428468c47927ae9c94b5e0692004..4d338651fae2ad02537bd196d095e93f8267a3a6 100644 (file)
@@ -34,6 +34,15 @@ typedef struct DWTCompose {
     int y;
 } DWTCompose;
 
+typedef struct DWTPlane {
+    int width;
+    int height;
+    int stride;
+    uint8_t *buf;
+    uint8_t *buf_base;
+    uint8_t *tmp;
+} DWTPlane;
+
 struct DWTContext;
 
 // Possible prototypes for vertical_compose functions
@@ -76,9 +85,8 @@ enum dwt_type {
 };
 
 // -1 if an error occurred, e.g. the dwt_type isn't recognized
-int ff_spatial_idwt_init(DWTContext *d, uint8_t *buffer, int width, int height,
-                         int stride, enum dwt_type type, int decomposition_count,
-                         uint8_t *temp, int bit_depth);
+int ff_spatial_idwt_init(DWTContext *d, DWTPlane *p, enum dwt_type type,
+                         int decomposition_count, int bit_depth);
 void ff_spatial_idwt_init_x86(DWTContext *d, enum dwt_type type);
 
 void ff_spatial_idwt_slice2(DWTContext *d, int y);