aboutsummaryrefslogtreecommitdiff
path: root/include/libyuv/planar_functions.h
diff options
context:
space:
mode:
authorEvan Shrubsole <eshr@google.com>2020-12-03 16:38:18 +0100
committerFrank Barchard <fbarchard@chromium.org>2020-12-08 18:54:16 +0000
commitdfaf7534e0e536f7e5ef8ddd7326797bd09b8622 (patch)
tree6ebc6de1a8f7279bcfbfe0f54b87ce39c69d3139 /include/libyuv/planar_functions.h
parentad890067f661dc747a975bc55ba3767fe30d4452 (diff)
downloadlibyuv-dfaf7534e0e536f7e5ef8ddd7326797bd09b8622.tar.gz
NV12 Copy, include scale_uv.h
Bug: None Change-Id: I8148def3f1253913eb62fcc000e5f72704262a17 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2569748 Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'include/libyuv/planar_functions.h')
-rw-r--r--include/libyuv/planar_functions.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libyuv/planar_functions.h b/include/libyuv/planar_functions.h
index 9e0038f4..8d868b95 100644
--- a/include/libyuv/planar_functions.h
+++ b/include/libyuv/planar_functions.h
@@ -200,6 +200,16 @@ int I444Copy(const uint8_t* src_y,
int width,
int height);
+// Copy NV12. Supports inverting.
+int NV12Copy(const uint8_t* src_y, int src_stride_y, const uint8_t* src_uv,
+ int src_stride_uv, uint8_t* dst_y, int dst_stride_y,
+ uint8_t* dst_uv, int dst_stride_uv, int width, int height);
+
+// Copy NV21. Supports inverting.
+int NV21Copy(const uint8_t* src_y, int src_stride_y, const uint8_t* src_vu,
+ int src_stride_vu, uint8_t* dst_y, int dst_stride_y,
+ uint8_t* dst_vu, int dst_stride_vu, int width, int height);
+
// Convert YUY2 to I422.
LIBYUV_API
int YUY2ToI422(const uint8_t* src_yuy2,