SDL_UpdateTexture and NV12
yoann <[email protected]> Thu, 12 Jan 2017 19:57:23 +0800 (CST)
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone, I have a SDL_PIXELFORMAT_NV12 texture that I would like to fill with an ffmpeg AVFrame with AV_PIX_FMT_NV12 pixel format. Passing the frame data with SDL_UpdateTexture(texture, NULL, frame->data[0], frame->linesize[0]) seems to work for the Y plane since I can see my image but mixes up UV channel, I have red and green images blinking alternatively on my screen. Even if I have created my texture with SDL_PIXELFORMAT_NV12, have I to split my UV pixel data into different planes for SDL_UpdateTexture to process it ? Yoann _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org