whisht

    十年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 2 3 4 5 6 7 ··· 13 下一页

2013年3月1日

摘要: 1、设置控件toolStrip1属性RenderMode为System2、重绘代码private void toolStrip1_Paint(object sender, PaintEventArgs e) { if ((sender as ToolStrip).RenderMode == ToolStripRenderMode.System) { Rectangle rect = new Rectangle(0, 0, this.toolStrip1.Width, this.toolStrip1.Height - 2); e.Graphics.SetClip(rect); } ... 阅读全文
posted @ 2013-03-01 10:32 WHISHT 阅读(616) 评论(0) 推荐(0) 编辑

2013年1月31日

摘要: mxml中使用特殊字符:<&lt; >&gt;&&amp;'&apos;"&quot; as文件中使用特殊字符原文地址:http://blog.minidx.com/2008/07/06/1048.html<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical& 阅读全文
posted @ 2013-01-31 11:34 WHISHT 阅读(459) 评论(0) 推荐(0) 编辑

2013年1月25日

摘要: TabBar ViewStack 使用分页时,如果不每页都点击一下,在验证各页上控件时错误,修改代码如下:<mx:TabBar id="tabBar" direction="horizontal" dataProvider="{viewStack}" width="100%" /><mx:ViewStack id="viewStack" width="100%" height="100%"creationPolicy="all& 阅读全文
posted @ 2013-01-25 17:02 WHISHT 阅读(289) 评论(0) 推荐(0) 编辑

摘要: <mx:AdvancedDataGrid id="kkcsxxDataGrid" width="100%" height="100%" columnWidth="200" selectionMode="multipleCells" allowMultipleSelection="true" sortableColumns="false" sortExpertMode="true" designViewDataType=" 阅读全文
posted @ 2013-01-25 09:19 WHISHT 阅读(363) 评论(0) 推荐(0) 编辑

2013年1月19日

摘要: etc目录分析etc| `--profile (环境变量配置文件)|-- init.d (启动文件目录)| `-- rcS (存放系统启动时配置以及自启动加载的进程等)启动挂载文件脚本可以写入\etc\init.d\rcS内,如:echo "Remounting sdcard... "umount /mnt/sdcardsleep 1mount -t vfat /dev/mmcblk0p1 /sdcard启动时路过“Please press Enter to activate this console.”修改\etc\inittab中askfirst 替换 respawn# 阅读全文
posted @ 2013-01-19 15:17 WHISHT 阅读(251) 评论(0) 推荐(0) 编辑

2013年1月17日

摘要: 实现原理:一个VLC打开视频文件发布串流(格式HTTP、RTP、RTSP等),另一个VLC打开串流播放发布串流步骤:1、菜单“媒体”->“流”,先添加视频文件、选择“串流”,如下图:2、设置串流发布格式,本测试选择“RTSP”,点击“添加”3、设置RTSP端口及路径。去掉激活转码,测试中如此项选中,VLC崩溃4、选项设置:点击“串流”完成。此时串流发布成功。打开发布的串流:另打开一个VLC,菜单”媒体“->“网络”,URL输入刚才发布的,如下图最终实现效果如下图: 阅读全文
posted @ 2013-01-17 14:34 WHISHT 阅读(18522) 评论(0) 推荐(1) 编辑

2012年12月25日

摘要: 背景 linux + QT BMP图片转JPG#include <jpeglib.h>编译错误:root@happy-virtual-machine:/home/happy/Lee/Detector2# makearm-linux-g++ -Wl,-O1 -Wl,-rpath,/opt/qt-4.7.1/lib -o Detector2 main.o mainwindow.o osd.o thread_preview.o preview.o thread_encode.o encode.o rtp.o power.o upload.o moc_mainwindow.o moc_th 阅读全文
posted @ 2012-12-25 22:42 WHISHT 阅读(7769) 评论(0) 推荐(0) 编辑

2012年12月23日

摘要: 我这里说的ioctl函数是在驱动程序里的,因为我不知道还有没有别的场合用到了ioctl, 所以就规定了我们讨论的范围。为什么要写篇文章呢,是因为我前一阵子被ioctl给搞混了,这几天才弄明白它,于是在这里清理一下头脑。一、 什么是ioctl。ioctl是设备驱动程序中对设备的I/O通道进行管理的函数。所谓对I/O通道进行管理,就是对设备的一些特性进行控制,例如串口的传输波特率、马达的转速等等。它的调用个数如下:int ioctl(int fd, ind cmd, …);其中fd就是用户程序打开设备时使用open函数返回的文件标示符,cmd就是用户程序对设备的控制命令,至于后面的省略号,那是一. 阅读全文
posted @ 2012-12-23 21:58 WHISHT 阅读(180) 评论(0) 推荐(0) 编辑

2012年12月20日

摘要: 涉及内容:1、v4l2操作摄像头2、RGB565转BMP(RGB16)文件参考代码:#include <sys/time.h> #include <sys/types.h> #include <asm/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys 阅读全文
posted @ 2012-12-20 21:12 WHISHT 阅读(229) 评论(0) 推荐(0) 编辑

摘要: 1、http://www.ijg.org/下载最新安装包,目前为jpegsrc.v8d.tar.gz2、复制到/usr/src/3、#cd /usr/src4、#tar xzvf jpegsrc.v8d.tar.gz //解压5、# cd jpeg-8d/6、# ./configure –enable-shared–enable-static//配置,既生成静态又生成共享库文件 ./configure -help查看帮助7、#make8、#cd /usr/local9、#mkdir man //注意建立man和man1文件夹10、#cd man11、#mkdir man112、#cd /usr 阅读全文
posted @ 2012-12-20 21:02 WHISHT 阅读(321) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 13 下一页