Sign in to follow this  

about surface's format!

Recommended Posts

Hi all, I have two questions listing below: 1. When create a surface, we need to select a format for the surface, eg. DDPF_RGB , 0, 16, 0x7C00, 0x03e0, 0x001F, 0}, // 16-bit RGB 5:5:5 DDPF_FOURCC, MAKEFOURCC('U','Y','V','Y'),0,0,0,0,0}, // UYVY and so on. If i create a surface of UYVY, can i copy an RGB image directly onto this surface, or i need convert the image to UYVY first? 2. Now i create a UYVY surface and i copy a buffer of the same type(UYVY too) onto the surface, but it shows incorrectly. What maybe the problem is? Can anybody help me? Thanks in advance!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this