DirectDraw直接显示YV12格式图象 问各位一下,lpDD->CreateSurface(NULL,lpOffscreen,NULL)。发现lpOffscreen这个值为0X00000000。是我的显卡不支持YV12吗?再请问一下各位,如果我要显示直接显示YV12格式,那该怎么做? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 建议检查一下硬件的属性,可以参考下面的代码:DDCAPS ddcaps; ddcaps.dwSize = sizeof DDCAPS; lpDD->GetCaps(&ddcaps, NULL); 然后再查看ddcaps的属性 many Display cards have supported YV12 using DDraw.if it is not supported by your Display Card, Maybe u have to converting the YV12 buffer to RGB buffer, and store the buffer in RGB directdrawsurface, then Blit it. explorer.exe进程、桌面窗口、桌面有什么关系 VC++6.0网络游戏开发规范 多线程的正常返回? 请问在VC哪里设置才能让VC编译产生发布的版本(Release)? 基于FormView的SDI中的窗口最大化问题 请问如何从IHTMLDocument2得到它的文本内容? 还是关于进度对话框 请问这个错误是什么原因引起的?(在线等待) mouse filter driver中如何显示和隐藏Mouse Cursor? 我不小心买了张汉化的VC6,不能用。请把MSDEV.EXE E-mail给我好吗 怎么样获得光驱的名字 求助!请问如果制作音频分析、处理软件
DDCAPS ddcaps;
ddcaps.dwSize = sizeof DDCAPS;
lpDD->GetCaps(&ddcaps, NULL);
然后再查看ddcaps的属性
if it is not supported by your Display Card, Maybe u have to converting the YV12 buffer to RGB buffer, and store the buffer in RGB directdrawsurface, then Blit it.