Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,687 Members 41,340 Now Online
XDA Developers Android and Mobile Development Forum

[Q] how to get a live feed of the camera in native C++ on Google Glass

Tip us?
 
dkottas
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Apr 2014
Default [Q] how to get a live feed of the camera in native C++ on Google Glass

We are looking for a way to get a live feed of the camera in native C++ on
Google Glass. Our plan is to setup a CameraListener that will act as a
callback for when a image is recorded.
Right now, the problem comes in the camera connection process. So far, we
have tried to set up a SurfaceTexture to use with
android::Camera::setPreviewTexture(), and android::Camera::startPreview().
The application gets a reference to the Camera successfully, but when we
call setPreviewTexture with a SurfaceTexture that has been created via
OpenGL, the application crashes.
 
EnemyOfGlaDOS
Old
#2  
EnemyOfGlaDOS's Avatar
Recognized Contributor
Thanks Meter 1,286
Posts: 5,058
Join Date: Nov 2010
Location: Boulder, Colorado
Quote:
Originally Posted by dkottas View Post
We are looking for a way to get a live feed of the camera in native C++ on
Google Glass. Our plan is to setup a CameraListener that will act as a
callback for when a image is recorded.
Right now, the problem comes in the camera connection process. So far, we
have tried to set up a SurfaceTexture to use with
android::Camera::setPreviewTexture(), and android::Camera::startPreview().
The application gets a reference to the Camera successfully, but when we
call setPreviewTexture with a SurfaceTexture that has been created via
OpenGL, the application crashes.
have you checked out BBQScreen?
 
..New to XDA-Developers? Read This

my current devices
-OPPO X909- Omni nightlies
-Google Nexus 7 (2013 LTE)- Bone Stock
-Google Nexus 5- bone stock
-OPPO N1- Omni nightlies


GoogleNow/voice search Tricks and Tips
Need Ideas for your NFC enabled device?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes