Package 

Class FractionResizer

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

      • FractionResizer

        FractionResizer(float fraction)
    • 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