mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-10-28 18:07:12 +08:00
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:
parent
50031d294e
commit
086698434d
@ -52,6 +52,7 @@ PLATFORM_COPTS = select({
|
||||
"//conditions:default": [],
|
||||
}) + [
|
||||
"-DLIBYUV_DISABLE_SME",
|
||||
"-DLIBYUV_UNBIASED_DATA",
|
||||
"-DLIBYUV_USE_ABSL_FLAGS",
|
||||
"-DGOOGLE_COMMANDLINEFLAGS_FULL_API",
|
||||
]
|
||||
|
||||
1
BUILD.gn
1
BUILD.gn
@ -25,6 +25,7 @@ config("libyuv_config") {
|
||||
|
||||
# Define CHROMIUM to tell cpu_id to avoid sandbox unsafe system calls.
|
||||
defines = [ "CHROMIUM" ]
|
||||
defines += [ "LIBYUV_UNBIASED_DATA" ]
|
||||
if (libyuv_enable_rowwin) {
|
||||
defines += [ "LIBYUV_ENABLE_ROWWIN=1" ]
|
||||
}
|
||||
|
||||
@ -66,6 +66,8 @@ list ( SORT ly_unittest_sources )
|
||||
|
||||
include_directories( BEFORE ${ly_inc_dir} )
|
||||
|
||||
add_definitions(-DLIBYUV_UNBIASED_DATA)
|
||||
|
||||
if(MSVC)
|
||||
add_definitions ( -D_CRT_SECURE_NO_WARNINGS )
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user