This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.sunrayimage.com/examples.html | |
http://trace.eas.asu.edu/yuv/ 都是yuv420p的 | |
Example Images Download: | |
You can download the example images of all the suppoted formats in version 2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**这个是编译文件,可以直接把S文件编译为动态库 | |
https://github.com/jasonchuang/CameraStreamer/blob/master/jni/yuv2rgb/Android.mk | |
*/ | |
LOCAL_PATH := $(call my-dir) | |
#the yuv2rgb library | |
include $(CLEAR_VARS) | |
LOCAL_ALLOW_UNDEFINED_SYMBOLS=false | |
LOCAL_MODULE := yuv2rgb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
refer to https://github.com/YYuemei/Camera-Driver/blob/master/uvc/uvc_queue.c | |
*/ | |
/* | |
* uvc_queue.c -- USB Video Class driver - Buffers management | |
* | |
* Copyright (C) 2005-2009 | |
* Laurent Pinchart (laurent.pinchart@skynet.be) | |
* | |
* This program is free software; you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* refer to | |
https://github.com/YYuemei/Camera-Driver/blob/master/123.c | |
摄像头抓图程序,修改之后,实现了亮度计算 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <getopt.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef unsigned char HI_U8; /*无符号字符有两个名字*/ | |
typedef unsigned char HI_UCHAR; | |
typedef unsigned short HI_U16; | |
typedef unsigned int HI_U32; | |
typedef signed char HI_S8; | |
typedef short HI_S16; | |
typedef int HI_S32; | |
#ifndef _M_IX86 | |
typedef unsigned long long HI_U64; | |
typedef long long HI_S64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2013-2014 EasyDarwin.ORG. All rights reserved. | |
Github: https://github.com/EasyDarwin | |
WEChat: EasyDarwin | |
Website: http://www.EasyDarwin.org | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include "EasyPusherAPI.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <stdio.h> | |
#include <libavformat/avformat.h> | |
#include <libavutil/log.h> | |
int main(int argc, char *argv[]) { | |
int r; | |
assert(argc == 3); | |
av_register_all(); | |
avformat_network_init(); | |
//av_log_set_level(AV_LOG_DEBUG); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一、应用调试1:使用strace命令来跟踪系统调用 | |
二、应用调试2:使用GDB来调试应用程序 | |
编译gdb,gdbserver | |
tar xjf gdb-7.4.tar.bz2 | |
cd gdb-7.4/ | |
./configure --target=arm-linux | |
make | |
把arm-linux-gdb复制到/bin目录 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ctrl+= :Jump to definition ctlr 和 = 跳到定义 | |
Alt+/ :Look up reference alt 和 / 搜寻全工程引用,F8查找本文件的引用,F7 全工程引用。 | |
F3 : search backward F3前向搜寻 | |
F4 : search forward F4 后向搜寻 | |
F5: go to Line ctrl 和g 或者 F5 | |
F7 :Look up symbols | |
F8 :Look up local symbols | |
F9 :Ident left | |
F10 :Ident right | |
Alt+, :Jump backword 代码前后位置跳跃 alt + , 和 . |
NewerOlder