加速框架 VimageConversion 库值 Planar8、PlanarF、ARGB8888、ARGBFFFF、RGBA8888 和 RGBAFFFF --?

发布于 2024-11-14 17:48:01 字数 576 浏览 2 评论 0原文

大家好,

我是图像处理新手,我需要使用 iphone4 进行一些图像处理。 Iphone 4 仅支持 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange/kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange/kCVPixelFormatType_420YpCbCr8BiPlanarfullRange

但我需要 YUV420、rgb24 和其他一些。我计划使用加速框架 VimageConversion 库进行转换。但框架使用 Planar8、PlanarF、ARGB8888、ARGBFFFF、RGBA8888 和 RGBAFFFF 格式进行所有处理。我怎样才能将此格式与 Iphone 支持的格式链接起来。我无法获得有关 Planar8、PlanarF、ARGB8888、ARGBFFFF、RGBA8888 和 RGBAFFFF 格式的任何解释。

任何人都可以解释一下 Planar8、PlanarF、ARGB8888、ARGBFFFF、RGBA8888 和 RGBAFFFF --?

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 .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 --?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

山有枢 2024-11-21 17:48:01

第一部分的意思是:

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

后一部分的意思是:

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

所以整个事情的意思就是

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)

并注意 4 位可以用一个十六进制数字表示。所以8位对应2个十六进制数,32位对应8个十六进制数。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文