Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP dkottas

3rd April 2014, 12:58 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Apr 2014
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.
4th April 2014, 10:14 PM   |  #2  
EnemyOfGlaDOS's Avatar
Recognized Contributor
Flag Boulder, Colorado
Thanks Meter: 1,286
 
5,059 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by dkottas

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?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes