-
- All Implemented Interfaces:
-
com.otaliastudios.transcoder.resize.Resizer
public class FractionResizer implements Resizer
A Resizer that reduces the input size by the given fraction. This ensures that output dimensions are not an odd number (refused by a few codecs).
-
-
Constructor Summary
Constructors Constructor Description FractionResizer(float fraction)
-
Method Summary
Modifier and Type Method Description SizegetOutputSize(@NonNull() Size inputSize)Parses the input size and returns the output.This method should throw an exception if the input size is not processable. -
-
Method Detail
-
getOutputSize
@NonNull() Size getOutputSize(@NonNull() Size inputSize)
Parses the input size and returns the output.This method should throw an exception if the input size is not processable.
- Parameters:
inputSize- the input video size
-
-
-
-