private float calculateScale(CodecPage codecPage) { return 1.0f * getTargetWidth() / codecPage.getWidth(); }
private int getScaledWidth(CodecPage vuPage, float scale) { return (int) (scale * vuPage.getWidth()); }