class methods
- ofxAndroidVideoGrabber()
- ~ofxAndroidVideoGrabber()
- close()
- getBackCamera()
- getCameraOrientation()
- getFacingOfCamera()
- getFrontCamera()
- getHeight()
- getPixelFormat()
- getPixels()
- getTexturePtr()
- getWidth()
- isFrameNew()
- isInitialized()
- listDevices()
- setAutoFocus()
- setDesiredFrameRate()
- setDeviceID()
- setPixelFormat()
- setUsePixels()
- setVerbose()
- setup()
- supportsTextureRendering()
- update()
- videoSettings()
Extends
This class extends others, you can call their methods on an instance of ofxAndroidVideoGrabber too:
getBackCamera()
int ofxAndroidVideoGrabber::getBackCamera()
Documentation from code comments
Get device id of back facing camera. Returns -1 if no match is found
getCameraOrientation(...)
int ofxAndroidVideoGrabber::getCameraOrientation(int device)
Documentation from code comments
Get the physical orientation of the camera. Typically on a phone the camera mounted in landscape mode, this returns 90
getFacingOfCamera(...)
int ofxAndroidVideoGrabber::getFacingOfCamera(int device)
Documentation from code comments
Get facing of camera. Leave device = -1 to get selected cameras facing
Returns 0 on backfacing camera, and 1 on frontal facing camera.
getFrontCamera()
int ofxAndroidVideoGrabber::getFrontCamera()
Documentation from code comments
Get device id of front facing (selfie) camera. Returns -1 if no match is found
setDesiredFrameRate(...)
void ofxAndroidVideoGrabber::setDesiredFrameRate(int framerate)
Documentation from code comments
Set desired frame rate of the camera. By default will the camera pick the highest frame rate available
setDeviceID(...)
void ofxAndroidVideoGrabber::setDeviceID(int _deviceID)
Documentation from code comments
Set specific camera device id. Must be a value between 0 and numCameras. Default is first back facing camera
Last updated 星期二, 19 十一月 2024 17:23:29 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue