GithubHelp home page GithubHelp logo

camera's Introduction

Android Camera Demos

本项目主要有以下几点内容:

一、围绕Android相机的各种Demo,包括预览,RGB转换,视频录制和播放,滤镜等,每种Demo都会给出若干种解决方案

二、围绕Android相机及图像音频架构和原理做深入分析


一、相机预览

序号 项目名称 内容简介 状态
1 GLSurfacePreview GLSurfaceView + OpenGL相机预览,直接绘制到Display Surface Done
2 GLSurfacePreview2 GLSurfaceView + OpenGL相机预览,先绘制到FBO的Texture上,再处理后(变红)绘制到Display Surface Done
3 SurfacePreview SurfaceView + OpenGL + EGL相机预览,直接绘制到Display Surface Done
4 SurfacePreview2 SurfaceView + OpenGL + EGL相机预览,先绘制到PBuffer,再Blit到Display Surface Done
5 MultiSurfacePreview 相机预览到两个SurfaceView,共享EglContext,先绘制到Texture,再将Texture处理后Draw到另一个Surface Done

二、RGB转换

利用GPU将相机帧(NV21)转成RGB并传至CPU,帧为1920 * 1080,RGBA

序号 项目名称 内容简介 状态
1 RGBConverter1 从Display Surface调glReadPixels,性能很差,~500ms Pending
2 RGBConverter2 从EGL Pbuffer调glReadPixels,性能有较大提升,~60ms Pending
3 RGBConverter3 从FBO调glReadPixels,性能比PBuffer好一点,~25ms Pending
4 RGBConverter4 采用FBO + PBO,~5ms Pending
5 RGBConverter5 采用FBO + 2PBO,~3ms Pending

三,视频录制

序号 项目名称 内容简介 状态
1 recorder1 GLSurfaceView + MediaMuxer,不共享EglContext,只能录制相机预览 Pending
2 recorder2 SurfaceView + MediaMuxer,共享EglContext,可以录制整个Surface Pending
3 recorder3 只录制Surface上某一个部分,如人脸 Pending

四,视频播放

序号 项目名称 内容简介 状态
1 video1 SurfaceView播放原始视频 Pending
2 video2 视频裁剪播放,并增加一层遮罩 Pending

有问题或建议可以给我邮件

Email: [email protected]

camera's People

Contributors

dingjikerbo avatar

Watchers

James Cloos avatar suifengpiaobo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.