mirror of
https://github.com/IllusionMan1212/avif-odin.git
synced 2026-10-24 10:12:28 +00:00
initial
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user