Class SurfaceInfo


  • @Deprecated
    public final class SurfaceInfo
    extends Object
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Immutable value class for a Surface and supporting information.
    • Field Detail

      • width

        public final int width
        Deprecated.
        The width of frames rendered to the surface, in pixels.
      • height

        public final int height
        Deprecated.
        The height of frames rendered to the surface, in pixels.
      • orientationDegrees

        public final int orientationDegrees
        Deprecated.
        A counter-clockwise rotation to apply to frames before rendering them to the surface.

        Must be 0, 90, 180, or 270 degrees. Default is 0.

    • Constructor Detail

      • SurfaceInfo

        public SurfaceInfo​(Surface surface,
                           int width,
                           int height)
        Deprecated.
        Creates a new instance.
      • SurfaceInfo

        public SurfaceInfo​(Surface surface,
                           int width,
                           int height,
                           int orientationDegrees)
        Deprecated.
        Creates a new instance.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object