camera_capture

command
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Overview

Camera frame capture using gralloc-allocated buffers.

This example connects to the camera via binder, allocates real gralloc buffers through IAllocator, captures frames, and verifies the pixel data.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/camera_capture ./examples/camera_capture/
adb push build/camera_capture /data/local/tmp/ && adb shell /data/local/tmp/camera_capture

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL