參考 http://blog.chinaunix.net/uid-8210028-id-338206.html
硬件加速的條件
1)必須使用全屏模式(SDL_FULLSCREEN)
2) 打開雙緩衝(SDL_DOUBLEBUF)
是否真的如此,尚未深入研究
1)搜索不到SDL_putenv函數定義
硬件渲染的代碼
SDL_CreateRenderer(SDL_RENDERER_ACCELERATED);//指定硬件加速
SDL_CreateTexture
SDL_UpdateYUVTexture