简介
本例讲解了如何使用ffmpeg SDK解码媒体文件;
一、源代码
#include
#include
#include
#include
#ifdef HAVE_AV_CONFIG_H
#undef HAVE_AV_CONFIG_H
#endif
#include "libavcodec/avcodec.h"
#define INBUF_SIZE 4...
分类:
其他好文 时间:
2014-05-10 08:38:17
阅读次数:
479
#include using namespace std;void BubbleSort(int*
a,int n){ for(size_t i=0;i a[j+1]){ int tmp = a[j]; a[j] = a[j+1]; ...
分类:
其他好文 时间:
2014-05-08 21:59:19
阅读次数:
264
早上起来,她发现家里停电了。于是没办法用热水洗漱,用电吹风吹头发,不能热牛奶,烤面包,只好草草打理一下就出门。
刚走进电梯,邻居家养的小狗一下子冲进来扑住,上周刚买的米白长裙上顿时出现两只黑黑的爪印儿。 开车被警察拦,才想起来今天限行,罚了一百。
到了公司,正好晚了一分钟,又罚...
分类:
其他好文 时间:
2014-05-08 21:21:32
阅读次数:
231
如图所示的九宫格密码有多少种组合呢?这么密码是不是比数字密码更安全呢?下面用数字来说话。通常设置密码至少4个点,最多9个点,规则通常是两点之间有一点,必须要过中间这个点,比如从1开始,必须要经过2才可以到3。1是可以直接到6的,但通常这种设置比较少。运行附录的程序得到如下的数据:size:
4 co...
分类:
其他好文 时间:
2014-05-08 21:07:24
阅读次数:
417
Android View onSizeChanged()
分类:
移动开发 时间:
2014-05-08 21:04:27
阅读次数:
386
Nido Framework at Use - The diagram below shows how Nido Framework reduces the size of your DAL and BLL.
Nido Framework is a reusable and highly generic code library developed using Microsoft ....
分类:
其他好文 时间:
2014-05-07 07:22:40
阅读次数:
333
在项目开发中遇到了这样一种情况:
需要用一个干净的工程(export出来的,没有svn信息)去覆盖一个主干的工程(含有svn信息),然后提交代码;我们在mac系统中拷贝->粘贴到目标文件夹,只有2个选项:停止和全部替换;选择全部替换后,svn信息全部丢失了。
这时我们可以使用cp -r dir1 rootdir 来进行覆盖,dir1是那个干净工程的文件夹路径,和主干工程同名;rootdir是主...
分类:
其他好文 时间:
2014-05-07 05:18:18
阅读次数:
561
《算法导论》里的COUNTING_SORT,用C++实现有问题:
#include
#include
using namespace std;
void COUNTING_SORT(vectorint>&A, vectorint>&B, const int& k)
{
int* C = new int[k + 1]();
for (unsigned j = 0; j A.size();...
分类:
其他好文 时间:
2014-05-07 02:59:30
阅读次数:
251
If you want to determine the uncompressed size
of a gzip file from within a program, you can extract to original file size from
the gzip file. This si...
分类:
编程语言 时间:
2014-05-06 18:25:15
阅读次数:
551
#find/usr-namepxelinux.0#find/usr/share-namepxe*#find/usr-namepxelinux.?#tail/etc/passwd#find/-userapache#find/-usernamed#df-i#find/-inum1016273--execrm-fr{}\;#find/-size+204800-execrm-fr{}\;#find/etc-nameinit*-okls-l{}\;#find/-size204800#find/-size+204800(..
分类:
其他好文 时间:
2014-05-06 16:44:34
阅读次数:
258