Android应用程序中的JPEG硬件解码支持 [英] JPEG hardware Decode support in Android application

查看:739
本文介绍了Android应用程序中的JPEG硬件解码支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Android应用需要在Android 2.2手机(及更高版本)上解码基于高分辨率的JPEG图像,当前我正在使用BitmapFactory.decodeStream API(即SKIA库)对流进行解码.

My Android app needs to decode large resolution based JPEG images on Android 2.2 phones(and above), currently I am using BitmapFactory.decodeStream API, i.e. SKIA library to decode the stream.

1)据我所知,SKIA使用软件解码,即libJPEG进行解码,并且不使用硬件解码器.如果我错了,请纠正我.

1) As per my knowledge SKIA uses software decoding, i.e. libJPEG to decode and doesnot use hardware decoders for the same. Correct me if I am wrong.

2)是否有更快的方法来解码JPEG流(除SKIA以外)?

2) Is there any faster way to decode JPEG stream (other than SKIA) ?

3)可以使用媒体框架"来提供JPEG硬件解码吗?根据我的观察,它只能用于视频和音频.

3) Can "Media framework" be used to provide JPEG hardware decoding? As per my observation it can be only used for video and audio.

推荐答案

skia支持硬件加速的jpeg解码. Stagefright无法处理jpeg解码.

skia supports hardware accelerated jpeg decoding. Stagefright doesnt handle jpeg decoding.

这篇关于Android应用程序中的JPEG硬件解码支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆