feat: 增加分辨率修改
This commit is contained in:
@@ -36,6 +36,9 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
$core.int? keyCode,
|
||||
$core.int? keyAction,
|
||||
$core.int? motionAction,
|
||||
$core.int? width,
|
||||
$core.int? height,
|
||||
$core.int? fps,
|
||||
}) {
|
||||
final result = create();
|
||||
if (action != null) result.action = action;
|
||||
@@ -49,6 +52,9 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
if (keyCode != null) result.keyCode = keyCode;
|
||||
if (keyAction != null) result.keyAction = keyAction;
|
||||
if (motionAction != null) result.motionAction = motionAction;
|
||||
if (width != null) result.width = width;
|
||||
if (height != null) result.height = height;
|
||||
if (fps != null) result.fps = fps;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -77,6 +83,9 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
..aI(9, _omitFieldNames ? '' : 'keyCode')
|
||||
..aI(10, _omitFieldNames ? '' : 'keyAction')
|
||||
..aI(11, _omitFieldNames ? '' : 'motionAction')
|
||||
..aI(12, _omitFieldNames ? '' : 'width')
|
||||
..aI(13, _omitFieldNames ? '' : 'height')
|
||||
..aI(14, _omitFieldNames ? '' : 'fps')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
@@ -201,6 +210,36 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
$core.bool hasMotionAction() => $_has(10);
|
||||
@$pb.TagNumber(11)
|
||||
void clearMotionAction() => $_clearField(11);
|
||||
|
||||
/// 分辨率切换(SET_RESOLUTION):目标宽度/长边(<=0 表示原生分辨率)
|
||||
@$pb.TagNumber(12)
|
||||
$core.int get width => $_getIZ(11);
|
||||
@$pb.TagNumber(12)
|
||||
set width($core.int value) => $_setSignedInt32(11, value);
|
||||
@$pb.TagNumber(12)
|
||||
$core.bool hasWidth() => $_has(11);
|
||||
@$pb.TagNumber(12)
|
||||
void clearWidth() => $_clearField(12);
|
||||
|
||||
/// 分辨率切换(SET_RESOLUTION):目标高度(<=0 时按屏幕宽高比基于 width 计算)
|
||||
@$pb.TagNumber(13)
|
||||
$core.int get height => $_getIZ(12);
|
||||
@$pb.TagNumber(13)
|
||||
set height($core.int value) => $_setSignedInt32(12, value);
|
||||
@$pb.TagNumber(13)
|
||||
$core.bool hasHeight() => $_has(12);
|
||||
@$pb.TagNumber(13)
|
||||
void clearHeight() => $_clearField(13);
|
||||
|
||||
/// 分辨率切换(SET_RESOLUTION):目标帧率(<=0 表示沿用当前帧率)
|
||||
@$pb.TagNumber(14)
|
||||
$core.int get fps => $_getIZ(13);
|
||||
@$pb.TagNumber(14)
|
||||
set fps($core.int value) => $_setSignedInt32(13, value);
|
||||
@$pb.TagNumber(14)
|
||||
$core.bool hasFps() => $_has(13);
|
||||
@$pb.TagNumber(14)
|
||||
void clearFps() => $_clearField(14);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
|
||||
Reference in New Issue
Block a user