Closed nnnpa31 closed 1 year ago
As the title. Add ToImage method to generate go's image.Image via AVFrame. Just like gocv does.
ToImage
image.Image
I have looked at #4 and see why this proposal is not feasible for now.
FYI Frame.Data() now returns a *FrameData that allows to either get data as []byte or, if it's an image, get data as an image.Image.
[]byte
As the title. Add
ToImage
method to generate go'simage.Image
via AVFrame. Just like gocv does.