长风破浪会有时,直挂云帆济沧海

Dream Word

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 11 12 13 14 15

2017年3月13日 #

摘要: 因为C++支持两种字符串,即常规的ANSI编码(使用“”包裹)和Unicode编码(使用L“”包裹) 字符串处理函数,比如strlen和wcslen #ifdefine _UNICODE #define TCHAR wchar_t #endif -tcslen = strlen #ifndefine 阅读全文
posted @ 2017-03-13 21:56 长风II 阅读(162) 评论(0) 推荐(0) 编辑

2017年3月4日 #

摘要: /****/ //求两个int值得最大值 inline int const& max(int const& a,int const& b) { return a<b?b:a; } //求两个任意类型值中的最大值 template <typename T> inline T const& max(T 阅读全文
posted @ 2017-03-04 18:33 长风II 阅读(371) 评论(0) 推荐(0) 编辑

摘要: //file max.hpp template <typename T> //template<class T> inline T const& max (T const& a,T const& b) { return a<b?b:a; } //file max.cpp #include <iost 阅读全文
posted @ 2017-03-04 18:08 长风II 阅读(237) 评论(0) 推荐(0) 编辑

摘要: 1:check version gcc -v / g++ -v 2:compile gcc *.c / g++ *.cpp outfile: a.out 3:excute ./a.out 4:show excute time time ./a.out 5:change the after compi 阅读全文
posted @ 2017-03-04 17:40 长风II 阅读(169) 评论(0) 推荐(0) 编辑

摘要: int p; int *p; int p[3]; int *p[3];分析方式:首先从P开始分析,先与[]结合因为其优先级比*高,所以p是一个数组,然后再与*结合,说明数组里的元素是指针类型,然后再与int结合,说明指针所指向的内容的类型是整形的,所以P是一个由返回整形数据的指针所组成的数组。 in 阅读全文
posted @ 2017-03-04 16:45 长风II 阅读(136) 评论(0) 推荐(0) 编辑

2017年1月18日 #

摘要: FFMPEG 中dts和pts区别 FFMPEG 中dts和pts区别 CopyFrom:http://www.cnblogs.com/yinxiangpei/articles/3892982.html 视频的显示和存放原理 对于一个电影,帧是这样来显示的:I B B P。现在我们需要在显示B帧之前 阅读全文
posted @ 2017-01-18 23:58 长风II 阅读(2829) 评论(0) 推荐(0) 编辑

摘要: From:http://blog.csdn.net/supermanwg/article/details/14521869 FFMPEG的很多结构中有AVRational time_base;这样的一个成员,它是AVRational结构的 typedef struct AVRational{ int 阅读全文
posted @ 2017-01-18 23:37 长风II 阅读(271) 评论(0) 推荐(0) 编辑

2016年8月17日 #

摘要: 转至 http://my.oschina.net/leixiaohua1020/blog/302174 在CSDN上的这一段日子,接触到了很多同行业的人,尤其是使用FFMPEG进行视音频编解码的人,有的已经是有多年经验的“大神”,有的是刚开始学习的初学者。在和大家探讨的过程中,我忽然发现了一个问题: 阅读全文
posted @ 2016-08-17 21:30 长风II 阅读(1184) 评论(0) 推荐(0) 编辑

上一页 1 ··· 11 12 13 14 15