YUV420帧转Bitmap

上传者: swhuo | 上传时间: 2020-01-18 03:26:26 | 文件大小: 852KB | 文件类型: zip
用海康采集卡做个项目 需要连续抓拍及缓冲图片 用SDK本身提供的图像抓拍太费时 调用间隔较小时导致画面卡顿现象;改用原始图像数据流回调函数RegisterImageStreamCallback进行抓图 但回调函数帧为YUV420格式 需要转成Bitmap才用用于显示及本地查看 在网上找了好多都是基于R Y+1 4075 V 128 G Y 0 3455 U 128 – 0 7169 V 128 B Y+1 779 U 128 公式运算且大多是C语言 改成C#后效率一直不高(尝试过消除浮点运算 查表法等) 后看到MSDN上的转换公式 http: msdn microsoft com en us library aa917087 aspx 后编写了此转换类库 转换一个D1帧 704 576 大约只需60ms左右 压缩包为Vs2010项目带使用示例 ">用海康采集卡做个项目 需要连续抓拍及缓冲图片 用SDK本身提供的图像抓拍太费时 调用间隔较小时导致画面卡顿现象;改用原始图像数据流回调函数RegisterImageStreamCallback进行抓图 但回调函数帧为YUV420格式 需要转成Bitmap才 [更多]

文件下载

资源详情

[{"title":"( 30 个子文件 852KB ) YUV420帧转Bitmap","children":[{"title":"YUV420ToRGB","children":[{"title":"YUV4202RGB.suo <span style='color:#111;'> 23.00KB </span>","children":null,"spread":false},{"title":"YUV4202RGB.gpState <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"YUV4202RGB","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"YUV4202RGB.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"YUV4202RGB.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"YUV4202RGB.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"yuv02.yuv <span style='color:#111;'> 594.00KB </span>","children":null,"spread":false},{"title":"yuv02.bmp <span style='color:#111;'> 1.16MB </span>","children":null,"spread":false},{"title":"YUV4202RGB.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 5.89KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 491B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"YUV4202RGB.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"YUV4202RGB.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 886B </span>","children":null,"spread":false},{"title":"YUV420ToRGB.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.18KB </span>","children":null,"spread":false},{"title":"YUV4202RGB.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"YUV4202RGB.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"YUV4202RGB.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"Form1.cs <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"YUV420.cs <span style='color:#111;'> 8.80KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false},{"title":"YUV420ToRGB.csproj <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"YUV4202RGB.sln <span style='color:#111;'> 874B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • heilong174 :
    不错不错,我己用上,
    2019-12-26
  • yzxliu :
    不错不错,我己用上,
    2018-11-24
  • fanwenjieok :
    经测试可以用,效率提高了不少,720P的图像一帧要90秒左右。
    2018-09-12
  • abill425 :
    好用,谢谢分享
    2018-05-15
  • ulalau :
    不错,很好用,谢谢
    2017-09-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明