摘要:
因为C++支持两种字符串,即常规的ANSI编码(使用“”包裹)和Unicode编码(使用L“”包裹) 字符串处理函数,比如strlen和wcslen #ifdefine _UNICODE #define TCHAR wchar_t #endif -tcslen = strlen #ifndefine 阅读全文
2017年3月13日 #
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 阅读全文
摘要:
//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 阅读全文
摘要:
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 阅读全文
摘要:
int p; int *p; int p[3]; int *p[3];分析方式:首先从P开始分析,先与[]结合因为其优先级比*高,所以p是一个数组,然后再与*结合,说明数组里的元素是指针类型,然后再与int结合,说明指针所指向的内容的类型是整形的,所以P是一个由返回整形数据的指针所组成的数组。 in 阅读全文
2017年1月18日 #
摘要:
FFMPEG 中dts和pts区别 FFMPEG 中dts和pts区别 CopyFrom:http://www.cnblogs.com/yinxiangpei/articles/3892982.html 视频的显示和存放原理 对于一个电影,帧是这样来显示的:I B B P。现在我们需要在显示B帧之前 阅读全文
摘要:
From:http://blog.csdn.net/supermanwg/article/details/14521869 FFMPEG的很多结构中有AVRational time_base;这样的一个成员,它是AVRational结构的 typedef struct AVRational{ int 阅读全文
2016年8月17日 #
摘要:
转至 http://my.oschina.net/leixiaohua1020/blog/302174 在CSDN上的这一段日子,接触到了很多同行业的人,尤其是使用FFMPEG进行视音频编解码的人,有的已经是有多年经验的“大神”,有的是刚开始学习的初学者。在和大家探讨的过程中,我忽然发现了一个问题: 阅读全文