asticode / go-astiav

Golang ffmpeg and libav C bindings
MIT License
351 stars 38 forks source link

[Feature Request] Add ToImage method to the Frame struct. #22

Closed nnnpa31 closed 1 year ago

nnnpa31 commented 1 year ago

As the title. Add ToImage method to generate go's image.Image via AVFrame. Just like gocv does.

nnnpa31 commented 1 year ago

I have looked at #4 and see why this proposal is not feasible for now.

asticode commented 1 year ago

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.