Package 

Interface Resizer


  • 
    public interface Resizer
    
                        

    A general purpose interface that can be used (accepted as a parameter) by video strategies such as com.otaliastudios.transcoder.strategy.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).

    • Method Summary

      Modifier and Type Method Description
      abstract 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOutputSize

        @NonNull() abstract 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