What function to use to fill a vpx Image from []byte slice in go using libvpx-go

163 Views Asked by At

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?

0

There are 0 best solutions below