Dirac needs this function
---
 libavcodec/dwt.c |    8 ++++----
 libavcodec/dwt.h |    3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/libavcodec/dwt.c b/libavcodec/dwt.c
index 4f43819..0e69acb 100644
--- a/libavcodec/dwt.c
+++ b/libavcodec/dwt.c
@@ -377,8 +377,8 @@ static void vertical_compose53iH0(IDWTELEM *b0, IDWTELEM 
*b1, IDWTELEM *b2,
         b1[i] += (b0[i] + b2[i]) >> 1;
 }
 
-static void vertical_compose53iL0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,
-                                  int width)
+void ff_vertical_compose53iL0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,
+                              int width)
 {
     int i;
 
@@ -428,7 +428,7 @@ static void spatial_compose53i_dy_buffered(DWTCompose *cs, 
slice_buffer *sb,
         }
     } else {
         if (y + 1 < (unsigned)height)
-            vertical_compose53iL0(b1, b2, b3, width);
+            ff_vertical_compose53iL0(b1, b2, b3, width);
         if (y + 0 < (unsigned)height)
             vertical_compose53iH0(b0, b1, b2, width);
     }
@@ -454,7 +454,7 @@ static void spatial_compose53i_dy(DWTCompose *cs, IDWTELEM 
*buffer,
     IDWTELEM *b3 = buffer + mirror(y + 2, height - 1) * stride;
 
     if (y + 1 < (unsigned)height)
-        vertical_compose53iL0(b1, b2, b3, width);
+        ff_vertical_compose53iL0(b1, b2, b3, width);
     if (y + 0 < (unsigned)height)
         vertical_compose53iH0(b0, b1, b2, width);
 
diff --git a/libavcodec/dwt.h b/libavcodec/dwt.h
index 1d01d59..b41e128 100644
--- a/libavcodec/dwt.h
+++ b/libavcodec/dwt.h
@@ -112,4 +112,7 @@ void ff_spatial_idwt(IDWTELEM *buffer, IDWTELEM *temp, int 
width, int height,
 void ff_dwt_init(DWTContext *c);
 void ff_dwt_init_x86(DWTContext *c);
 
+void ff_vertical_compose53iL0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,
+                              int width);
+
 #endif /* AVCODEC_DWT_H */
-- 
1.7.10.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to