开发者

Accelerate Framework VimageConversion library values Planar8, PlanarF, ARGB8888, ARGBFFFF, RGBA8888, and RGBAFFFF --?

开发者 https://www.devze.com 2023-03-12 08:48 出处:网络
H all, Am new to Image processing and i need to some image processing using iphone4. Iphone 4 supported onlykCVPixelFormatType_420YpCbCr8BiPlanarVideoRange/kCVPixelFormatType_420YpCbCr8BiPlanarVideoR

H all,

Am new to Image processing and i need to some image processing using iphone4. Iphone 4 supported only kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange/kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange/kCVPixelFormatType_420YpCbCr8BiPlanarfullRange .

but i need YUV420,rgb24 and some other开发者_如何学Python .i planned to convert using Accelerate Framework VimageConversion library. but framework did all processing using Planar8, PlanarF, ARGB8888, ARGBFFFF, RGBA8888, and RGBAFFFF Format . how can i link this format with Iphone's supported format. i couldn't get any explaination about Planar8, PlanarF, ARGB8888, ARGBFFFF, RGBA8888, and RGBAFFFF format .

Any one could me Explain about Planar8, PlanarF, ARGB8888, ARGBFFFF, RGBA8888, and RGBAFFFF --?


The first part means:

Planar ==> Monochrome (Gray)
ARGB ==> Alpha (transparency), Red, Green, Blue
RGBA ==> Red, Green, Blue, Alpha

And the latter part means:

8 ==> value in 8 bit
F ==> value in 32 bit

So the whole thing will mean

Planar8 ==> Gray scale in 8 bit
PlanarF ==> Gray scale in 32 bit
ARGB8888 ==> Alpha, Red, Green, Blue in 8 bit each (total 32 bit)
ARGBFFFF ==> Alpha, Red, Green, Blue in 32 bit each (total 128 bit)
RGBA8888 ==> Red, Green, Blue, Alpha in 8 bit each (total 32 bit)
RGBAFFFF ==> Red, Green, Blue, Alpha in 32 bit each (total 128 bit)
ARGB1555 => Alpha 1 bit, Red, Green, Blue 5 bit each (total 16 bit)

And note that 4 bit may be expressed by one hexadecimal digit. So 8 bit corresponds to 2 hexadecimal, and 32 bit corresponds to 8 hexadecimal digits.

0

精彩评论

暂无评论...
验证码 换一张
取 消