Enum FramePixelBufferFormat

    • Method Detail

      • values

        public static FramePixelBufferFormat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FramePixelBufferFormat c : FramePixelBufferFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FramePixelBufferFormat valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isBpc8

        public boolean isBpc8()
        Returns:
        true if the current format has only one plane
      • isI420

        public boolean isI420()
        Returns:
        true if the current format is i420 (has three planes)
      • getPixelFormat

        @Nullable
        public com.banuba.sdk.types.PixelFormat getPixelFormat()
        Get pixel format. IMPORTANT: available only for Bpc8 formats.
        Returns:
        pixel format or null if the format is not Bpc8
        See Also:
        Available formats of pixels (only RGBA available here)
      • getColorStandard

        @Nullable
        public com.banuba.sdk.effect_player.ColorStd getColorStandard()
        Get color standard. IMPORTANT: available only for i420 (yuv) formats.
        Returns:
        color standard or null if the format is not i420 (is not yuv)
        See Also:
        Available color standards
      • getColorRange

        @Nullable
        public com.banuba.sdk.effect_player.ColorRange getColorRange()
        Get color range. IMPORTANT: available only for i420 (yuv) formats.
        Returns:
        color range or null if the format is not i420 (is not yuv)
        See Also:
        Available color ranges
      • getPixelComponents

        public int getPixelComponents()
        Get number of color components. IMPORTANT: available only for bpc8 (RGB) formats.
        Returns:
        number of color components