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
Click to show internal directories.
Click to hide internal directories.