创建媒体图像从原始字节数组
目前,我拥有以字节数组形式的图像的所有平面数据。 是否可以从可用数据中构造媒体图像?
我看到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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此类允许通过一个或多个字节来有效地直接访问对图像的像素数据的访问。每个缓冲区都封装在一个平面的平面中,该平面描述了该平面中像素数据的布局。由于这种直接访问,并且与 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.