android CodecCapabilities 圖像格式

A分量爲透明度分量,假如這個分量佔1bit,可以採用這個分量來設計背景透明的文字或圖像, 如果佔用多個bit,在可以通過這個bit設置多張圖片的重疊效應。

int    COLOR_Format12bitRGB444

每個像素12bit表示,RGB每個分量佔4bit

int    COLOR_Format16bitARGB1555

每個像素16bit表示,透明度A佔1個bit, RGB每個分量佔5bit

int    COLOR_Format16bitARGB4444

每個像素16bit表示,透明度RGB分量,每個分量佔用4bit表示

int    COLOR_Format16bitBGR565

每個像素佔用16bit, B分量佔用5bit, G分量佔用6bit, R分量佔用5bit

int    COLOR_Format16bitRGB565

每個像素佔用16bit, R分量5bit,G分量6bit, B分量5bit

int    COLOR_Format18BitBGR666

每個像素佔用18bit, BGA每個分量佔6bit

int    COLOR_Format18bitARGB1665

每個像素佔用18bit, 其中A佔用1bit, R佔用6bit, G佔用6bit, B佔用5bit

int    COLOR_Format18bitRGB666

每個像素佔用18bit, RGB每個分量佔用6bit

int    COLOR_Format19bitARGB1666

每個像素佔用19bit, A分量佔用1bit, RGB每個分量佔用6bit

int    COLOR_Format24BitABGR6666

每個像素佔用24bit, ABGR每個分量佔用6bit

int    COLOR_Format24BitARGB6666

每個像素佔用24bit, ARGB每個分量佔用6bit

int    COLOR_Format24bitARGB1887

每個像素佔用24bit, A分量佔用1bit, RG每個分量佔用8bit, B分量佔用7bit

int    COLOR_Format24bitBGR888

每個像素佔用24bit, BGR每個分量佔用8b it

int    COLOR_Format24bitRGB888

每個像素佔用24bit, RGB分量,每個分量佔用8bit

int    COLOR_Format25bitARGB1888

每個像素佔用25bit, 透明度A佔用1bit , RGB每個分量佔用8bit

int    COLOR_Format32bitARGB8888

每個像素佔用32bit, ARGB每個分量佔8bit

int    COLOR_Format32bitBGRA8888

每個像素佔用32bit, BGRA每個分量佔用8bit

int    COLOR_Format8bitRGB332

每個像素佔用8bit, 其中R分量佔用3bit, G分量佔用3bit, B分量佔用2bit

int    COLOR_FormatCbYCrY

前面所提及的圖像格式都是RGB三基色格式,而CbCrY是一種YUV信號,可以看成其實YUV信號經過縮放和便宜得到的。其中Y代表亮度信息,Cb,Cr爲色度信號,用於描述圖像的色彩以及飽和度,Cb爲飽和度信息,對應爲U, Cr爲色度信號對應爲V,

int    COLOR_FormatCrYCbY

同樣爲一種YUV信號,只是亮度,色調,飽和度信息與上述的不同而已。

int    COLOR_FormatL16

 

int    COLOR_FormatL2

                                                                                   

int    COLOR_FormatL24

                                                                                   

int    COLOR_FormatL32

                                                                                   

int    COLOR_FormatL4

                                                                                   

int    COLOR_FormatL8

                                                                                   

int    COLOR_FormatMonochrome

是一種單色圖像,具體量化值位數不詳

int    COLOR_FormatRawBayer10bit

彩色數碼相機需要3個單色的sensor獲得RGB分量,但這樣成本較高,爲了降低成本,在單sensor上通過RGB三色的馬賽克濾鏡獲得顏色分量,這一方法最初由bayer提出,所以取名爲bayer, 如下所示,濾鏡大概可以有一下四種圖案,即GB/RG, GR/BG, BG/GR, RG/GB, 每一個採樣點有10 bit ADC進行量化。


int    COLOR_FormatRawBayer8bit

與上面類似,不同在於每個採樣點由8bit量化

int    COLOR_FormatRawBayer8bitcompressed

                                                                                   

int    COLOR_FormatSurface

將一個android surface進行mediaCodec編碼

int    COLOR_FormatYCbYCr

是一種YUV編碼格式

int    COLOR_FormatYCrYCb

一種YUV編碼格式

int    COLOR_FormatYUV411PackedPlanar

這是一種緊縮格式,每4個連續的Y分量公用一個UV分量,並且Y分量和UV分量打包到同一個平面 ,和RGB方式類似,如圖

 

int    COLOR_FormatYUV411Planar

每4個連續的Y分量公用一個UV分量,但是UV分量打包到不同的平面,如圖所示

                                                                                   

int    COLOR_FormatYUV420PackedPlanar

YUV420 packet每2X2像素公用一個UV分量,並且將YUV打包到一個平面,如圖所示


int    COLOR_FormatYUV420PackedSemiPlanar

 

int    COLOR_FormatYUV420Planar

每2x2像素公用一個UV空間,Y分量空間後面跟U分量平面,然後爲V分量平面,如圖

                                                                                   

int    COLOR_FormatYUV420SemiPlanar

每2x2像素公用一個UV空間,這也看成是用隔行UV採樣。將UV分量交錯打包到一個平面中,如圖


int    COLOR_FormatYUV422PackedPlanar

每兩個連續的Y分量公用一個UV分量,並且採用緊湊型進行存儲

 

int    COLOR_FormatYUV422PackedSemiPlanar

                                                                                   

int    COLOR_FormatYUV422Planar

如下圖所示

                                                                                   

int    COLOR_FormatYUV422SemiPlanar


int    COLOR_FormatYUV444Interleaved

表示UV分量沒有下采樣,換句話,每一個Y分量都有獨自的UV分量,如下圖所示


int    COLOR_QCOM_FormatYUV420SemiPlanar

                                                                                

int    COLOR_TI_FormatYUV420PackedSemiPlanar

                                                                                    

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章