Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: include/libyuv/row.h

Issue 2277603004: Add SplitUVPlanes and MergeUVPlanes (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/libyuv/row.h
diff --git a/include/libyuv/row.h b/include/libyuv/row.h
index f7b09b108245851fc9833a4b42690df9cd0be6b0..32b3d58e9fb6a885f2ee43f0faa12e27c0b71c3a 100644
--- a/include/libyuv/row.h
+++ b/include/libyuv/row.h
@@ -843,6 +843,13 @@ void SplitUVRow_Any_NEON(const uint8* src_uv, uint8* dst_u, uint8* dst_v,
int width);
void SplitUVRow_Any_DSPR2(const uint8* src_uv, uint8* dst_u, uint8* dst_v,
int width);
+typedef void (*SplitUVRowFunction)(const uint8 *src_uv, uint8 *dst_u,
fbarchard1 2016/08/24 23:04:10 make private to planar_functions.cc
fbarchard1 2016/08/24 23:11:50 Done.
+ uint8 *dst_v, int width);
+SplitUVRowFunction GetOptimizedSplitUVRowFunction(
+ const uint8 *src_uv, int src_stride_uv,
+ const uint8 *dst_u, int dst_stride_u,
+ const uint8 *dst_v, int dst_stride_v,
+ int width);
void MergeUVRow_C(const uint8* src_u, const uint8* src_v, uint8* dst_uv,
int width);
@@ -858,6 +865,9 @@ void MergeUVRow_Any_AVX2(const uint8* src_u, const uint8* src_v, uint8* dst_uv,
int width);
void MergeUVRow_Any_NEON(const uint8* src_u, const uint8* src_v, uint8* dst_uv,
int width);
+typedef void (*MergeUVRowFunction)(const uint8 *src_u, const uint8 *src_v,
+ uint8 *dst_uv, int width);
+MergeUVRowFunction GetOptimizedMergeUVRowFunction(int width);
void CopyRow_SSE2(const uint8* src, uint8* dst, int count);
void CopyRow_AVX(const uint8* src, uint8* dst, int count);

Powered by Google App Engine
This is Rietveld 408576698