How to display the 320*240*24(bpp) image into a 640*480*24(bpp) window?

I have a problem how to fill a smaller video_frame data to a larger window?
For example,
Firstly, I have known the below:
unsigned char * pBuff; ( the pointer to data buffer, it is successfully initiated at before)
int nBuffLen=230400; (3202403)
int nFrameWidth=320;
int nFrameHeight=240;
int nPixedBpp=24; (3 bytes)

Secondly, I want to fill the video image into the whole window which is 640(width)*480(heigh), how to write the code? Should I build a SDL_Surface which is 320*240*24 or 640*480*24?
 
Thanks a lot.

Or, my question is how to scale a image to window?

???
Best Regards
Zhou, Yubao
E-mail: @Zhou_Yubao

Or, my question is how to scale a image to window?

you can use zoomSurface() from the SDL_gfx additional library.
or you can try by yourself, 2x zoom is pretty simple

GautierOn Sun, 16 Jan 2005 20:47:40 +0800, Zhou, Yubao wrote: