摘要: ffmpeg从0.11.3版本开始,默认解码aac为AV_SAMPLE_FMT_FLT (float)0.11.2以前版本解码aac为AV_SAMPLE_FMT_S16 (16位short型) 阅读全文
posted @ 2013-06-25 21:14 水上云天 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: 在ubuntu 13.04 下安装安卓开发工具:adt-bundle android-ndk-r8e都是解压后配置环境变量就可以使用了。但是Dash搜索不到,看起来很不舒服。设置如下:1.终端可用在 /usr/bin 目录下创建一个 eclipse 启动脚本:$ sudo gedit /usr/bin/eclipse在其中添加如下内容:#!/bin/shexport MOZILLA_FIVE_HOME="/usr/lib/mozilla/"export ECLIPSE_HOME="/home/gong/android/eclipse"$ECLIPSE_H 阅读全文
posted @ 2013-06-06 11:18 水上云天 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 网上找了一些方法 都是比较早期的 过时的方法。后来总结一下 结合官网linux下的方法 成功在windows下下载了安卓4.2.2http://source.android.com/source/downloading.html#initializing-a-repo-client现在总结如下:1.安装Cygwin下载 Cygwin ,然后就是一路的下一步(注意:如果第一次安装,你需要选install from internet然后就是选安装位置,还有临时文件的位置和连接网络的设置,这些都默认就可以.关键的一步是选择要安装的库和程序,以下这几个是要安装的:Net -> curl Deve 阅读全文
posted @ 2013-05-31 12:37 水上云天 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := miaeLOCAL_SRC_FILES := miae.cpp allpass.cpp comb.cpp revmodel.cpp reverb-c.cppTARGET_ARCH_ABI := armeabi-v7aifeq ($(TARGET_ARCH_ABI),armeabi-v7a) LOCAL_CFLAGS := -DHAVE_NEON -mfloat-abi=softfp -mfpu=neon -march=armv7-a LOCAL_SRC_... 阅读全文
posted @ 2013-05-29 23:48 水上云天 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 一、第一种方法:1.修改helloneon.c 中代码a.将char* str; 改为 char str[512] = {0};b.将asprintf(&str, "FIR Filter benchmark:\nC version : %g ms\n", time_c); 改为 sprintf(str, "FIR Filter benchmark:\nC version : %g ms\n", time_c); 同时删除 free(str); (b 项 有两处都要修改)c.将return (*env)->NewStringUTF(env, 阅读全文
posted @ 2013-05-21 14:38 水上云天 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: 由于项目开发中需要针对手机应用软件的一个功能做大量计算,导致实时性变差。于是想到了neon优化。安卓开发包ndk里面有一个项目hello-neon就是基于neon优化FIR的例子。找了几个手机测试一下,FIR运算提高2倍。由于neon是arm支持64/128bit混合单指令多数据并行运算,所以可以同时LOAD和STORE一组数据并行计算,提高了计算效率,特别是针对音视频类多媒体的数据。这里介绍了arm寄存器的特征和针对数据的LOAD和STORE。http://blogs.arm.com/software-enablement/161-coding-for-neon-part-1-load-an 阅读全文
posted @ 2013-05-17 12:23 水上云天 阅读(985) 评论(0) 推荐(0) 编辑
摘要: 1.首先在一个空间不低于4G的磁盘,建立一个java文件夹。我的为D:\java2.下载安装JDK。去oracle.com官网下载。本次下载1.6,没使用最新的。http://www.oracle.com/technetwork/java/javase/downloads/index.html3.配置java环境变量。我是默认安装在C盘。设置环境变量步骤如下:a.我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量: b.JAVA_HOME值为: C:\Program Files\Java\jdk1.6.0_45(你安装JDK的目录) c.CLASSPAT 阅读全文
posted @ 2013-05-17 12:13 水上云天 阅读(344) 评论(0) 推荐(0) 编辑
摘要: <转> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0204ic/Cihidhaa.htmlRealView 编译工具 《汇编器指南》4.0 版Home>ARM 和 Thumb 指令>饱和指令> 饱和算法4.5.1.饱和算法这些指令均为饱和的(SAT)。 这意味着对于某些依赖于指令 2n相关值:对于有符号饱和运算,如果结果小于 –2n,则返回的结果将为 –2n对于无符号饱和运算,如果整个结果将是负值,那么返回的结果是 0如果结果大于 2n– 1,则返回的结果将为 2n– 1。只要出现 阅读全文
posted @ 2013-05-16 17:02 水上云天 阅读(908) 评论(0) 推荐(0) 编辑
摘要: 《转》http://blog.163.com/hi_fly@yeah/blog/static/17011347220113177254140/如想将一个路径加入到$PATH中,可以像下面这样做:1. 控制台中:$ PATH="$PATH:/my_new_path" (关闭shell,会还原PATH)2. 修改profile文件:$ vi /etc/profile在里面加入:export PATH="$PATH:/my_new_path"3. 修改.bashrc文件:$ vi /root/.bashrc在里面加入:export PATH="$PA 阅读全文
posted @ 2013-05-14 21:56 水上云天 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 一般是这么做1.对话框添加两个消息处理。afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 2.这样来写具体实现View Code 1 BOOL CConfigDlg::OnEraseBkgnd(CDC* pDC) 2 { 3 CRect rt; 4 GetClientRect( &rt); 5 HDC hdc = pDC->GetSafeHdc(); 6 HDC hMemdc = CreateCompat... 阅读全文
posted @ 2013-04-11 15:49 水上云天 阅读(3745) 评论(0) 推荐(0) 编辑
摘要: Mark for latterfrom: http://www.grinninglizard.com/tinyxml2/index.htmlUTF-8 Unicode support.Advantages of TinyXML-2The focus of all future dev.Many fewer memory allocation (1/10th to 1/100th), uses less memory (about 40% of TinyXML-1), and faster (~5x on read).No STL requirement.More modern C++, inc 阅读全文
posted @ 2013-04-01 14:46 水上云天 阅读(310) 评论(0) 推荐(0) 编辑
摘要: <转自> http://blog.csdn.net/zhang1chao5/article/details/7492708使用MSDN上GetFileName里的示例代码,发现我的结果和MSDN上的不一样try { // try to open the file CFile sysFile(_T("C:\\WINDOWS\\SYSTEM.INI"), CFile::modeRead); // print out path name and title information _tprintf(_T("Path is : \"%s\" 阅读全文
posted @ 2013-03-27 17:07 水上云天 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/wjcsharp/article/details/6564628在更新后可能会出现explore自己down掉。问题签名: 问题事件名称: BEX 应用程序名: explorer.exe 应用程序版本: 6.1.7600.16450 应用程序时间戳: 4aeba271 故障模块名称: fxsst.dll_unloaded 故障模块版本: 0.0.0.0 故障模块时间戳: 4cc5a719 异常偏移: 6d581470 异常代码: c0000005 异常数据: 00000008 OS 版本: 6.1.7600.2.0.0.76... 阅读全文
posted @ 2013-03-27 11:09 水上云天 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 项目中需要大量计算9个数中取最小值,现在测试一下几种方法的速度。软件环境VC 6.0 + Windows xp sp3;硬件环境 Pentium G630 双核 2.7GHz,3GB内存。第一种方法:#define min(a,b) a<b?a:b#include <iostream.h>#include <TIME.H>#define min(a,b) a<b?a:b#include <stdlib.h>int main(){ clock_t start, finish; long duration; int minimum_in9 = 0; 阅读全文
posted @ 2013-02-28 12:26 水上云天 阅读(311) 评论(0) 推荐(0) 编辑
摘要: MSDN上说:MMRESULT waveOutSetVolume( HWAVEOUT hwo, DWORD dwVolume );ParametershwoHandle to an open waveform-audio output device. This parameter can also be a device identifier.dwVolumeNew volume setting. The low-order word contains the left-channel volume setting, and the high-order word contains t... 阅读全文
posted @ 2013-02-22 12:29 水上云天 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 下载了最新版SoundTouch 1.7.1 source codes项目主页 http://www.surina.net/soundtouch/index.html1---> 项目中使用的wave文件都是16位整形,这里需要修改STTypes.h文件中 Line 84 和 Line 85.将84行的注释删除,#define SOUNDTOUCH_INTEGER_SAMPLES 1 //< 16bit integer samples将85行注释掉。2---> 阅读全文
posted @ 2013-02-18 17:33 水上云天 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 由于项目的需求,需要在ffmpeg中编译libaacplus、libx264和libopus的编解码库。解决方法:1. windows下使用MinGW+msys+vs 2010这种方法编译,会有提示找不到libaacplus>= 2.0.0版本2.linux下使用zeranoe的脚本交叉编译windows版本的ffmpeg这种方式编译,会提示:checking for /bin/bash... configure: error: cannot check for file existence when cross compiling 官方论坛也有人遇到这种问题,zeranoe怀疑是编译选 阅读全文
posted @ 2013-01-31 16:35 水上云天 阅读(2612) 评论(0) 推荐(0) 编辑
摘要: 在ubuntu 12.04 下使用Zeranoe脚本交叉编译ffmpeg+libaccplus,报错,说 checking for /bin/bash …… configure:error cannot check for file existence when cross compiling……网上一种说法是 需要安装 install libiconv,gettext,glib and pkg-config ,然后再编译libaacplus参考 http://tipok.org.ua/node/24然而在安装 libiconv(version 1.14,libicon-1.14.tar.gz 阅读全文
posted @ 2013-01-29 19:05 水上云天 阅读(3486) 评论(0) 推荐(0) 编辑
摘要: 数据来源于网络x264 原始码数据夹中执行:./configure --prefix=/mingw --extra-cflags=-DPTW32_STATIC_LIB ; make -j2 ; make install--extra-cflags 必备,不然 ffmpeg 那边会编译不通过卡在 libx264.a:undefined reference to `_imp__pthread 阅读全文
posted @ 2013-01-29 15:31 水上云天 阅读(171) 评论(0) 推荐(0) 编辑
摘要: ubuntu 12.04现在gcc编译器版本号为4.6.3,交叉编译ffmpeg的时候需要gcc 4.7.2升级方案参考http://www.maykiller.com/2012/ubuntu-install-gcc-4-7-with-set-default/1. 加入gcc源sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo apt-get install gcc-4.7 g++-4.7这里第一句执行 一定要看清结果,是否成功。2. 测试是否安装成功//方法一gcc-4.7 -vg++-4.7 阅读全文
posted @ 2013-01-26 22:20 水上云天 阅读(3895) 评论(0) 推荐(0) 编辑