原创 AudioTrack到AudioFlinger再到AudioPolicyService

AudioTrack調用createTrack的時候,根據參數調用getOutputAttr得到一個Output的io handle,再把這個handle傳給AudioFlinger,AudioFlinger會使用這個handle去查對應

原创 UNDERSTANDING ANDROID GRAPHICS INTERNALS – SURFACEFLINGER (III)

In this post, we discuss BufferQueue, BufferQueue::BufferSlotand BufferQueue::BufferState defined in frameworks/nativ

原创 UNDERSTANDING ANDROID GRAPHICS INTERNALS -SURFACEFLINGER(V)

from: https://charleszblog.wordpress.com/category/android-2/graphics-android/ This SurfaceFlinger series turns length

原创 Anonymous function in C++

C++ (since C++11) C++11 provides support for anonymous functions, calledlambda expressions. A lambda expression has the

原创 macbook搭建php開發環境

apache配置文件位置: /etc/apache2/httpd.conf 默認是PHP5,安裝完PHP7以後需要修改配置文件: #LoadMod

原创 SurfaceFlinger and HWComposer

Introduction In the beginning, people believes that GPU composition is fast and power effiecent compared with CPU com

原创 C++初始化列表中無默認構造函數的成員的初始化

 在初始化列表中,如果我們有一個類成員,它本身是一個類或者是一個結構,而且這個成員它只有一個帶參數的構造函數,而沒有默認構造函數,這時要對這個類成員進行初始化,就必須調用這個類成員的帶參數的構造函數。Android代碼中的例子:  249

原创 H.264 Profile、Level、Encoder三張簡圖

H.264有四種畫質級別,分別是BP、EP、MP、HP:   1、BP-Baseline Profile:基本畫質。支持I/P 幀,只支持無交錯(Progressive)和CAVLC;   2、EP-Extended profile:

原创 C++中的默認函數與default和delete用法

一、類中的默認函數   a.類中默認的成員函數   1.默認構造函數   2.默認析構函數   3.拷貝構造函數   4.拷貝賦值函數   5.移動構造函數   6.移動拷貝函數   b.類中自定義的操作符函數   1.operator

原创 vaapi 硬解 demo

MID Multimedia frameworks As an application vendor you may want to take advantage of this hardware video decode so

原创 Texture tiling and swizzling

from: https://fgiesen.wordpress.com/2011/01/17/texture-tiling-and-swizzling/ If you’re working with images in your pr

原创 Android L SurfaceFlinger dump信息全解(1)

SurfaceFlinger的dump信息詳解 對於很多Android的顯示問題,我們需要使用adb shell dumpsys SurfaceFlinger命令來獲取SurfaceFlinger的dump信息,這對於我們分析問

原创 C++ STL 學習 :for_each與仿函數(functor)(一)

C++ STL 學習 :for_each與仿函數(functor)(一) By zieckey( All right reserved!) 先看wikipedia定義: A function object, also called a

原创 Video Rendering with 8-Bit YUV Formats Gary Sullivan and Stephen Estrop Microsoft Digital Media Div

Video Rendering with 8-Bit YUV Formats Gary Sullivan and Stephen Estrop Microsoft Digital Media Division April 20

原创 C++ STL 學習 :更多仿函數(functor)(二)

By zieckey( All right reserved!)C++ STL 學習 :更多仿函數(functor)(二)C++標準程序庫中提供了許多非常有用的預先定義好的的仿函數,瞭解這些將爲我們的開發工作帶來便利性和穩健性。求反值: