Forward-declare ArgbConstants in convert.h to fix visibility error

The libyuv into Chromium roller is currently broken, see bug 500795092.

This change adds a forward declaration for struct ArgbConstants in
include/libyuv/convert.h. This resolves a -Wvisibility error where the
struct was being declared within a function prototype, making it
invisible outside that scope and breaking automated binding generation
(e.g., for crabbyavif).

Verified building crabbyavif_libyuv_bindings locally and this patch
fixed it.

Bug: 500795092
Change-Id: Ie0126650ab346940f4610bd4d2e8a5b3ef9ce103
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/7739974
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
This commit is contained in:
Sam Maier 2026-04-08 16:56:22 -04:00 committed by libyuv LUCI CQ
parent 4c3d7d517a
commit e3ceea1e67

View File

@ -25,6 +25,8 @@ namespace libyuv {
extern "C" {
#endif
struct ArgbConstants;
// Convert I444 to I420.
LIBYUV_API
int I444ToI420(const uint8_t* src_y,