Index: source/libvpx/third_party/libyuv/include/libyuv/convert_from.h |
diff --git a/source/libvpx/third_party/libyuv/include/libyuv/convert_from.h b/source/libvpx/third_party/libyuv/include/libyuv/convert_from.h |
index d6c0e3d8703e8c1a384e8db3eab4779a6e1331d3..9fd8d4de5f3fef5c1e23704f4a331d9367e4456c 100644 |
--- a/source/libvpx/third_party/libyuv/include/libyuv/convert_from.h |
+++ b/source/libvpx/third_party/libyuv/include/libyuv/convert_from.h |
@@ -137,6 +137,17 @@ int I420ToRGB565(const uint8* src_y, int src_stride_y, |
uint8* dst_frame, int dst_stride_frame, |
int width, int height); |
+// Convert I420 To RGB565 with 4x4 dither matrix (16 bytes). |
+// Values in dither matrix from 0 to 7 recommended. |
+// The order of the dither matrix is first byte is upper left. |
+ |
+LIBYUV_API |
+int I420ToRGB565Dither(const uint8* src_y, int src_stride_y, |
+ const uint8* src_u, int src_stride_u, |
+ const uint8* src_v, int src_stride_v, |
+ uint8* dst_frame, int dst_stride_frame, |
+ const uint8* dither4x4, int width, int height); |
+ |
LIBYUV_API |
int I420ToARGB1555(const uint8* src_y, int src_stride_y, |
const uint8* src_u, int src_stride_u, |