File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/in/omerjerk/processing/video/android Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,7 @@ public CameraHandler(CameraHandlerCallback c) {
223
223
@ Override // runs on UI thread
224
224
public void handleMessage (Message inputMessage ) {
225
225
int what = inputMessage .what ;
226
- log ("CameraHandler [" + this + "]: what=" + what );
227
226
228
- // MainActivity activity = mWeakActivity.get();
229
227
if (callback == null ) {
230
228
return ;
231
229
}
@@ -287,6 +285,7 @@ public void startCamera(Integer cameraId) {
287
285
cameraId = 0 ;
288
286
}
289
287
try {
288
+ log ("Starting camera with camera id = " + cameraId );
290
289
mCamera = Camera .open (cameraId );
291
290
mCamera .setDisplayOrientation (90 );
292
291
} catch (Exception e ) {
@@ -419,8 +418,8 @@ private void prepareFrameBuffers() {
419
418
public void getImage (boolean loadPixels ) {
420
419
421
420
if (destpg == null || destpg .width != width || destpg .height != height ) {
422
- destpg = (PGraphicsOpenGL ) parent .createGraphics (width , height , PConstants .P2D );
423
- destpg .pgl .setGlThread (Thread .currentThread ());
421
+ destpg = (PGraphicsOpenGL ) parent .createGraphics (width , height , PConstants .P2D );
422
+ destpg .pgl .setGlThread (Thread .currentThread ());
424
423
}
425
424
426
425
destpg .beginDraw ();
You can’t perform that action at this time.
0 commit comments