I have a Gstreamer pipeline and I don’t want to use any pixel conversion, so what I have is the NV12 format.
I’m using appSync to get the buffer
However the SDL texture has the following spec:
int SDL_UpdateTexture(SDL_Texture * texture,
const SDL_Rect * rect,
const void *pixels, int pitch);
Where pitch is: the number of bytes in a row of pixel data, including padding between lines
How do I calculate the pitch? I thought that it woul be widtth * 2, but I’m getting a segmention fault on my embedded device.
Thank you