Newbie's question

Hi all,
I am new to use SDL.Now I have a question about how to
use SDL API under RH Linux.
If I have a buffer of original YUV data or RGB data,
how can I draw this buffer onto screen using SDL API to
directly accessing the frame buffer?