原创 cmake-tutorial cmake入門指引

轉自:https://cmake.org/cmake-tutorial/ 雖然講解不深,但盛在全面   Below is a step-by-step tutorial covering common build system use c

原创 Android性能優化 相關文檔

最近遇到Android性能優化問題,使用AS的profile看了下堆棧,“nSyncAndDrawFrame 耗時過長”,然後打開GPU渲染分析,紅色線條很長。 GPU渲染時的每個顏色代表的意義如下: 一般主要看深綠色和紅色就行,意義如

原创 Run ARM apps on the Android Emulator

以前debug Android程序都是用實體機debug,沒有用虛擬機的原因是手機App裏帶有第三方so,這些so還只有armeabi架構,直接運行在虛擬機裏會直接crash。找過一些x86模擬arm的插件,但是效率堪憂,慢的折騰人。 最

原创 ffmpeg常用命令及解釋

1. 從一個簡單轉碼示例 ffmpeg <global> <in-opts> -i <input> <out-opts> <output> ffmpeg -i sample.mov -c:v libx264 -c:a aac sa

原创 Build/Host/Target 通俗易懂 的 解釋

GNU triplet convention According to the GNU convention, there are three platforms involved in the software building: Bu

原创 Android 熱修復方案Tinker 系列文章

最近在看flutter熱更新,需要看下so的熱更新,找到了下面的系列文章,寫的很不錯。 Android 熱修復方案Tinker(一) Application改造 Android 熱修復方案Tinker(二) 補丁加載流程 Android

原创 FFmpeg裏的Bitstream Filter

Bitstream Filter Bitstream Filter: A bitstream filter operates on the encoded stream data, and performs bitstream

原创 導出ANR、tombstones文件 - 無懼Permission denied

1. root手機導出 這個沒什麼可說的,adb pull就行,提示權限不夠的話,adb root. down下來某個文件: adb pull /data/anr/traces.txt down下來整個文件夾 adb pull /data

原创 Learn OpenGL/WebGL資源

1. learn opengl 中文翻譯版 https://learnopengl-cn.github.io/ 2. 沒必要非要揪着opengl不放,從webgl入手更方便。這裏有dart和webgl結合的教程 https://githu

原创 C++的一個Tip:如何確定snprintf需要多大空間

const char *fmt = "sqrt(2) = %f"; int sz = std::snprintf(nullptr, 0, fmt, std::sqrt(2)); std::vector<char> buf(sz + 1)

原创 Android CPU, Compilers, D8 & R8

譯文轉自:https://juejin.im/post/5d70fb2ce51d4557ca7fddaa 很好的一篇文章,強烈推薦看下 Android CPU, Compilers, D8 & R8 此爲譯文,原文:Android CPU

原创 Flutter Engine C++ 源碼調試初探

原文:https://fucknmb.com/2019/12/06/Flutter-Engine-C-%E6%BA%90%E7%A0%81%E8%B0%83%E8%AF%95%E5%88%9D%E6%8E%A2/   備份防丟,推薦上述鏈

原创 Android so 加載原理分析

1. loadLibrary動態庫加載過程分析 http://gityuan.com/2017/03/26/load_library/ 2. 深入理解 System.loadLibrary https://pqpo.me/2017/05/

原创 Android Bitmap轉I420的坑,以及圖文詳解YUV420數據格式

今天Android要把Bitmap裏的數據轉成I420,用的YUV庫,但是總有色差。查了好久,最終發現 libyuv裏的名字和我們外面常用的正好相反,比如`libyuv::ABGRToI420`,輸入的數據格式要是ARGB_8888,這應

原创 iOS CPU架構 arm64/armv7s/armv7/armv7k/i386/x86_64

轉自:https://docs.elementscompiler.com/Platforms/Cocoa/CpuArchitectures/ CPU Architectures When building for the Cocoa pl