简介什么是 Google Protocol Buffer? 假如您在网上搜索,应该会得到类似这样的文字介绍:Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,18...
分类:
其他好文 时间:
2014-07-16 19:19:13
阅读次数:
221
Server:import io.netty.buffer.ByteBuf;import io.netty.channel.ChannelHandlerContext;import io.netty.channel.ChannelInboundHandlerAdapter;import io.net...
分类:
Web程序 时间:
2014-07-16 00:59:48
阅读次数:
495
http://www.opengl.org/registry/specs/NV/shader_buffer_load.txtOverview At a very coarse level, GL has evolved in a way that allows applications...
分类:
其他好文 时间:
2014-07-15 23:01:19
阅读次数:
431
上图基本上演示了IIS 6整个处理过程。在User Mode下,http.sys接收到一个基于aspx的http request,然后它会根据IIS中的Metabase查看该基于该Request的Application属于哪个Application Pool,如果该Application Pool不...
分类:
Web程序 时间:
2014-07-15 22:53:40
阅读次数:
339
(config)#vpdnenable(config)#vpdn-grouppppoe(config-vpdn)#accept-dialin(config-vpdn-acc-in)#protocolpppoe(config)#interf0/0(config-if)#noipaddress(config-if)#pppoeenable(config-if)#pppoe-clientdial-pool-number1(config-if)#interdialer1(config-if)#ipaddnegotia..
分类:
其他好文 时间:
2014-07-15 11:47:03
阅读次数:
251
1.当执行此命令的时候ntpdate us.pool.ntp.org 出现一下错误提示name server cannot be used: Temporary failure in name resolution2.解决办法(添加DNS服务器)vi /etc/resolv.conf添加: name...
分类:
其他好文 时间:
2014-07-14 20:12:04
阅读次数:
272
public static String toHexString2(byte[] b) {
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < b.length; ++i) {
buffer.append(toHexString2(b[i]));
}
return buffer.toString();
...
分类:
编程语言 时间:
2014-07-14 18:22:33
阅读次数:
244
这是一个项目里使用的,API里从pool里取出的格式都是YUY2,但是图像处理的API库中要求都是jepg格式。YUY2经常用于电视制式以及许多摄像头的输出格式.而我们在处理时经常需要将其转化为RGB进行处理,这里简单介绍下YUY2(YUV)与RGB之间相互转化的关系:http://msdn2.mi...
分类:
其他好文 时间:
2014-07-14 17:55:55
阅读次数:
324
#!/usr/bin/pythonimportredefbuffer_line():buf=open("/etc/sae/buffer_1").read()ifnotbuf:return0else:returnint(re.findall("^\d*",buf)[0])defset_last_pos(pos):open("/etc/sae/buffer_1","w").write(str(pos))if__name__==‘__main__‘:appname={}fh=open("/data0/l7.acce..
分类:
编程语言 时间:
2014-07-14 16:41:57
阅读次数:
319
最近有些人问我PCI设备驱动的问题, 和他们交流过后, 我建议他们先看一看>这本书, 个人感觉, 这本书写得非常连贯流畅.
PCI设备驱动基本包括了PCI的资源获取, 配置空间的读写, 中断的处理, 中断后半部在DPC中的处理.
同时, 也必须了解DMA, ScatterGater, MapRegister, Common Buffer等基础.
1.1 PCI设备资源获取...