Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
2aa073f0
Commit
2aa073f0
authored
Feb 24, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提交分辨率更新
parent
770e2ea2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common-lib/src/main/java/com/mortals/xhx/common/pdu/DeviceReq.java
...b/src/main/java/com/mortals/xhx/common/pdu/DeviceReq.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
...n/java/com/mortals/xhx/busiz/web/DeviceApiController.java
+2
-2
No files found.
common-lib/src/main/java/com/mortals/xhx/common/pdu/DeviceReq.java
View file @
2aa073f0
...
...
@@ -174,7 +174,7 @@ public class DeviceReq implements Serializable {
//double radio=1920/1080;
System
.
out
.
println
(
NumberUtil
.
div
(
1
920
,
1080
,
2
));
System
.
out
.
println
(
NumberUtil
.
div
(
1
280
,
952
,
2
));
System
.
out
.
println
(
NumberUtil
.
div
(
1080
,
1920
,
2
));
System
.
out
.
println
(
NumberUtil
.
div
(
400
,
1280
,
2
));
System
.
out
.
println
(
NumberUtil
.
div
(
1024
,
600
,
2
));
...
...
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
View file @
2aa073f0
...
...
@@ -590,7 +590,7 @@ public class DeviceApiController {
if
(!
ObjectUtils
.
isEmpty
(
width
)
&&
!
ObjectUtils
.
isEmpty
(
height
))
{
//根据分辨率 自适应设置分辨率
double
div
=
NumberUtil
.
div
(
Double
.
parseDouble
(
width
),
Double
.
parseDouble
(
height
),
2
);
if
(
div
>=
1.
3
&&
div
<=
5.0
)
{
if
(
div
>=
1.
4
&&
div
<=
5.0
)
{
deviceEntity
.
setResolutionValue
(
ImageReEnum
.
RE_1920X1080
.
getDesc
());
deviceEntity
.
setResolution
(
ImageReEnum
.
RE_1920X1080
.
getDesc
());
log
.
info
(
"1.3 < div < 5.0"
);
...
...
@@ -600,7 +600,7 @@ public class DeviceApiController {
deviceEntity
.
setResolution
(
ImageReEnum
.
RE_1080X1920
.
getDesc
());
log
.
info
(
"0.1 < div < 0.79"
);
//System.out.println("1.7 < div < 1.8");
}
else
if
(
div
>=
0.8
&&
div
<=
1.
2
9
)
{
}
else
if
(
div
>=
0.8
&&
div
<=
1.
3
9
)
{
deviceEntity
.
setResolutionValue
(
ImageReEnum
.
RE_1280X1280
.
getDesc
());
deviceEntity
.
setResolution
(
ImageReEnum
.
RE_1280X1280
.
getDesc
());
log
.
info
(
"div >= 0.9 && div <= 1.1"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment