public interface Resizer
DefaultVideoStrategy
to compute the output size.
Note that a Size itself has no notion of which dimension is width and which is height.
The video strategy that consumes this resizer will check the input orientation (portrait / landscape)
so that they match.
To avoid this behavior and set exact width and height, instances can return an ExactSize.
In this case, width and height will be used as defined without checking for portrait / landscapeness
of input.
However, the final displayed video might be rotated because it might have a non-zero rotation tag
in metadata (this is frequently the case).| Modifier and Type | Method and Description |
|---|---|
Size |
getOutputSize(Size inputSize)
Parses the input size and returns the output.
|
@NonNull Size getOutputSize(@NonNull Size inputSize) throws java.lang.Exception
inputSize - the input video sizejava.lang.Exception - if something is wrong with input size