Skip to content

genemerewether/sdflight-cameras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Snapdragon Flight camera debugging examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published