Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.25 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.25 KB

This repository is for debugging simplified use cases for Snapdragon Flight Linux Camera API

Use-cases that are being debugged

Multi-process

  • This successful test operates 4K and optic flow cameras in separate processes
  • This should complete with no asserts or red errors

remote, over adb

make test_multiproc

native

./main_optic &
./main_hires

Single process, accessing camera API in main thread

  • This test, which tries to take a picture using the 4K camera while optic flow preview callbacks are occuring, fails.

remote, over adb

make test_main_simul

native

./main_simul

Overall use case: optic flow and 4K camera simultaneous capture

  • optic flow camera onPreviewFrame callbacks always on
  • 4K camera takePicture intermittently
  • 4K camera startRecording and stopRecording intermittently

Code design / classes

  • One class for 4K camera, one for optic flow camera
  • Both declared at global scope (doesn't seem to matter)

Makefile

Environment (cross-compiling)

  • Make sure HEXAGON_SDK_ROOT and HEXAGON_ARM_SYSROOT are defined
  • Run make

Environment (native)

  • no special setup needed
adb push ../sdflight-cameras /home/linaro/sdflight-cameras
adb shell
cd /home/linaro/sdflight-cameras
make