- 博客(37)
- 资源 (12)
- 收藏
- 关注
原创 systrace
1.如何打开systrace文件(1).chrome浏览器输入 chrome://tracing/(2).将systrace html拖进去
2022-02-21 18:15:22
367
原创 [Linux]bashrc
配置~/.bashrc1.PATH变量(1)vim ~/.bashrc(2)添加下面行export PATH=~/bin:$PATH(3)source ~/.bashrc(4)echo $PATH #查看PATH是什么值2.别名 alias2.1 路径名字太长,输入完整名字太麻烦(1)vim ~/.bashrc(2)添加下面行alias my_cd='cd /local/mnt/works...
2021-08-27 00:12:25
528
原创 [linux]git config
1.配置~/.gitconfig[user] name = shiycong email = csy_best@163.com[alias] co = checkout br = branch ci = commit st = status unstage = reset HEAD -- glog = log --graph hist = log --pretty=format:'%h
2021-08-26 22:01:49
388
原创 [windows10]环境变量
1.电脑右击,选择Properties, 之后见下图2.点击Advanced system settings3.点击Environment Vaiables...
2021-07-13 12:52:45
130
原创 [windows]ubuntu终端
https://docs.microsoft.com/en-us/windows/wsl/install-win10https://docs.microsoft.com/en-us/windows/wsl/install-manual这里有下载链接,16.04是可以下的安装的时候注意目录,比如新建一个C:\ubuntu目录,把下载的压缩包移到这个目录下,再在这个目录下运行安装安装完以后要改目录很麻烦下载完这个安装包后,在安装前:在搜索栏里搜索“windows feature”, 打开"tur
2021-06-30 19:16:55
266
原创 [Linux]arm-linux-gcc交叉编译环境
1.问题:Linux下(gcc)编译的可执行程序,放到Android设备中运行,报not executable: 64-bit ELF file:$ gcc -static hello.cpp -o hello-exe$ adb shell /system/bin/hello-exe/system/bin/sh: /system/bin/hello-exe: not executable: 64-bit ELF file2.原因:PC上的CPU是基于X86的结构,Android.
2021-02-18 16:36:02
1359
原创 [Linux/Android]如何查看设备的CPU架构
1.Linux PC:1.1 uname -a 命令$ uname -aLinux tssh-QiTianM415-N000 4.15.0-133-generic #137~16.04.1-Ubuntu SMP Fri Jan 15 02:55:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux1.2 arch命令$ archx86_64上述PC是X86架构2.Android Phone:$ adb shell cat /proc.
2021-02-18 12:13:57
777
原创 [Linux]Git-多台电脑
1.版本控制系统分布式相比于集中式的最大区别是:每个开发者通过克隆(git clone)方式,在本地机器上拷贝一个完整的Git仓库(版本库);后者是用“中央服务器”.1.1 集中式版本控制系统产品:CVS、SVN(免费), 收费ClearCase(IBM)、VSS(微软)优点:缺点:速度慢,须联网才能使用;分支的管控方式不灵活;1.2 分布式版本控制系统产品:Git优点:支持离线,本地先修改,可以等网络连接后再push代码; 强大分支管理;缺点:注意:所有的版..
2021-01-26 19:42:08
280
原创 [Linux]python升级
1.问题 #sudo repo init -u git://<manifest tag> -b release -m <<manifest xml> 报如下错:File "/work/1_SourceCode/1.7_Sourcecode_R_building/.repo/repo/main.py", line 79 file=sys.stderr) ^SyntaxError: invalid syntax打开上面main.py,查...
2021-01-19 11:34:40
1583
原创 [Linux]time+dd测试硬盘/手机/SD卡读写速度
1.语法:time dd if=path/input_file of=/path/output_file bs=block_size count=number_of_blockstime有计时作用,dd用于复制,从if读出,写到of;if= 输入文件名,缺省为标准输入of= 输出文件名,缺省为标准输出ibs= 一次读入字节数(即一个块大小)obs= 一次写字节数(即一个块
2020-10-22 11:17:10
1103
原创 [Windows]GStreamer-未完成
一.下载(1)访问地址:https://gstreamer.freedesktop.org(2)Windows版:Download -> Windows,如下图:从Windows下的描述可知:对于开发者,runtime和development安装包都需要.(3)Windows下有2种环境方式:一种是MinGW,另一种是MSVC.(4)看下工具兼容性(5)本地电脑装有VS2017,故选择MSVC版的GStreamer,下载其runtime和developent ins
2020-06-28 14:56:35
539
转载 [Windows]VLC搭建RTSP服务器
一 服务器的建立1.打开“媒体——流”选项2.点击“添加”按钮选择流媒体文件,再点击“串流”3.点击“下一个”4.新目标选择“RTSP”,[可选]在本地显示,然后点击添加按钮5.设置端口(可默认),路径为xiaochou(可修改),点击下一个6.“激活转码因为此处消愁是h264 video + aac audio,先转码7.最后点击“流奇怪:即使在第4步点了“在本地显示”,此时VLC时看不到画面的二 客户端1.再打...
2020-05-26 15:50:19
1111
原创 [Windows]截图
在Windows下通常截图方式:1.微信Alt+A2.截图工具(1)创建bat文件,这里命名为:截屏.bat(2)在bat文件中写入:start snippingtool(3)跳出截图工具,点"新建"3.屏幕截图Windows徽标键+Shift+SPS:Wins10可行...
2020-05-06 12:05:35
458
原创 [Windows]VS2017+OpenCV4.3.0
一 OpenCV1.1 下载地址:https://sourceforge.net/projects/opencvlibrary1.2 解压双击opencv-4.3.0-vc14_vc15.exe1.3 环境变量windows10: cmd 输入control -> 系统 -> 高级系统设置 -> 高级 -> 环境变量二 VS2....
2020-04-27 18:56:00
1349
1
原创 [Linux]挂载移动硬盘到Linux电脑
环境:Win10电脑无法工作了(C系统盘,D:安装工具的盘,F:工作放文档的盘),需要讲硬盘中的东西(工具和文档)拷贝到Linux电脑.问题:1.将移动硬盘盒连接到Linux电脑,能看到多了3个盘符,其中有:软件,文档.2.但点击盘符,无法访问修复:1.用命令看盘sudo fdisk -l1.1 下面是自带的盘Disk /dev/sda: 1.8 ...
2020-03-24 14:44:16
750
1
原创 [Multimedia]ffmpeg 之 log
1.日志显示1.1 命令行-loglevel [flags+]loglevel | -v [flags+]loglevel #ffmpeg-4.2\fftools\cmdutils.c Line 00508 or 00514: 定位日记的级别关键字“loglevel”或者”v” #ffmpeg-4.2\fftools\cmd...
2020-02-12 16:55:35
435
原创 视频工程师常用软件
一、视频分析器1.rgb播放器RawPlayer2.yuv播放器yuvplayer.exe;YUVViewer.exe3.流或容器播放器3.1 VLC media player3.2 ffplayhttp://ffmpeg.org/download.html4.分析器264、Elecard StreamEye265、Elecard HEVC Ana...
2020-01-16 15:36:09
686
原创 [Linux][c/c++]Single Makefile
Makefile##dirPWD_DIR=$(shell pwd)OBJ_DIR=$(PWD_DIR)/objBIN_DIR=$(PWD_DIR)/bin##compilerCC=gcc##targetTARGET=your_own_target_name##build$(TARGET):main.o $(CC) main.o -o $@ -lpthr...
2019-12-11 19:44:49
150
原创 [Linux]进程通信(IPC)
一、管道(PIPE)1.1 函数intpipe(intfile_descriptor[2]);//建立管道,该函数在数组上填上两个新的文件描述符后返回0,失败返回-1。 file_descriptor[0]用于读出数据,读取时必须关闭写入端,即close(file_descriptor[1]); file_descriptor[1]用于写入数据,写...
2019-11-11 16:24:27
197
原创 [Linux]线程与同步机制
一、单线程1.1 源码#include <stdio.h>#include <unistd.h>#include <pthread.h>#include <stdlib.h>#include <errno.h>void sleep_us(unsigned long uSec){ struct timeval ...
2019-11-01 13:52:19
153
原创 [Linux]Timer-定时器
一、timer_create() + timer_settime()定时器精确到nsec级.1.1 main.cpp#include <stdio.h>#include <signal.h>#include <time.h>#include <string.h>#include <stdlib.h>#include...
2019-10-30 13:29:54
265
原创 [c/c++]design mode
#include <Windows.h>#include <stdio.h>#include<list>#include<map>#include "alignment.h"using namespace std;#pragma pack(push)#pragma pack(1) //C语言中并没有bool类型变量...
2019-10-22 15:43:53
251
原创 [Multimedia]YUV(444,422,420) And YUV(Packed,Planar,Semi-Planar)
一、采样方式YUV主流的采样方式有三种:(以黑点表示采样该像素点的Y分量,以空心圆圈表示采用该像素点的UV分量)1.1 YUV444(1)每一个Y对应一组UV分量(2)单帧占用空间大小:w*h(Y) + w*h(U) + w*h(V) = w*h*31.2 YUV422(1)每两个Y共用一组UV分量(2)单帧占用空间大小:w*h(Y) + w*h*1/2(U...
2019-09-23 18:39:52
1027
原创 [Windows][Multimedia]ffmpeg build in MinGW
【MinGW篇】一、下载其地址:http://www.mingw.org/1.1 Download链接1.2 下载按钮二、安装2.1 安装路径及快捷方式2.2 下载进度2.3 组件...
2019-09-02 17:46:20
585
原创 [Multimedia]useful command for ffprobe&&ffplay&&ffmpeg
本文主要介绍ffmpeg中的ffprobe,ffplay&&ffmpeg常用命令.在做多媒体开发时,非常实用:ffprobe可以查看媒体信息,ffplay可以播放,ffmpeg可以转换文件.一、ffprobe篇格式:ffprobe [输入文件名]1.1查看mp4格式的文件ffprobe E:\work\video_clip\1-contain...
2019-09-02 14:47:15
277
原创 [Linux][Multimedia]ffmpeg compile and install
PartI:Linux ffmpeg下载cd /work/SourceCode/Sourcecode_FFMPEG/sourcecode_ffmpeg ;所有的源代码放在这个自创建目录下git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg下载完成,此路径下生成 ffmpeg/目录PartII:Linux ffmpeg编译...
2019-08-19 11:41:14
260
原创 [Linux][c/c++]Multi Makefile
1.目的主要是介绍一种多Makefile编译,即多个目录中含有Makefile,其好处是各自Makefile管理其对应目录的文件2.组件2.1 原始结构├── include│ ├── test1.h│ └── test2.h├── lib├── main│ ├── main.cpp│ └── Makefile├── Makefile├── obj...
2019-08-13 17:11:29
130
原创 [Android]initial delay and current time stamp in camerasource
Please note that:本文章为原创,若需转载,请指明该出处.=================================================================================sourcecode:http://androidxref.com/1369 void CameraSource::processBufferQueueF...
2019-07-12 14:59:33
469
原创 [Android] Codec paramter
Please note that:本文章为原创,若需转载,请指明该出处. ================================================================================= 本文章只从framework层介绍,omx层和kernel层涉及芯片厂商,代码不便写到这里!!!sourcecode:http://androidxref...
2019-07-12 14:57:43
495
原创 [ASM]How to implement c/c++ call asm in vs2017
Please note that:本文章为原创,若需转载,请指明该出处.=================================================================================VS2017使用C/C++调用汇编函数:1. 使用vs2017创建一个新的Windows控制台程序2. 新建项 .cpp 文件 文件3. 配置...
2019-06-19 14:19:40
821
原创 [Algorithms][C]Singly linked list
插入:头插入,尾插入,及指定位置插入 删除:头删除,尾删除,及指定位置插入 逆序: 查找: 计数: 打印:#include <stdio.h>#include <Windows.h>//节点结构体#define MAX_LEN_IN_KEY 16typedef struct Node { char key[MAX_LEN_IN_KEY+1]; ...
2019-06-04 15:35:46
119
转载 [Algorithms][C/C++]Seven classical sorting algorithms
一.交换排序 1.1冒泡排序及其改进 1.2快速排序 二.插入排序 2.1直接插入排序及其改进 2.2希尔(shell)排序 三.选择排序 3.1直接选择排序 3.2堆(Heap)排序 四.归并排序//交换void swap(int *x, int *y) { int tmp = *x; *x = *y; *y = tmp;}//一.交换排序...
2019-05-31 17:19:39
145
原创 SBA of anr/watchdog timeout
Please note that:本文章为原创,若需转载,请指明该出处.================================================================================= SBA of anr/watchdog...
2019-05-20 14:15:32
258
原创 [Android]tips for android framework development
Please note that:本文章为原创,若需转载,请指明该出处.=================================================================================PartI:抓取信息1.main&kernel logadb logcat -cadb logcat -v threadtime | tee l...
2019-05-07 17:22:49
172
原创 [Network]analysis of rtsp and rtp within wireshark
Please note that:本文章为原创,若需转载,请指明该出处.================================================================================= Wireshark Version 1.12.4 (v1.12.4-0-gb4861da from master-1.12)wireshark抓取...
2019-05-07 16:08:04
258
原创 [Android]Android compile image of system and kernel
PartI:build out image1、frameworkmake -j8 systemimage #Location:out\target\product\<chipset>\system.img或者make -j8 <target lib(32bit and 64bit)>,然后用 make snod 将上一步的目标库文件打包到 system.img...
2019-03-22 11:05:14
125
RGB-YUV-H264-H265查看分析
2019-01-24
奇异值分解
2015-04-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人