Package 

Class RotationHelper


  • @Deprecated() 
    public class RotationHelper
    
                        

    This will only be used on low APIs or when GL surface is not available. This risks OOMs and was never a good tool.

    • Method Summary

      Modifier and Type Method Description
      static Array<byte> rotate(@NonNull() Array<byte> yuv, @NonNull() Size size, int rotation) Rotates the given yuv image into another yuv array, by the given angle.
      • Methods inherited from class java.lang.Object

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

      • rotate

         static Array<byte> rotate(@NonNull() Array<byte> yuv, @NonNull() Size size, int rotation)

        Rotates the given yuv image into another yuv array, by the given angle.

        Parameters:
        yuv - image
        size - image size
        rotation - desired angle