原创 camera進入後臺被關閉問題

由於谷歌策略機制,camera無法在後臺長時間運行,activity在判斷camera進入後臺後,會調用到 frameworks/av/services/camera/libcameraservice/common template <

原创 android C++中查看調用者的pid

IPCThreadState::self()->getCallingPid();

原创 MEDIA_BUS_FMT各種格式含義

https://www.kernel.org/doc/html/latest/media/uapi/v4l/subdev-formats.html

原创 qnx參考文檔

http://www.qnx.com/developers/docs/7.0.0/   音視頻api查看: QNX Software Development Platform 7.0 Audio & Graphics API

原创 查看.so函數

nm -D libxxx.so

原创 內存帶寬測試

使用busmonitor測試內存帶寬 些內存帶寬佔用程序: int main(int argc,char *argv[]) { char* buf = (char*)malloc(MALLOC_SIZE);

原创 qnx無法編譯子目錄問題

報錯undefined reference to `main' include $(MKFILES_ROOT)/qmacros.mk 上面這一行要放到 EXTRA_SRCVPATH+= 這一行的下面

原创 android查看當前應用包名

dumpsys window | grep "mCurrentFocus"

原创 修改合成方式爲gpu合成

diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index ec5d7d5..da3

原创 camera波形異常問題

      上圖一個是正常波形,一個是異常的,爲解串器輸出波形,由於Y對應的幾個腳是異常波形,導致灰度異常。 查原因最後發現是因爲pinmux被dts其他地方佔用了,導致pinmux被修改

原创 openwrt添加SSH等應用

下載OpenWRT源碼包 git clone git://git.openwrt.org/openwrt.git 此時makemenuconfig中是沒有LUCI,SSH等功能的 進入源碼文件夾 cd openwrt 更新擴展軟件包:

原创 openwrt簡單ipk生成及Makefile解釋

前言 類似的文章其實網上比較多了,我寫這個的目的: 1,網上文章良莠不齊,有些自己都沒實際動手操作,隨便複製粘貼,實際操作不可行. 2,基本只講了操作,我當時最關心的Makefile文件的解釋沒有. 所以我自己總結了一篇.

原创 fatal error: mysql.h: No such file or directory

   轉自:http://tangmingjie2009.iteye.com/blog/1521088       我是在Ubuntu系統下測試的       此係統下,mysql安裝: apt-get install mysq

原创 沒有文件系統情況下通過彙編引用文件

 .section .mydata,#alloc  .globl my_data my_data:  .incbin "my.wav"  .globl  my_data_end  my_data_end:     然後再lds鏈接腳本中吧

原创 repo拉代碼The remote end hung up unexpectedly解決方法

git config --global http.lowSpeedLimit 0git config --global http.lowSpeedTime 999999