Files
kryon/tests/android_codec_artifact_test.zi
T
waoziandClaude Opus 5.5 e05146b3ba Host Android apps that run their own frame loop
kryon/android_runtime keeps NativeActivity lifecycle and input in the host
while the application's main owns its loop, widgets and pacing:
PollAndroidHost, BeginAndroidFrame and EndAndroidFrame present Pixmap's
device-pixel damage. The host calls the application's C main by symbol, so
generated C never declares main with Ziran's argument types. Pixmap's
RasterSetTransform and RasterPointFromPixels share one camera for painting
and input.

kryon/pixmap_assets_android decodes owned PNG, WebP and AVIF pictures on
first use, and kryon/pixmap_typefaces_android shapes text with Android Paint
and Canvas through the ordinary typeface_source capabilities.

The renderer-desktop artifact also builds Android ARMv7 and AArch64 codec
archives and the shared AVIF bridge, pinned to AVIF 2611e727.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 13:30:41 -03:00

14 lines
522 B
Ziran

// Link all four codec APIs through the dependency-owned Android artifact.
codec :: #system_library "c";
WebPVersion :: () -> s32 #foreign codec "WebPGetDecoderVersion";
AVIFVersion :: () -> *u8 #foreign codec "avifVersion";
AOMVersion :: () -> s32 #foreign codec "aom_codec_version";
OpusVersion :: () -> *u8 #foreign codec "opus_get_version_string";
#program_export
main :: () -> s32 {
if WebPVersion() <= 0 || AVIFVersion() == null ||
AOMVersion() <= 0 || OpusVersion() == null { return 1 }
return 0
}