Class Crop

    • Constructor Detail

      • Crop

        public Crop​(float left,
                    float right,
                    float bottom,
                    float top)
        Deprecated.
        Crops a smaller (or larger) frame, per normalized device coordinates (NDC), where the input frame corresponds to the square ranging from -1 to 1 on the x and y axes.

        left and bottom default to -1, and right and top default to 1, which corresponds to not applying any crop. To crop to a smaller subset of the input frame, use values between -1 and 1. To crop to a larger frame, use values below -1 and above 1.

        Parameters:
        left - The left edge of the output frame, in NDC. Must be less than right.
        right - The right edge of the output frame, in NDC. Must be greater than left.
        bottom - The bottom edge of the output frame, in NDC. Must be less than top.
        top - The top edge of the output frame, in NDC. Must be greater than bottom.
    • Method Detail

      • isNoOp

        public boolean isNoOp​(int inputWidth,
                              int inputHeight)
        Deprecated.
        Description copied from interface: GlEffect
        Returns whether a GlEffect applies no change at every timestamp.

        This can be used as a hint to skip this instance.

        Specified by:
        isNoOp in interface GlEffect
        Parameters:
        inputWidth - The input frame width, in pixels.
        inputHeight - The input frame height, in pixels.