Android SKIA图像解码 [英] Android SKIA Image Decoding
问题描述
HI
我目前正在研究Android如何解码和图像文件.当我检查代码时,似乎正在调用SKIA库.但是,我怎么知道基于源代码的android/skia支持的图像文件格式是什么?
I am currently studying how Android decode and image file. When I checked the code, it seems like it is calling the SKIA library. But, how do I know what are the image file format supported by android/skia basing on the source code?
我不是编程专家,因此我仍在尝试理解C ++和Java语言.
I am not an expert in programming, so I am still trying to understand C++ and Java language.
我现在在BitmapFactory.cpp(JNI文件)的SkImageDecoder* decoder = SkImageDecoder::Factory(stream);
迷路了. SkImageDecoder::Factory(stream)
似乎是模板.
I am now lost at SkImageDecoder* decoder = SkImageDecoder::Factory(stream);
inside the BitmapFactory.cpp (JNI file). SkImageDecoder::Factory(stream)
seems to be a template.
任何人都可以解释我SKImageDecoder::Factory()
内部发生了什么?任何反馈将不胜感激.
Anyone can explain me what is happening inside SKImageDecoder::Factory()
? Any feedback will be greatly appreciated.
谢谢,
脉络膜
Thanks,
artsylar
推荐答案
通过查看Android的源代码,我认为支持以下图像格式. ICO(Windows ICON图像格式),BMP,JPEG,WBMP,GIF和PNG.
By looking at the source codes of Android, I think the following image formats are supported. ICO (Windows ICON image format), BMP, JPEG, WBMP, GIF, and PNG.
如果我错了,请纠正我.谢谢你.
Please correct me if I am wrong. Thank you.
这篇关于Android SKIA图像解码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!