07 2014 档案

摘要:1:音视频数据都有一个list,用于存放解码后的数据; List mFilledBuffers;2:解码后的音视频数据不断的往list中存放,不做音视频同步方面的时间上控制 mFilledBuffers.push_back(i);3:音视频同步主要表现在从list中取数据进行视频的显示和音频的输出;... 阅读全文
posted @ 2014-07-28 00:32 莫小 阅读(1236) 评论(0) 推荐(0)
摘要:In the development ofShou, I’ve been using GLSL with NEON to manipulate image rotation, scaling and color conversion, before send them to video encode... 阅读全文
posted @ 2014-07-23 19:34 莫小 阅读(2244) 评论(0) 推荐(0)
摘要:要使用Direct Texture,需要有一份android系统的源码部分C++代码如下:#include #include #include #include #include #include #include #include #include #include #include "rende... 阅读全文
posted @ 2014-07-23 19:32 莫小 阅读(6417) 评论(4) 推荐(1)
摘要:http://lwn.net/Articles/480055/Back in December 2011, LWNreviewed the list of Android kernel patchesin the linux-next staging directory. The merging o... 阅读全文
posted @ 2014-07-23 15:55 莫小 阅读(1443) 评论(0) 推荐(0)
摘要:转自http://blog.csdn.net/gavinr/article/details/71834991.获取数据ffmpeg读取mp4中的H264数据,并不能直接得到NALU,文件中也没有储存0x00000001的分隔符。下面这张图为packet.data中的数据从图中可以发现,packet中... 阅读全文
posted @ 2014-07-23 12:08 莫小 阅读(14362) 评论(0) 推荐(0)
摘要:h264有两种封装,一种是annexb模式,传统模式,有startcode,SPS和PPS是在ES中一种是mp4模式,一般mp4 mkv会有,没有startcode,SPS和PPS以及其它信息被封装在container中,每一个frame前面是这个frame的长度很多解码器只支持annexb这种模式... 阅读全文
posted @ 2014-07-22 16:37 莫小 阅读(4560) 评论(0) 推荐(0)
摘要:朋友曾经给我推荐了一个有关代码优化的pdf文档《让你的软件飞起来》,看完之后,感受颇深。为了推广其,同时也为了自己加深印象,故将其总结为word文档。下面就是其的详细内容总结,希望能于己于人都有所帮助。速度取决于算法同样的事情,方法不一样,效果也不一样。比如,汽车引擎,可以让你的速度超越马车,却无法... 阅读全文
posted @ 2014-07-08 15:29 莫小 阅读(985) 评论(0) 推荐(0)
摘要:三、注册PMEM设备这里我们除了描述PMEM设备,还将注册一个拥有memory空间和IRQ资源的示例设备example_device。对于example_device,定义如下结构体:static struct resource example_resources[] = {[0] = {.star... 阅读全文
posted @ 2014-07-08 15:20 莫小 阅读(693) 评论(0) 推荐(0)
摘要:Android中PMEM驱动程序是物理内存的驱动程序,可用于分配物理内存。PMEM在camera和video系统中频繁使用。下面,简单记录一下PMEM的使用方法。另外,由于PMEM设备做为Platform设备存在,所以我们将对Platform设备做以简单描述。一、PMEM的使用使用PMEM需要包含如... 阅读全文
posted @ 2014-07-08 15:18 莫小 阅读(1466) 评论(0) 推荐(0)