国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項超值服

開通VIP
【轉(zhuǎn)】Android Copybit簡介

 Android Copybit簡介收藏

以前做Camera時為了解決VideoCamera取景時,在高分辨率下數(shù)碼變焦花屏的問題,找到的關(guān)于Copybit的資料,目前還沒找到出處。對Copybit沒有過多的研究,先貼到這兒,以后有時間好好研究一下。

Android HAL consists of several hardware accelerated modules, and copybit is one of them implemented in G1 phone.

WhileOpenGL ES cannot be used or it's in software implementation, copybit isused.  Actually in cupcake branch, SurfaceFlinger always uses copybitinstead of GL if copybit is available -- but that's an oversight.

[[ Functions ]]
copybitis just an abstraction for a basic 2D blitter with support forrotation, scaling and color/pixelformat conversions. These features canbe supported in full or partially.

If the copybit module is present, then SurfaceFlinger will try to use it instead of using OpenGL ES.

Onthe G1 copybit is used for all window compositions and video playback(CC and scaling), on this h/w copybit is very fast and provide very goodup and down scaling.

[[ Donut Changes ]]
HOWEVER, on therelease after Donut, the copybit module won't be used by SurfaceFlingerdirectly, instead it will be used as a back-end for our software OpenGLES 1.x and SurfaceFlinger will only use the OpenGL ES API.  Eventually,the copybit module will be phased out, instead, we will ask the ISV/OEMsto implement these features on their OpenGL ES drivers, if they thinkit is necessary.

[[ Usability ]]
If your h/w doesn't haveaccelerated GL, but has some sort of decent 2D blitter, you can write acopybit HAL module for it, and it will be used automatically bySurfaceFlinger -- at least under cupcake and donut.

[[ Limitations ]]
Thereare no mechanism to accelerate applications at the moment.  Skia is apurely software renderer. It can greatly benefit from newer CPUs though,which have SIMD instructions, often, it'll be able to operate at busspeed in that case. We're working on optimization in that area.

If a device has a GPU, it makes no sense to implement copybit, because

(1) it won't be used by apps and

(2) SurfaceFlinger already uses the GPU for its work.

Now,if the device has an additional 2D part (like the G1), it is useful toimplement copybit, this way application won't have to share the GPU withSurfaceFlinger

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Learning about Android Graphics Subsystem | M...
Surface Flinger boot flow in Android system -...
android顯示系統(tǒng)
android雙屏顯示的一些修改與嘗試
GUI顯示系統(tǒng)之SurfaceFlinger
Android核心分析(26)-----Android GDI之SurfaceFlinger
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服