Package 

Class AtMostResizer

  • 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
      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
    • 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 constraint
        atMostMajor - 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