Frame Write Via SDL

Hello,

I have a piece of code which displays the YUV frames
via SDL_DisplayYUVOverlay function. Is there any other SDL function so that
I can write the content of the displayed video into the file on disk or
should I do it by pure C code?

Thank you,
Maryam

I have a piece of code which displays the YUV frames
via SDL_DisplayYUVOverlay function. Is there any other SDL function so that
I can write the content of the displayed video into the file on disk or
should I do it by pure C code?

Since you talk about DisplayYUVOverlay I suppose you are talking about SDL
1.2.

You can use SDL_WriteBMP(), at least if you disable YUV HW ACCEL,
SDL_putenv(“SDL_VIDEO_YUV_HWACCEL=0”).–
Bye,
Gabry