64 SDL_FreeYUVOverlay(sdl->
overlay);
87 if (SDL_WasInit(SDL_INIT_VIDEO)) {
89 "SDL video subsystem was already inited, aborting\n");
95 if (SDL_Init(SDL_INIT_VIDEO) != 0) {
118 "Unsupported pixel format '%s', choose one of yuv420p, yuyv422, or uyvy422\n",
167 "SDL does not support an overlay with size of %dx%d pixels\n",
194 SDL_MapRGB(sdl->
surface->format, 0, 0, 0));
195 SDL_LockYUVOverlay(sdl->
overlay);
196 for (i = 0; i < 3; i++) {
200 SDL_DisplayYUVOverlay(sdl->
overlay, &rect);
201 SDL_UnlockYUVOverlay(sdl->
overlay);
203 SDL_UpdateRect(sdl->
surface, rect.x, rect.y, rect.w, rect.h);
208 #define OFFSET(x) offsetof(SDLContext,x)
235 .priv_class = &sdl_class,