From c4a43770f731c70272c2938ad32d8f0fd73f3422 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Tue, 21 Jul 2026 18:57:43 -0700 Subject: [PATCH] [libyuv] Use NV12 and NV21 Matrix wrapper macros in convert_argb_test Update JNV12ToABGR, JNV21ToABGR, JNV12ToRAW, and JNV21ToRAW test macros in convert_argb_test.cc to use the public NV12ToABGRMatrix, NV21ToABGRMatrix, NV12ToRAWMatrix, and NV21ToRAWMatrix wrapper macros. Test: libyuv_unittest --gtest_filter=*JNV* Bug: None Change-Id: I53c2496311cb30f621593f8a9d0011e1106ab501 TAG=agy CONV=5daf08a8-11bd-4d47-8c71-c5b7a882a788 --- unit_test/convert_argb_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unit_test/convert_argb_test.cc b/unit_test/convert_argb_test.cc index 7f545a435..20a89dcfd 100644 --- a/unit_test/convert_argb_test.cc +++ b/unit_test/convert_argb_test.cc @@ -460,17 +460,17 @@ TESTPLANARTOB(I444, 1, 1, ARGB, 4, 4, 1) #define JNV21ToARGB(a, b, c, d, e, f, g, h) \ NV21ToARGBMatrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV12ToABGR(a, b, c, d, e, f, g, h) \ - NV21ToARGBMatrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) + NV12ToABGRMatrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV21ToABGR(a, b, c, d, e, f, g, h) \ - NV12ToARGBMatrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) + NV21ToABGRMatrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV12ToRGB24(a, b, c, d, e, f, g, h) \ NV12ToRGB24Matrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV21ToRGB24(a, b, c, d, e, f, g, h) \ NV21ToRGB24Matrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV12ToRAW(a, b, c, d, e, f, g, h) \ - NV21ToRGB24Matrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) + NV12ToRAWMatrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV21ToRAW(a, b, c, d, e, f, g, h) \ - NV12ToRGB24Matrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) + NV21ToRAWMatrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h) #define JNV12ToRGB565(a, b, c, d, e, f, g, h) \ NV12ToRGB565Matrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h)