Config

interface Config

显示配置接口,用于管理显示设备的各种参数设置

提供视频编解码器、编码器、比特率、颜色格式、帧率等显示相关配置的设置和获取方法

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getColorFormat(): Int

获取当前设置的颜色格式

Link copied to clipboard
abstract fun getDensity(): Int

获取当前设置的显示密度

Link copied to clipboard
abstract fun getFrameRate(): Int

获取当前设置的帧率

Link copied to clipboard
abstract fun getHeight(): Int

获取当前设置的显示高度

Link copied to clipboard
abstract fun getIFrameInterval(): Int

获取当前设置的I帧间隔

Link copied to clipboard

获取当前设置的重复上一帧的延迟时间

Link copied to clipboard
abstract fun getVideoBitRate(): Int

获取当前设置的视频比特率

Link copied to clipboard
abstract fun getVideoCodec(): String

获取当前设置的视频编解码器

Link copied to clipboard
abstract fun getVideoEncoder(): String

获取当前设置的视频编码器

Link copied to clipboard
abstract fun getWidth(): Int

获取当前设置的显示宽度

Link copied to clipboard
abstract fun setColorFormat(colorFormat: Int)

设置颜色格式

Link copied to clipboard
abstract fun setDensity(density: Int)

设置显示密度

Link copied to clipboard
abstract fun setFrameRate(frameRate: Int)

设置帧率

Link copied to clipboard
abstract fun setHeight(height: Int)

设置显示高度

Link copied to clipboard
abstract fun setIFrameInterval(iFrameInterval: Int)

设置I帧间隔

Link copied to clipboard
abstract fun setRepeatPreviousFrameAfter(repeatPreviousFrameAfter: Long)

设置重复上一帧的延迟时间

Link copied to clipboard
abstract fun setVideoBitRate(videoBitRate: Int)

设置视频比特率

Link copied to clipboard
abstract fun setVideoCodec(videoCodec: String)

设置视频编解码器

Link copied to clipboard
abstract fun setVideoEncoder(videoEncoder: String)

设置视频编码器

Link copied to clipboard
abstract fun setWidth(width: Int)

设置显示宽度