Camera2 API and beyond
summary
Camera2 requires managing many low-level pieces so the demo builds a from-scratch sample (forked from Google) that adds manual focus and white balance controls, an explicit state machine for preview→waiting-lock→pre-capture→capture to avoid spaghetti, and an OpenGL filter pipeline that saves filtered images via ImageReader. It explains the three-step preview-size pick (rotate, pick supported sizes, fit view), shows seven callbacks you must handle, and tests only on Pixel 2 and Pixel 3 so device quirks remain.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 3:34Motivation for Camera2 API
- 5:20Understanding Camera2 API basics
- 17:25Calculating preview sizes
- 23:17Breaking beyond basics
- 25:29Controlling camera modes
- 29:22Camera metering and focus
- 31:32OpenGL filters introduction
- 35:08Live demo with OpenGL
- 36:32Wrap-up and references








