← Back

ofxAVFoundationUtils

github.com/2bbb/ofxAVFoundationUtils · @2bbb
OF 0.10 Video/Camera macOS

utility for AVFoundation on macOS

2 0 Last commit 7y ago Created 7y ago

README

ofxAVFoundationGrabberEx



extended ofAVFoundationGrabber forked from core ofAVFoundationGrabber and add some features.

get unique id and other info set exposure, white balance, focus mode if device corresponds to.

how to use



class ofApp : public ofBaseApp {
    ofVideoGrabber grabber;
    std::shared_ptr<ofxAVFoundationGrabberEx> raw_grabber;
public:
    void setup() override {
        raw_grabber = std::make_shared<ofxAVFoundationGrabberEx>();
        grabber.setGrabber(raw_grabber);
        raw_grabber->setDeviceUniqueID("0x14220000046d081b");
        grabber.setup(1280, 720);
        raw_grabber->setExposureMode(CaptureExposureMode::Locked);
        std::string uniqueID = raw_grabber->getUniqueID();
        ...
    }
    ...
}


License



MIT License.

Author



Get this addon

HTTPS
SSH