Fork me on GitHub
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 125 下一页

2012年5月2日

摘要: http://hi.baidu.com/%C7%D8%B7%E7%D2%C0%BE%C9%D4%DA/blog/item/4e278c374635ac3191ef3934.html使用SDK截屏比较简单,代码如下:UIGraphicsBeginImageContext(self.view.frame.size);[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImag 阅读全文
posted @ 2012-05-02 09:49 pengyingh 阅读(2219) 评论(0) 推荐(0)

2012年5月1日

摘要: question:Why not to have a Int8 and UInt8 types instead of Byte and SByte in .Net frameworkYou mean SByte and Byte. Int8 would be signed SByte, UInt8 would be unsignedByte.This also highlights the problem: some languages (notably VB.NET) have nosupport for unsigned integers (they're not CLS-comp 阅读全文
posted @ 2012-05-01 18:28 pengyingh 阅读(348) 评论(0) 推荐(0)

2012年4月28日

摘要: NSURL *url = [NSURLURLWithString:[GameData.login_info.logostringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];NSData *data = [NSDatadataWithContentsOfURL:url];CFDataRef imgData = (CFDataRef)data;CGDataProviderRef imgDataProvider = CGDataProviderCreateWithCFData (imgData);CGImageRef imag 阅读全文
posted @ 2012-04-28 17:22 pengyingh 阅读(132) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/aurora_mylove/article/details/1700540混合是什么呢?混合就是把两种颜色混在一起。具体一点,就是把某一像素位置原来的颜色和将要画上去的颜色,通过某种方式混在一起,从而实现特殊的效果。假设我们需要绘制这样一个场景:透过红色的玻璃去看绿色的物体,那么可以先绘制绿色的物体,再绘制红色玻璃。在绘制红色玻璃的时候,利用“混合”功能,把将要绘制上去的红色和原来的绿色进行混合,于是得到一种新的颜色,看上去就好像玻璃是半透明的。要使用OpenGL的混合功能,只需要调用:glEnable(GL_BLEND);即可。要关闭OpenGL的混 阅读全文
posted @ 2012-04-28 14:10 pengyingh 阅读(186) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/2271492/objective-c-equivalent-of-java-vectorask:What is the equivalent for Vector's of Java in Objective-C?answer:Try using NSMutableArray.The closest thing you will find is NSMutableArray, execpt that contrary to java Vector, it is not thread safe. If you do 阅读全文
posted @ 2012-04-28 12:41 pengyingh 阅读(1179) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/wasd6081058/article/details/7216266在Linux系统里,/usr/include/linux/if_pppox.h里面有这样一个结构:struct pppoe_tag { __u16 tag_type; __u16 tag_len; char tag_data[0];} __attribute ((packed));最后一个成员为可变长的数组,对于TLV(Type-Length-Value)形式的结构,或者其他需要变长度的结构体,用这种方式定义最好。使用起来非常方便,创建时,malloc一段结构体大小加上可变长数... 阅读全文
posted @ 2012-04-28 12:34 pengyingh 阅读(454) 评论(0) 推荐(0)
摘要: http://www.haogongju.net/art/904112Core Animation: Creating a Jack-in-the-box with CAKeyframeAnimationA previous example demonstrated how CAKeyframeAnimation canmove layers along a CGPath, but CAKeyframeAnimation can also move a layer through a succession of points with a custom timing for each poin 阅读全文
posted @ 2012-04-28 09:49 pengyingh 阅读(832) 评论(0) 推荐(0)

2012年4月27日

摘要: 首先要配置环境,需要这么几个库,libosip,libeXosip2,ortp,mediastreamer2.libosip,libeXosip2这两个库是负责信令部分的,ortp,medastreamer2是负责媒体流传输与采集等的。sipAPI: http://www.gnu.org/software/osip/doc/html/group__oSIP__MESSAGE.htmleXosipAPI: http://www.antisip.com/doc/exosip2/group__eXosip2__sdp.html#gdab1e84d04b387ada72e0d548444f... 阅读全文
posted @ 2012-04-27 20:35 pengyingh 阅读(610) 评论(0) 推荐(0)
摘要: mediastreamer2是一个支持多种平台的轻量级的流技术引擎,主要适用于开发语音和视频电话应用程序。该引擎主要为linphone的多媒体的收发,包括语音和视频的捕获、编码解码以及渲染。mediastream.c是mediastream2库自带的一个test,也是最为复杂的一个test,学习它有助于加深对mediastreamer2的理解//****************************************************************************************************************************** 阅读全文
posted @ 2012-04-27 20:33 pengyingh 阅读(656) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/flyhawk007j2me/article/details/6830586Osip2是一个开放源代码的sip协议栈,是开源代码中不多使用C语言写的协议栈之一,它具有短小简洁的特点,专注于sip底层解析使得它的效率比较高eXosip2是Osip2的一个扩展协议集,它部分封装了Osip2协议栈,使得它更容易被使用。exosip2增加了call、dialog、registration、subscription等过程的解析,使得实用性更强。//========================================================== 阅读全文
posted @ 2012-04-27 20:32 pengyingh 阅读(3061) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 125 下一页

导航