原创 tools:在ubuntu 20.04上搭建weston環境

參考: https://wayland.freedesktop.org/building.html https://github.com/wayland-project/wayland-build-tools 1.git clone ht

原创 tools:vim以16進制打開和編輯文件

先用vim以二進制格式打開需要編輯或查看的文件,不採用-b參數有時會導致轉換錯誤,詳見分隔線後部分。 vim -b file-to-open.dat 然後用xxd把文件轉換成十六進制格式 :%!xxd 轉化後顯示類似如下 1 2

原创 display:weston渲染流程:buffer+attach+damage+frame

渲染流水線 一個Wayland client要將內存渲染到屏幕上,首先要申請一個graphic buffer,繪製完後傳給Wayland compositor並通知其重繪。Wayland compositor收集所有Wayland cli

原创 display:weston.ini文件配置

http://manpages.org/westonini/5 INTRODUCTION Weston obtains configuration from its command line parameters and the conf

原创 tools:vim在linux環境下的仿SourceInsight

安裝ctags 確認ctags是否安裝 $which ctags 安裝ctags $sudo apt install ctags 分別下載並安裝如下vim插件  Taglist:https://www.vim.org/script

原创 display:Wayland Architecture

Wayland Architecture A good way to understand the wayland architecture and how it is different from X is to follow an e

原创 tools:Autotool參數傳遞

  1.判斷某個文件是否存在,若不存在,想辦法告知對應的源碼[configure.ac;Makefile.am;source.c] a.configure.ac傳遞給Makefile.am diff --git a/configure.

原创 display:rk3288隨筆

http://www.t-firefly.com/doc/download/page/id/4.html 安裝:RK驅動助手 安裝:windows固件升級工具 下載:Ubuntu系統 下載:linux-sdk gpt源碼包 根據wiki設

原创 display:weston的client端繪畫[subsurface,fullscreen]

weston的源代碼裏面有關於client的繪畫例子 建議追蹤https://github.com/wayland-project/weston/blob/master/clients/ client端的例子一直在變,最近的一次改動將iv

原创 tools:makefile.am/Cmake編譯規則改爲Android.bp

三個可以查看庫文件的linux下工具。man或者--help查看更多 readelf nm ldd 關於Android.bp如何使用,查閱androidout目錄下的生成doc $ROOT/out/soong/docs error exa

原创 tools:drm-kms調試手段[modetest]

工具:modetest 工具路徑:libdrm/tests/modetest/ 環境:Qcom 使用方法:   usage: ./modetest [-cDdefMPpsCvwa] Query options: -c list

原创 display:YUV各種格式所佔字節數

YUV與RGB大致的轉換方式 R=Y+1.140*V G=Y-0.395*U-0.581*V B=Y+2.032*U Y=+0.299*R+0.587*G+0.114*B U=-0.147*R-0.289*G+0.436*B V=+0.6

原创 kernel:container_of()函數簡介

container_of(A, B,C) return B的地址。 運算邏輯A-C=B. A是一個地址,C是size,B是地址。 實際上 container_of(ptr, type,member)    判斷ptr 與 member 類

原创 Linux:tools: find| xargs grep侷限性

參考http://www.cocoachina.com/articles/50268 有時我們執行find ./ -name "xxx"|xargs grep -rn "xxx"失效,無法顯示任何內容; 有可能的原因是: 1.文件權限 2

原创 display:weston渲染流程:commit

接上一篇 display:weston渲染流程:buffer+attach+damage+frame https://blog.csdn.net/u012839187/article/details/100580627 下面講commit