Skip to content

Commit a6e5658

Browse files
authored
videoGrabberExample - set the inverted pixels to actual grabber dimensions (#6698)
#changelog #examples
1 parent 030f1b9 commit a6e5658

File tree

2 files changed

+3
-3
lines changed
  • examples

2 files changed

+3
-3
lines changed

examples/input_output/imageLoaderWebExample/src/ofApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void ofApp::setup(){
1212

1313
//--------------------------------------------------------------
1414
void ofApp::urlResponse(ofHttpResponse & response){
15-
if(response.status==200 && response.request.name == "tsingy_forest"){
15+
if(response.status==200 && response.request.name == "about"){
1616
img.load(response.data);
1717
loading=false;
1818
}else{

examples/video/videoGrabberExample/src/ofApp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ void ofApp::setup(){
1919
}
2020

2121
vidGrabber.setDeviceID(0);
22-
vidGrabber.setDesiredFrameRate(60);
22+
vidGrabber.setDesiredFrameRate(30);
2323
vidGrabber.initGrabber(camWidth, camHeight);
2424

25-
videoInverted.allocate(camWidth, camHeight, OF_PIXELS_RGB);
25+
videoInverted.allocate(vidGrabber.getWidth(), vidGrabber.getHeight(), OF_PIXELS_RGB);
2626
videoTexture.allocate(videoInverted);
2727
ofSetVerticalSync(true);
2828
}

0 commit comments

Comments
 (0)