Enable LIBYUV_UNBIASED_DATA

LIBYUV_UNBIASED_DATA is a new configuration macro introduced in
commit ba68378. It fixes the AR30 rounding bias offset (+24 / -24) for
10-bit YUV to RGB conversions.

Bug: 551985141
Change-Id: Id724d8cabaee441147d998f77034bc3e31c25a9d
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8298160
Reviewed-by: Frank Barchard <fbarchard@google.com>
This commit is contained in:
Wan-Teh Chang 2026-08-26 10:53:36 -07:00 committed by Frank Barchard
parent 50031d294e
commit 086698434d
3 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ PLATFORM_COPTS = select({
"//conditions:default": [], "//conditions:default": [],
}) + [ }) + [
"-DLIBYUV_DISABLE_SME", "-DLIBYUV_DISABLE_SME",
"-DLIBYUV_UNBIASED_DATA",
"-DLIBYUV_USE_ABSL_FLAGS", "-DLIBYUV_USE_ABSL_FLAGS",
"-DGOOGLE_COMMANDLINEFLAGS_FULL_API", "-DGOOGLE_COMMANDLINEFLAGS_FULL_API",
] ]

View File

@ -25,6 +25,7 @@ config("libyuv_config") {
# Define CHROMIUM to tell cpu_id to avoid sandbox unsafe system calls. # Define CHROMIUM to tell cpu_id to avoid sandbox unsafe system calls.
defines = [ "CHROMIUM" ] defines = [ "CHROMIUM" ]
defines += [ "LIBYUV_UNBIASED_DATA" ]
if (libyuv_enable_rowwin) { if (libyuv_enable_rowwin) {
defines += [ "LIBYUV_ENABLE_ROWWIN=1" ] defines += [ "LIBYUV_ENABLE_ROWWIN=1" ]
} }

View File

@ -66,6 +66,8 @@ list ( SORT ly_unittest_sources )
include_directories( BEFORE ${ly_inc_dir} ) include_directories( BEFORE ${ly_inc_dir} )
add_definitions(-DLIBYUV_UNBIASED_DATA)
if(MSVC) if(MSVC)
add_definitions ( -D_CRT_SECURE_NO_WARNINGS ) add_definitions ( -D_CRT_SECURE_NO_WARNINGS )
endif() endif()