Beispiel #1
0
  private FrameRateControl getFrameRateCtrl() {
    if (frc != null) return frc;

    final Control[] controls = mp.getControls();
    for (int i = 0; i < controls.length; i++) {
      if (controls[i] instanceof FrameRateControl) {
        frc = (FrameRateControl) controls[i];
        return frc;
      }
    }
    return null;
  }
Beispiel #2
0
  private FramePositioningControl getFramePosCtrl() {
    if (fpc != null) return fpc;

    final Control[] controls = mp.getControls();
    for (int i = 0; i < controls.length; i++) {
      if (controls[i] instanceof FramePositioningControl) {
        fpc = (FramePositioningControl) controls[i];
        return fpc;
      }
    }
    return null;
  }