@Override public void close(boolean fileOnly) throws IOException { try { if (r != null && r.getVar("openMovieFile") != null) { r.exec("openMovieFile.close()"); if (!fileOnly) { r.exec("m.disposeQTObject()"); r.exec("imageTrack.disposeQTObject()"); r.exec("QTSession.close()"); } } } catch (ReflectException e) { LOGGER.debug("Failed to close QuickTime session", e); } if (!fileOnly) { currentId = null; times = null; image = null; } }
@Override public void close(boolean fileOnly) throws IOException { try { if (r != null && r.getVar("openMovieFile") != null) { r.exec("openMovieFile.close()"); if (!fileOnly) { r.exec("m.disposeQTObject()"); r.exec("imageTrack.disposeQTObject()"); r.exec("QTSession.close()"); } } } catch (ReflectException e) { LOGGER.debug("Failed to close QuickTime session", e); } if (!fileOnly) { currentId = null; times = null; image = null; } }
if (leftParen < 0) { result = getVar(command); if (target != null) setVar(target, result); return result; for (int i=0; i<len; i++) { String arg = st.nextToken().trim(); args[i] = getVar(arg); Object var = getVar(className); if (var == null) { throw new ReflectException("Class not found: " + className); String varName = command.substring(0, dot).trim(); String methodName = command.substring(dot + 1).trim(); Object var = getVar(varName); if (var == null) { throw new ReflectException("No such variable: " + varName);
if (leftParen < 0) { result = getVar(command); if (target != null) setVar(target, result); return result; for (int i=0; i<len; i++) { String arg = st.nextToken().trim(); args[i] = getVar(arg); Object var = getVar(className); if (var == null) { throw new ReflectException("Class not found: " + className); String varName = command.substring(0, dot).trim(); String methodName = command.substring(dot + 1).trim(); Object var = getVar(varName); if (var == null) { throw new ReflectException("No such variable: " + varName);
r.exec("timeInfo = imageTrack.getNextInterestingTime(" + "StdQTConstants.nextTimeMediaSample, timeInfo.time, one)"); q = (Integer) r.getVar("timeInfo.time"); time = q.intValue();
r.exec("timeInfo = imageTrack.getNextInterestingTime(" + "StdQTConstants.nextTimeMediaSample, timeInfo.time, one)"); q = (Integer) r.getVar("timeInfo.time"); time = q.intValue();
int intsPerRow = ((Integer) r.getVar("intsPerRow")).intValue() / 4; r.exec("nativeLittle = EndianOrder.isNativeLittleEndian()"); boolean nativeLittle = ((Boolean) r.getVar("nativeLittle")).booleanValue(); if (nativeLittle) { int offset1, offset2; r.setVar("thisByte", pixels[offset1++]); r.exec("b = EndianOrder.flipBigEndianToNative32(thisByte)"); pixels2[offset2++] = ((Integer) r.getVar("b")).intValue(); int sim = ((Integer) r.getVar("similarity")).intValue(); boolean sync = sim == 0; r.exec("dataSize = cfInfo.getDataSize()");
int intsPerRow = ((Integer) r.getVar("intsPerRow")).intValue() / 4; r.exec("nativeLittle = EndianOrder.isNativeLittleEndian()"); boolean nativeLittle = ((Boolean) r.getVar("nativeLittle")).booleanValue(); if (nativeLittle) { int offset1, offset2; r.setVar("thisByte", pixels[offset1++]); r.exec("b = EndianOrder.flipBigEndianToNative32(thisByte)"); pixels2[offset2++] = ((Integer) r.getVar("b")).intValue(); int sim = ((Integer) r.getVar("similarity")).intValue(); boolean sync = sim == 0; r.exec("dataSize = cfInfo.getDataSize()");