base函数

摘要: Basename函数参考资料http://monkeymusic.blog.163.com/blog/static/4797639200912533652666/解释basename-stripdirectoryandsuffixfromfilenames去除给出字符串的前缀例子Shell命令:basenamea/b/c/d/test/a.ppt输出:a.ppt可以在后面添加一个参数,通过这个参数来去除后缀Shell命令:basenamea/b/c/d/test/a.ppt.ppt输出:a#include#includevoidmain(){char*test="/etc/test/ 阅读全文
posted @ 2013-07-28 18:33 hatreds 阅读(356) 评论(0) 推荐(0) 编辑

android-x86 jellybean编译使用

摘要: 参考资料(使用liveusb模式时候出现花屏问题)http://www.x86android.com/thread-100-1-1.html下载的iso需要改动的地方(版本android-x86-4.2-20130228.iso)启动参数中androidboot.hardware=android_x86这个android_x86需要改为x86然后可以启动进入android,但是有时候会因为分辨率导致花屏,所以需要添加vga这个参数,后面需要添加一个vga=773自己编译的iso不需要改动x86那一项,但是分辨率仍然需要改动vga需要改变和你分辨率相适应的源http://wiki.ubuntu. 阅读全文
posted @ 2013-07-28 18:31 hatreds 阅读(531) 评论(0) 推荐(0) 编辑

1_28 记录1

摘要: http://huaonline.iteye.com/blog/1756449(native service binder1)http://blog.csdn.net/21cnbao/article/details/8087328(2)http://www.eoeandroid.com/thread-160615-1-1.html (360悬浮窗)http://jingyan.baidu.com/article/656db918bab64fe381249cd4.html android变鼠标http://www.blogjava.net/Carter0618/archive/2007/08/1 阅读全文
posted @ 2013-03-19 22:48 hatreds 阅读(104) 评论(0) 推荐(0) 编辑

unix 环境高级编程

摘要: if (!strcmp(basename(argv[0]), "ueventd")) return ueventd_main(argc, argv); /* clear the umask */ umask(0); /* Get the basic filesystem setup we need put * together in the initramdisk on / and then we'll * let the rc file figure out the rest. */ mkdir("/dev", 0755); mkdir(&qu 阅读全文
posted @ 2013-03-18 23:01 hatreds 阅读(165) 评论(0) 推荐(0) 编辑

会翻页GridView-1

摘要: 1.最终的目标是要实现一个可以翻页的GridView,同时必须要有动画。首先实现一个翻页动画。经过查资料,发现翻页重写ViewGroup然后结合Scroller来实现貌似是最为好的一种方式。下面列出来参考的比较好的几个资料讲解Scroller原理的一个http://blog.csdn.net/gemmem/article/details/7321910里面有一个非常好的例子,同时有一系列好的讲解UI的博客http://blog.csdn.net/qinjuning/article/details/7419207View详细加载过程和invalidate等知识http://blog.csdn.n 阅读全文
posted @ 2013-03-08 23:59 hatreds 阅读(179) 评论(0) 推荐(0) 编辑

6_13 ffmpeg中一些默认不能配置上的filter 配置问题 比如yadif boxblur

摘要: config --enable-filter=yadif --enable-avfilter --enable-gpl暂时不知道哪一句起作用了,但是好使了。 阅读全文
posted @ 2012-06-13 17:39 hatreds 阅读(830) 评论(0) 推荐(0) 编辑

6_5 一些有用网址

摘要: 图像基本的处理,高斯模糊等http://blog.csdn.net/hhygcy/article/category/590952 阅读全文
posted @ 2012-06-05 13:40 hatreds 阅读(135) 评论(0) 推荐(0) 编辑

5_29 率失真最优化解释

摘要: http://hi.baidu.com/vv1133/blog/item/d03a6723688b054dac34de2b.html源地址所谓率失真(distortion-rate),其实指的是图像失真度与编码码率二者之间的相互关系。其中的图像失真度,目前一般采用原始图像与编码重建图像之间的峰值性噪比PSNR来衡量,这个PSNR可以是亮度PSNR,也可以是亮度与色度PSNR的线性组合。一般最简单的情况下,采用亮度的PSNR(Y-PSNR)来作为主要衡量依据。其中所谓的峰值信号,即图像中像素的最大值(比方说像素亮度的最大值);其中所谓的噪声,指的是原始图像与重建图像中各像素值的均方差(差值的平方 阅读全文
posted @ 2012-05-29 16:56 hatreds 阅读(2155) 评论(0) 推荐(0) 编辑

5_9 __3 scan8分析

摘要: 大体上将一个宏块的编码过程跟下来上面分析完事宏块位置问题,下面看一个宏块的编码过程。Macroblock.h中的一个编码过程h->dctf.sub4x4_dct(dct4x4,p_src,p_dst);//mutiplytwoparametermatrixnz=x264_quant_4x4(h,dct4x4,i_qp,ctx_cat_plane[DCT_LUMA_4x4][p],1,p,idx);h->mb.cache.non_zero_count[x264_scan8[p*16+idx]]=nz;if(nz){ h->mb.i_cbp_luma|=1<<(idx 阅读全文
posted @ 2012-05-09 14:39 hatreds 阅读(365) 评论(0) 推荐(0) 编辑

5_9 ___3 DCT

摘要: 大体上将一个宏块的编码过程跟下来上面分析完事宏块位置问题,下面看一个宏块的编码过程。Macroblock.h中的一个编码过程h->dctf.sub4x4_dct(dct4x4,p_src,p_dst);//mutiplytwoparametermatrixnz=x264_quant_4x4(h,dct4x4,i_qp,ctx_cat_plane[DCT_LUMA_4x4][p],1,p,idx);h->mb.cache.non_zero_count[x264_scan8[p*16+idx]]=nz;if(nz){ h->mb.i_cbp_luma|=1<<(idx 阅读全文
posted @ 2012-05-09 14:04 hatreds 阅读(339) 评论(0) 推荐(0) 编辑