I am working with android, i received data of yuv420p format from the file through ffmpeg.
I tried Converting the frame into RGB, and i dont know how to update the texture? When i had YUV format, i used SDL_UpdateYUVTexture.
Do we have any API similarly to RGB format Updation ?
SDL_UpdateTexture needs SDL_Surface, what i have as a data is in the YUYV format raw data received from ffmpeg. Given a RGB24 format raw buffer, i want to update or lock/unlock
texture.
Try rendering a test image in YUV and RGB and see if it works, if yes then something is wrong with the data from ffmpeg if no then something is wrong with rendering YUV so you might want to try something else or make your own renderer using OpenGL ES.
In case if the error is with ffmpeg frame, then it would have made the same pink color image in other mobiles as well. Interesting part is it worke even in SAMSUNG DUEOS, but the issue is with SAMSUNG GALAXY S3
In case if the error is with ffmpeg frame, then it would have made the same pink color image in other mobiles as well. Interesting part is it worke even in SAMSUNG DUEOS, but the issue is with SAMSUNG GALAXY S3
Well given the differences in hardware/android version it could go either way soo after testing at least you know where to look at.