摘要: 今天在写一个代码,要把一帧的buffer读入到文件,因为有NEON和OpenCL两种不同的实现所以需要读取文件两次,代码如下: 1 FILE *file; 2 int i = 0; 3 INTER_BLOCK_SIZE_GPU_RS *block_size; 4 file = fop... 阅读全文
posted @ 2014-08-22 15:12 Magnum Programm Life 阅读(2453) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.sina.com.cn/s/blog_78d30f6b0101713r.html汇编源程序一般用于系统最基本的初始化:初始化堆栈指针、设置页表、操作ARM的协处理器等。这些初始化工作完成后就可以跳转到C代码main函数中执行。1、GNU汇编语言语句格式任何Linux汇... 阅读全文
posted @ 2014-08-13 17:37 Magnum Programm Life 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://blog.chinaunix.net/uid-28458801-id-3487199.htmlCPSR:程序状态寄存器(current program status register) (当前程序状态寄存器),在任何处理器模式下被访问。它包含了条件标志位、中断禁止位、当前处理... 阅读全文
posted @ 2014-08-13 15:02 Magnum Programm Life 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: 1. 前面配置arm交叉编译环境。2. 配置好qemu-armC语言代码string-switch.c:#include #include extern void strswp(char *str1, char *str2); int main(void){ char str1[10] = "... 阅读全文
posted @ 2014-08-12 18:50 Magnum Programm Life 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1. 首先确定一间配置好arm linux 交叉编译器,可以使用arm-linux-gcc.2. 看示例代码hello.c#includeint add(int a,int b){ int c = a+b; return c;}int main(){ printf("Ubuntu, i am lin... 阅读全文
posted @ 2014-08-12 16:30 Magnum Programm Life 阅读(792) 评论(0) 推荐(0) 编辑
摘要: Shell中的函数调用的使用方法见我下面的代码示例:#!/bin/bash# value initExP="adb shell /data/local/tmp/vpxdec --yv12 --flipuv -t 2 --md5 data/local/tmp/vp9Input/subset_f... 阅读全文
posted @ 2014-08-12 15:55 Magnum Programm Life 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 1. 安装标准的C开发环境,由于Ubuntu安装默认是不安装的,所以需要先安装一下:sudo apt-get install gcc g++ libgcc1 libg++ make gdb2.从ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/下载最... 阅读全文
posted @ 2014-08-11 15:50 Magnum Programm Life 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/hongzg1982/articles/2101792.htmlbashrc与profile的区别要搞清bashrc与profile的区别,首先要弄明白什么是交互式shell和非交互式shell,什么是login shell 和non-login... 阅读全文
posted @ 2014-08-11 10:56 Magnum Programm Life 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Shell 在写函数的时候,有时候需要传递字符串,由于字符串中有空格,所以结果总是不对,下面写个小例子,解决这个问题:#!/bin/bash# value initTT="adb shell ls -l /data/local/tmp/";FINAL="";loop_count=2;# LoopEx... 阅读全文
posted @ 2014-08-07 14:00 Magnum Programm Life 阅读(1429) 评论(0) 推荐(0) 编辑
摘要: 废话不多说,直接上错误代码:static void print_cpu_src(uint8_t * src,int stride){ int i,j; printf("Magnum cpu src addr == %p, stride ==%d:\n",&src,stride); ... 阅读全文
posted @ 2014-07-02 17:45 Magnum Programm Life 阅读(2990) 评论(0) 推荐(0) 编辑