-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not an issue #15
Comments
You should probably create an empty image via sod_make_image() and fill each RGB pixel via sod_img_set_pixel() as follows:
|
Thanks for reply, It should work but I tried this way : then sod_img img=sod_img_load_from_mem((const unsigned char*)buf,size,1); img.data is NULL |
sod_img_load_from_mem() require an image header such as PNG, JPEG, BMP, PPM, etc. to be present in order to decode the image into raw pixels. If you already have your raw pixels decoded, you should use the solution above which is quite fast for most scenarios. |
How should we convert an AVFrame (ffmpeg decoding result in RGB format) to sod_img ?
The text was updated successfully, but these errors were encountered: