Files
kryon/tests/android_codec_artifact_test.zi
T
waozi 7293edf7e1 Match the Android codec artifact test to decode-only output
The Android renderer artifact declares WebP, dav1d AVIF and Opus archives,
with libaom reserved for AVIF encoding. Assert the three archives and their
licenses, and link the decode APIs.
2026-11-23 09:52:46 -03:00

13 lines
496 B
Ziran

// Link the decode codec APIs through the dependency-owned Android artifact.
// libaom is encode-only and comes from the encode artifact.
codec :: #system_library "c";
WebPVersion :: () -> s32 #foreign codec "WebPGetDecoderVersion";
AVIFVersion :: () -> *u8 #foreign codec "avifVersion";
OpusVersion :: () -> *u8 #foreign codec "opus_get_version_string";
#program_export
main :: () -> s32 {
if WebPVersion() <= 0 || AVIFVersion() == null || OpusVersion() == null { return 1 }
return 0
}