<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_zealsoft</title><subtitle type="text">享受</subtitle><id>http://feed.cnblogs.com/blog/u/7315/rss</id><updated>2010-11-16T14:33:10Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/7315/rss"/><entry><id>http://www.cnblogs.com/zealsoft/archive/2010/11/16/1879029.html</id><title type="text">视频捕捉的格式问题</title><summary type="text">这几天一个学生在调试视频捕捉程序的时候遇到了一个问题。他使用capGetVideoFormat函数获得视频的格式时，发现m_bmpinfo.bmiHeader.biBitCount为16，他认为这是表示16位的RGB格式。可是不管他是使用RGB565，还是RGB555格式进行转换时，发现转换后的YUV文件都是不对的。在我的Sony笔记本上运行他的程序，其中的m_bmpinfo.bmiHeader....</summary><published>2010-11-16T14:33:00Z</published><updated>2010-11-16T14:33:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2010/11/16/1879029.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2010/11/16/1879029.html"/><content type="html">&lt;p&gt;&lt;span  style="font-family: Simsun; line-height: normal; font-size: medium; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;这几天一个学生在调试视频捕捉程序的时候遇到了一个问题。他使用capGetVideoFormat函数获得视频的格式时，发现m_bmpinfo.bmiHeader.biBitCount为16，他认为这是表示16位的RGB格式。可是不管他是使用RGB565，还是RGB555格式进行转换时，发现转换后的YUV文件都是不对的。在我的Sony笔记本上运行他的程序，其中的m_bmpinfo.bmiHeader.biCompression的值为1498831189，这说明笔记本的摄像头所采集的数据的格式并不是普通的16位RGB数据，而是UYVY格式的。UYVY格式是YUV格式的一个变种，在网上可以找到详细的说明，在此就不赘述了。&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span  style="font-family: Simsun; line-height: normal; font-size: medium; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;要想知道biCompression到底有多少种取值，可以参考一下：&lt;a href="http://files.codes-sources.com/fichier.aspx?id=45735&amp;amp;f=src/org/hypik/webcamlib/codecs/Codecs.java"&gt;http://files.codes-sources.com/fichier.aspx?id=45735&amp;amp;f=src/org/hypik/webcamlib/codecs/Codecs.java&lt;/a&gt;。在这里详细的列出了各种视频压缩的编码。&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span  style="font-family: Simsun; line-height: normal; font-size: medium; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;怎样才能知道自己的摄像头到底支持哪种格式的输出呢？可以使用capDlgVideoFormat函数：&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&#xD;
&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding-left:5px;padding-right:5px;"&gt;&#xD;
&lt;div&gt;&lt;!--&lt;br/ /&gt;&#xD;
&lt;br/ /&gt;&#xD;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br/ /&gt;&#xD;
http://www.CodeHighlighter.com/&lt;br/ /&gt;&#xD;
&lt;br/ /&gt;&#xD;
--&gt;&lt;span style="color: #000000;"&gt;capDlgVideoFormat(m_wndVideo);&lt;/span&gt;&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span  style="font-family: Simsun; line-height: normal; font-size: medium; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 这个函数会激活摄像头驱动的视频格式设置对话框，如下图所示。&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p style="text-align: center;"&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/zealsoft/videoformat.JPG" width="464" height="267" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;我的这个摄像头支持2种输出格式，一种是UYVY，另一种是YUV2。 如果将m_bmpinfo.bmiHeader.biCompression设置为这两种之外的值，再使用capSetVideoFormat改变输出格式，由于驱动程序不支持而不会获得成功。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/zealsoft/aggbug/1879029.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/zealsoft/archive/2010/11/16/1879029.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2010/08/14/1799611.html</id><title type="text">一个VxWorks源代码网站</title><summary type="text">今天在网上找一点资料，发现一个VxWorks源代码的网站，感觉不错，特别收藏一下：http://www.2beanet.com/vxworks/。</summary><published>2010-08-14T07:16:00Z</published><updated>2010-08-14T07:16:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2010/08/14/1799611.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2010/08/14/1799611.html"/><content type="html">&lt;span  style="font-family: 宋体; color: #464646; "&gt;今天在网上找一点资料，发现一个VxWorks源代码的网站，感觉不错，特别收藏一下：&lt;a href="http://www.2beanet.com/vxworks/" style="text-decoration: none; color: #447077; "&gt;http://www.2beanet.com/vxworks/&lt;/a&gt;。&lt;/span&gt;&lt;img src="http://www.cnblogs.com/zealsoft/aggbug/1799611.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/zealsoft/archive/2010/08/14/1799611.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/10/10/1580641.html</id><title type="text">找个轻量级的Log库还挺难</title><summary type="text">这两天一直希望找个可以移植到VxWorks上的Log库，早就知道大名鼎鼎的Log4c，但一直想找个更好的，本来看上了Pantheios，觉得它的架构非常清晰，使用也很简便，特别是其网站上宣传它的性能非常卓越。但是仔细看了这个库后发现这个库基于STL和STLsoft，STL在VxWorks是很影响性能的，只好放弃。看看其他的Log库，大多数都是基于C++的，对于嵌入式应用还是不适合。我觉得一个理想的...</summary><published>2009-10-10T14:21:00Z</published><updated>2009-10-10T14:21:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/10/10/1580641.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/10/10/1580641.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/10/03/1577811.html</id><title type="text">TAU G2中的BitString和OctetString</title><summary type="text">TAU G2中比一般的UML工具多了一些预定义的类，如BitString和OctetString。这些类是和ASN.1所对应的，主要为了方便处理PDU编码，这是针对通信协议软件开发设计的。一般我们喜欢使用BitString类，因为它更方便和直观。不过最近遇到一个小问题，就是如果使用BitString类，在处理比较长的PDU串时，有时无法传递到环境函数中。为了解决这个问题，一个解决办法就是采用Oct...</summary><published>2009-10-03T13:43:00Z</published><updated>2009-10-03T13:43:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/10/03/1577811.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/10/03/1577811.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/05/11/1454194.html</id><title type="text">W32.Downadup.autorun病毒的清除</title><summary type="text">今天突然发现计算机有点异常，只要一打开Windows资源管理器左侧的文件夹，Explorer.exe就会崩溃，检查了一下发现中了W32.Downadup.autorun病毒。尽管机器安装了最新版本的瑞星杀毒软件，但是根本就检测不到该病毒。Symantec可以检测到，但是单位的涉密计算机就不允许安装国外的杀毒软件，只能用瑞星。在网上搜索了一下，在Symantec的网站上可以下载杀毒软件包。下回来运行了一下，可以把病毒删除了，下面是删除的日志文件：</summary><published>2009-05-11T07:31:00Z</published><updated>2009-05-11T07:31:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/05/11/1454194.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/05/11/1454194.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/04/24/1443219.html</id><title type="text">如何用Visual Studio 2005编译Wireshark的插件</title><summary type="text">今天尝试用Visual Studio 2005编译以前用Visual Studio 2003编译成功过的一个Wireshark插件，生成后发现居然无法在官方的Wireshark中加载插件。在 KenThompson的“Creating Your Own Custom Wireshark Dissector”一文中提到使用Visual Studio 2005编译生成的插件只能在使用Visual Studio 2005生成的Wireshark版本中测试。使用自己采用Visual Studio 2005生成的Wireshark版本测试，发现确实可以，而官方的就不行了。使用Dependency Walker看了看，发现使用Visual Studio 2005生成的DLL文件需要使用MSVCR80.DLL，而官方的Wireshark使用的是MSVCRT.DLL，两者不兼容，所以会出现错误。在微软的网站上可以找到解决的方法</summary><published>2009-04-24T15:24:00Z</published><updated>2009-04-24T15:24:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/04/24/1443219.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/04/24/1443219.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/04/16/1436886.html</id><title type="text">招聘嵌入式Linux程序员</title><summary type="text">项目组需要招聘一名兼职程序员，如果工作出色，也可以转为专职，应届毕业生优先。主要条件：1. 熟悉嵌入式Linux的移植和驱动开发。2. 有OMAP开发经验，最好同时有XScale的经验。3. 有通信软件经验的优先。工作地点：苏州桥附近。联系方式：E-Mail：zealsoft#gmail.com(请把#改为@)，标题请写明：Linux应聘。 </summary><published>2009-04-15T23:32:00Z</published><updated>2009-04-15T23:32:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/04/16/1436886.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/04/16/1436886.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/02/16/1392081.html</id><title type="text">终于可以抛弃Adobe Acrobat了</title><summary type="text">我一直希望找到一款可以给PDF文件加注释的免费工具，因为这个功能是Adobe Reader不支持的。以前试用过CAJViewer，但是它的PDF注释只能存在本机上，不能回写到PDF中。前两天在博客中说了这件事，立即得到了安达米特的回复，他推荐了Foxit Reader。这的确是个好软件，绿色的，不需要安装就可以使用。而且它的注释功能可以写入PDF文件，Adobe Reader也可以正确显示。这样我就可以传递抛弃Adobe Acrobat了。生成PDF文件可以使用PDFCreator或者WPS Office个人版，阅读和注释可以使用Foxit Reader。</summary><published>2009-02-16T14:59:00Z</published><updated>2009-02-16T14:59:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/02/16/1392081.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/02/16/1392081.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/02/14/1390596.html</id><title type="text">换了一个免费的PDF生成工具</title><summary type="text">以前我曾经在博客中推荐过一款免费的PDF生成工具CutePDF。近日发现一个更好的工具：PDFCreator，这个工具是开源的，而且可以控制所生成的PDF文件的作者信息，对中文的支持也很好。软件还提供了COM接口，这样你可以从几乎任何程序中调用PDFCreator生成文档，不过它的COM接口的功能比许多商业控件要弱一些，不支持书签等操作。PDFCreator还支持把多个文件合并的功能，也是很有用的。不过到目前为止，还没有找到一个免费的可以在PDF文件中加标注的工具，如果有朋友找到了，别忘了告诉我。</summary><published>2009-02-14T06:54:00Z</published><updated>2009-02-14T06:54:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/02/14/1390596.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/02/14/1390596.html"/></entry><entry><id>http://www.cnblogs.com/zealsoft/archive/2009/01/22/1379980.html</id><title type="text">统计源程序的工具</title><summary type="text">今天甲方通知要统计一下我们协议栈代码的行数，好久没有关心过这样的问题，上一次统计代码行数好像是好多年前的事情了，也忘记了用的什么工具。最开始想用NLOC，因为需要.NET 2.0，我的机器装不上。为了这个工具安装.NET 2.0有点不划算。又找了一个C++编写的工具Code Counter Tool。这个工具可以支持Visual C++ 6.0的工程。不过我们的工程是VxWorks工程，对于非VC6的工程需要建立一个.map文件，里面包括所有需要统计的文件。</summary><published>2009-01-22T08:34:00Z</published><updated>2009-01-22T08:34:00Z</updated><author><name>zealsoft</name><uri>http://www.cnblogs.com/zealsoft/</uri></author><link rel="alternate" href="http://www.cnblogs.com/zealsoft/archive/2009/01/22/1379980.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/zealsoft/archive/2009/01/22/1379980.html"/></entry></feed>
