Enum VideoRenderType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<VideoRenderType>

    public enum VideoRenderType
    extends java.lang.Enum<VideoRenderType>
    视频外部渲染时,用于指定数据类型
    • Enum Constant Detail

      • VIDEO_RENDER_TYPE_NONE

        public static final VideoRenderType VIDEO_RENDER_TYPE_NONE
        默认值, 不开外部渲染
      • VIDEO_RENDER_TYPE_RGB

        public static final VideoRenderType VIDEO_RENDER_TYPE_RGB
        默认 BGRA32(Android 为 RGBA32), 外部渲染同时内部不渲染
      • VIDEO_RENDER_TYPE_YUV

        public static final VideoRenderType VIDEO_RENDER_TYPE_YUV
        默认 I420, 外部渲染同时内部不渲染
      • VIDEO_RENDER_TYPE_ANY

        public static final VideoRenderType VIDEO_RENDER_TYPE_ANY
        由返回参数指定类型, 外部渲染同时内部不渲染
      • VIDEO_RENDER_TYPE_EXTERNAL_INTERNAL_RGB

        public static final VideoRenderType VIDEO_RENDER_TYPE_EXTERNAL_INTERNAL_RGB
        外部渲染同时内部渲染,且数据格式为 RGB。默认 BGRA32(Android 为 RGBA32)
      • VIDEO_RENDER_TYPE_EXTERNAL_INTERNAL_YUV

        public static final VideoRenderType VIDEO_RENDER_TYPE_EXTERNAL_INTERNAL_YUV
        外部渲染同时内部渲染,且数据格式为 YUV。默认 I420
    • Method Detail

      • values

        public static VideoRenderType[] 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 (VideoRenderType c : VideoRenderType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VideoRenderType 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
      • value

        public int value()
      • valueOf

        public static VideoRenderType valueOf​(int value)
        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:
        value - 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