创建媒体图像从原始字节数组

发布于 2025-01-23 04:23:29 字数 150 浏览 3 评论 0原文

目前,我拥有以字节数组形式的图像的所有平面数据。 是否可以从可用数据中构造媒体图像?

我看到Media.Image和Media.Image.Plane类都是抽象的,无法扩展它们。

我们如何从RAW Image Channel Buffers创建媒体图像实例?

Currently I have all planes data of an image which is in the form of byte array.
Is it possible to construct a media.Image from the available data?

I see media.Image and media.Image.Plane classes are both abstract and unable to extend them.

How can we create a media.Image instance from raw image channel buffers?

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

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

发布评论

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

评论(1

能怎样 2025-01-30 04:23:29

此类允许通过一个或多个字节来有效地直接访问对图像的像素数据的访问。每个缓冲区都封装在一个平面的平面中,该平面描述了该平面中像素数据的布局。由于这种直接访问,并且与 bitmap 类不同,图像不能直接用作UI资源。

This class allows for efficient direct application access to the pixel data of the Image through one or more ByteBuffers. Each buffer is encapsulated in a Plane that describes the layout of the pixel data in that plane. Due to this direct access, and unlike the Bitmap class, Images are not directly usable as UI resources.

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