Hi Aryan,
Yes, the AVIF_CHROMA_DOWNSAMPLING_SHARP_YUV option requires that
libavif be built with the libsharpyuv library.
libavif/CMakeLists.txt uses libsharpyuv automatically if it is
present. So libsharpyuv needs to be either installed as a system
library or available locally in libavif/ext/libwebp/ (by running the
script libavif/ext/libsharpyuv.cmd and then passing
-DAVIF_LOCAL_LIBSHARPYUV=ON to libavif's cmake command). Please give
this a try.
There is another library that libavif/CMakeLists.txt treats in exactly
this way -- libyuv. If libyuv is installed as a system library or
available locally in libavif/ext/libyuv/ (by running the script
libavif/ext/libyuv.cmd and then passing -DAVIF_LOCAL_LIBYUV=ON to
libavif's cmake command), libavif/CMakeLists.txt will use it
automatically.
Wan-Teh