-
- All Implemented Interfaces:
-
com.otaliastudios.transcoder.resize.Resizer
public class AtMostResizer implements Resizer
A Resizer that scales down the input size so that its dimension is smaller or equal to a certain value.
-
-
Constructor Summary
Constructors Constructor Description AtMostResizer(int atMost)Checks just the minor dimension. AtMostResizer(int atMostMinor, int atMostMajor)Checks both dimensions.
-
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. -
-
Constructor Detail
-
AtMostResizer
AtMostResizer(int atMost)
Checks just the minor dimension.- Parameters:
atMost- the dimension constraint
-
AtMostResizer
AtMostResizer(int atMostMinor, int atMostMajor)
Checks both dimensions.- Parameters:
atMostMinor- the minor dimension constraintatMostMajor- the major dimension constraint
-
-
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
-
-
-
-