VideoFormat

  • Flutter

更新时间不可用

视频帧格式。

Dart
class VideoFormat {
  const VideoFormat({this.width, this.height, this.fps});

  @JsonKey(name: 'width')
  final int? width;
  @JsonKey(name: 'height')
  final int? height;
  @JsonKey(name: 'fps')
  final int? fps;
  factory VideoFormat.fromJson(Map<String, dynamic> json) =>
      _$VideoFormatFromJson(json);
  Map<String, dynamic> toJson() => _$VideoFormatToJson(this);
}

属性

参数名描述
width

视频帧的宽度(px)。默认值为 960。

height

视频帧的高度(px)。默认值为 540.

fps

视频帧的帧率。默认值为 15。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?