This commit is contained in:
2024-05-02 12:12:13 +02:00
commit f63799bc25
14 changed files with 1546 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package avif_example
import "core:fmt"
import "core:os"
import avif "../"
main :: proc() {
if len(os.args) < 2 {
fmt.eprintln("Please provide a path to an avif image.")
os.exit(1)
}
img, err := avif.load_from_file(os.args[1])
if err != nil {
fmt.eprintln(err)
os.exit(1)
}
fmt.println(img)
}