SDL学习笔记

函数说明


结构体说明



类型说明

SDL_Overlay format:

#define SDL_YV12_OVERLAY  0x32315659  /* Planar mode: Y + V + U */
#define SDL_IYUV_OVERLAY  0x56555949  /* Planar mode: Y + U + V */
#define SDL_YUY2_OVERLAY  0x32595559  /* Packed mode: Y0+U0+Y1+V0 */
#define SDL_UYVY_OVERLAY  0x59565955  /* Packed mode: U0+Y0+V0+Y1 */
#define SDL_YVYU_OVERLAY  0x55595659  /* Packed mode: Y0+V0+Y1+U0 */

SDL_AudioSpec format:

AUDIO_U8           Unsigned 8-bit samples

AUDIO_S8            Signed 8-bit samples
AUDIO_U16LSB    Unsigned 16-bit samples, in little-endian byte order
AUDIO_S16LSB    Signed 16-bit samples, in little-endian byte order
AUDIO_U16MSB    Unsigned 16-bit samples, in big-endian byte order
AUDIO_S16MSB    Signed 16-bit samples, in big-endian byte order
AUDIO_U16           same as AUDIO_U16LSB (for backwards compatability probably)
AUDIO_S16           same as AUDIO_S16LSB (for backwards compatability probably)
AUDIO_U16SYS    Unsigned 16-bit samples, in system byte order
AUDIO_S16SYS     Signed 16-bit samples, in system byte order

你可能感兴趣的:(SDL学习笔记)