I've search a lot on how to fill the vpx.Image
but the only function I saw is vpx_img_read()
that is declare in tools_common.h
. This function is not available in libvpx-go
and also the function takes a FILE*
as argument, not a pointer to byte array.
I did previously called vpx.ImageAlloc
to allocate a vpx.Image buffer. Then what would be the proper way to fill the vpx.Image
from []byte
before encoding?