Start work on rendering images with Go

This commit is contained in:
Kovid Goyal 2023-01-01 13:08:57 +05:30
parent 24db38ba7e
commit 7f866b2b1f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 18 additions and 0 deletions

12
tools/cmd/icat/native.go Normal file
View File

@ -0,0 +1,12 @@
// License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
package icat
import (
"fmt"
)
var _ = fmt.Print
func render_image_with_go(imgd *image_data, src *opened_input) {
}

View File

@ -251,6 +251,12 @@ func process_arg(arg input_arg) {
send_output(&imgd)
return
}
err = render_image_with_go(imgd, &f)
if err != nil {
report_error(arg.value, "Could not render image to RGB", err)
return
}
send_output(&imgd)
}