public void setResolution(int l) { int h = 480; switch (l) { case 1: h = 720; break; case 2: h = 900; break; case 3: h = 1080; break; } trinusProcessor.decideResolution(h); }