gav1: Support 444 and 422 for 8bit using libyuv
The android platform includes libyuv and we can use that to support
444 and 422 av1 content using the software decoder. This will enable
444 and 422 support for AVIF images as well.
Bug: 261112792
Change-Id: I2e08fa4b760fcb772a97be6ee62259d8762b2c12
Test: decode images on an oriole device
diff --git a/media/codec2/components/gav1/Android.bp b/media/codec2/components/gav1/Android.bp
index 162339f..9781b6d 100644
--- a/media/codec2/components/gav1/Android.bp
+++ b/media/codec2/components/gav1/Android.bp
@@ -21,7 +21,10 @@
],
srcs: ["C2SoftGav1Dec.cpp"],
- static_libs: ["libgav1"],
+ static_libs: [
+ "libgav1",
+ "libyuv_static",
+ ],
apex_available: [
"//apex_available:platform",