From 990cc4ef256d26cf0ff7617dbdea1a988e35fa84 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Tue, 21 Jul 2026 18:53:03 -0700 Subject: [PATCH] [libyuv] Fix JNV12 and JNV21 macros in convert_argb_test Fix JNV12ToABGR, JNV21ToABGR, JNV12ToRAW, and JNV21ToRAW macros in convert_argb_test.cc to call their respective NV12 and NV21 matrix functions directly without inverted NV12/NV21 cross-mapping. 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..c0b949b8e 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) -#define JNV21ToABGR(a, b, c, d, e, f, g, h) \ NV12ToARGBMatrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) +#define JNV21ToABGR(a, b, c, d, e, f, g, h) \ + NV21ToARGBMatrix(a, b, c, d, e, f, &kYvuJPEGConstants, 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) -#define JNV21ToRAW(a, b, c, d, e, f, g, h) \ NV12ToRGB24Matrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) +#define JNV21ToRAW(a, b, c, d, e, f, g, h) \ + NV21ToRGB24Matrix(a, b, c, d, e, f, &kYvuJPEGConstants, g, h) #define JNV12ToRGB565(a, b, c, d, e, f, g, h) \ NV12ToRGB565Matrix(a, b, c, d, e, f, &kYuvJPEGConstants, g, h)