Add back 2 patches for histogram and overlayframe that are working correctly and...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / boxblur.h
index 32ef17122ff572503d46b5a8cd9c45e3fcddf0eb..49eb3a577f9e3eccbb0c074a8107219872867bf8 100644 (file)
@@ -1,3 +1,4 @@
+// from ffmpeg vf_boxblur
 #include "boxblur.inc"
 #include "loadbalance.h"
 #include "vframe.h"
@@ -30,18 +31,24 @@ public:
        LoadPackage* new_package();
        void process(VFrame *dst, VFrame *src, int uv,
                int radius, int power, int comp);
-       void hblur(VFrame *dst, VFrame *src,
-               int radius, int power, int comp=-1);
-       void vblur(VFrame *dst, VFrame *src,
-               int radius, int power, int comp=-1);
-       void blur(VFrame *dst, VFrame *src,
-               int radius, int power, int comp=-1);
+       int init_box(VFrame *dst, int x, int y, int w, int h);
+       void hblur(VFrame *dst, VFrame *src, int radius, int power, int comp=-1);
+       void hblur(VFrame *dst, VFrame *src, int radius, int power, int comp,
+               int x, int y, int w, int h);
+       void vblur(VFrame *dst, VFrame *src, int radius, int power, int comp=-1);
+       void vblur(VFrame *dst, VFrame *src, int radius, int power, int comp,
+               int x, int y, int w, int h);
+       void blur(VFrame *dst, VFrame *src, int radius, int power, int comp=-1);
+       void blur(VFrame *dst, VFrame *src, int radius, int power, int comp,
+               int x, int y, int w, int h);
+       int x1, y1, x2, y2;
        const uint8_t *src_data;
        uint8_t *dst_data;
        int src_ustep, dst_ustep;
        int src_vstep, dst_vstep;
        int radius, power, uv;
+       int u1, u2, v1, v2;
        int ulen, vlen, c0, c1;
-       int src_bpp, dst_bpp;
+       int src_bpc, dst_bpc;
 };