完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Platform: ROCKCHIP
OS: Android 6.0 Kernel: 3.10.92 硬解: rk3288的VPU提供了JPEG的硬件编解码功能. 对应的so路径: rk3288/vendor/rockchip/common/vpu/lib/arm/libjpeghwenc.so rk3288/vendor/rockchip/common/vpu/lib/arm/libjpeghwdec.so 头文件: rk3288/hardware/rockchip/jpeghw/release/encode_release/hw_jpegenc.h rk3288/hardware/rockchip/jpeghw/release/decoder_release/hw_jpegdecapi.h 编码会在Camera模块拍照被用到: hardware/rockchip/camera/CameraHal/AppMsgNotifier.cpp int AppMsgNotifier::captureEncProcessPicture(FramInfo_s* frame){ ...... err = hw_jpeg_encode(&JpegInInfo, &JpegOutInfo); ...... } Android.mk LOCAL_SHARED_LIBRARIES:= ...... libjpeghwenc 解码调用处: rk3288/external/skia/src/images/SkImageDecoder_libjpeg.cpp bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { ...... if(hw_jpeg_decode(&hwInfo,&outInfo, &reuseBitmap, bm->width(), bm->height()) >= 0) ...... } Android.mk #ifeq ($(HAVE_LIBRKVPU), true) LOCAL_CFLAGS += -DUSE_HW_JPEG LOCAL_SRC_FILES += src/images/SkHwJpegUtility.cpp LOCAL_SHARED_LIBRARIES += libjpeghwdec LOCAL_C_INCLUDES += hardware/rockchip/jpeghw/release/decoder_release hardware/rockchip/librkvpu #endif 软解: Android自带软解库位于: rk3288/external/jpeg Android.mk: LOCAL_MODULE := libjpeg |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
343 浏览 0 评论
696 浏览 1 评论
602 浏览 1 评论
1833 浏览 1 评论
3083 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 08:02 , Processed in 0.636473 second(s), Total 73, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号