Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmueb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
KSZK
Schönherz Mátrix
libmueb
Commits
9ea9ea7b
Commit
9ea9ea7b
authored
4 years ago
by
bodzsoaa
Browse files
Options
Downloads
Patches
Plain Diff
Replace max pixel per datagram with frame fragment size
parent
4c5f964c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/configuration.cc
+3
-3
3 additions, 3 deletions
src/configuration.cc
src/configuration.h
+2
-2
2 additions, 2 deletions
src/configuration.h
src/muebreceiver.cc
+1
-1
1 addition, 1 deletion
src/muebreceiver.cc
src/muebtransmitter.cc
+2
-2
2 additions, 2 deletions
src/muebtransmitter.cc
with
8 additions
and
8 deletions
src/configuration.cc
+
3
−
3
View file @
9ea9ea7b
...
@@ -65,8 +65,8 @@ std::uint32_t Configuration::packet_payload_size() const {
...
@@ -65,8 +65,8 @@ std::uint32_t Configuration::packet_payload_size() const {
return
packet_payload_size_
;
return
packet_payload_size_
;
}
}
std
::
uint32_t
Configuration
::
max_pixel_per_datagram
()
const
{
std
::
uint32_t
Configuration
::
frame_fragment_size
()
const
{
return
max_pixel_per_datagram
_
;
return
frame_fragment_size
_
;
}
}
std
::
uint32_t
Configuration
::
remainder_packet_size
()
const
{
std
::
uint32_t
Configuration
::
remainder_packet_size
()
const
{
...
@@ -139,7 +139,7 @@ void Configuration::LoadSettings() {
...
@@ -139,7 +139,7 @@ void Configuration::LoadSettings() {
packet_size_
=
packet_size_
=
packet_header_size_
+
max_windows_per_datagram_
*
window_byte_size_
;
packet_header_size_
+
max_windows_per_datagram_
*
window_byte_size_
;
packet_payload_size_
=
max_windows_per_datagram_
*
window_byte_size_
;
packet_payload_size_
=
max_windows_per_datagram_
*
window_byte_size_
;
max_pixel_per_datagram
_
=
max_windows_per_datagram_
*
pixels_per_window_
;
frame_fragment_size
_
=
max_windows_per_datagram_
*
pixels_per_window_
*
3
;
max_packet_number_
=
static_cast
<
std
::
uint32_t
>
(
max_packet_number_
=
static_cast
<
std
::
uint32_t
>
(
std
::
ceil
(
static_cast
<
float
>
(
windows_
)
/
max_windows_per_datagram_
));
std
::
ceil
(
static_cast
<
float
>
(
windows_
)
/
max_windows_per_datagram_
));
...
...
This diff is collapsed.
Click to expand it.
src/configuration.h
+
2
−
2
View file @
9ea9ea7b
...
@@ -53,7 +53,7 @@ class Configuration : public QObject {
...
@@ -53,7 +53,7 @@ class Configuration : public QObject {
std
::
uint32_t
packet_payload_size
()
const
;
std
::
uint32_t
packet_payload_size
()
const
;
std
::
uint32_t
max_pixel_per_datagram
()
const
;
std
::
uint32_t
frame_fragment_size
()
const
;
std
::
uint32_t
remainder_packet_size
()
const
;
std
::
uint32_t
remainder_packet_size
()
const
;
...
@@ -92,7 +92,7 @@ class Configuration : public QObject {
...
@@ -92,7 +92,7 @@ class Configuration : public QObject {
std
::
uint32_t
packet_header_size_
;
std
::
uint32_t
packet_header_size_
;
std
::
uint32_t
packet_size_
;
std
::
uint32_t
packet_size_
;
std
::
uint32_t
packet_payload_size_
;
std
::
uint32_t
packet_payload_size_
;
std
::
uint32_t
max_pixel_per_datagram
_
;
std
::
uint32_t
frame_fragment_size
_
;
std
::
uint32_t
remainder_packet_size_
;
std
::
uint32_t
remainder_packet_size_
;
std
::
uint16_t
unicast_animation_port_
;
std
::
uint16_t
unicast_animation_port_
;
std
::
uint16_t
broadcast_animation_port_
;
std
::
uint16_t
broadcast_animation_port_
;
...
...
This diff is collapsed.
Click to expand it.
src/muebreceiver.cc
+
1
−
1
View file @
9ea9ea7b
...
@@ -70,7 +70,7 @@ void MuebReceiver::readPendingDatagrams() {
...
@@ -70,7 +70,7 @@ void MuebReceiver::readPendingDatagrams() {
data
.
remove
(
0
,
d_ptr_
->
configuration
.
packet_header_size
());
data
.
remove
(
0
,
d_ptr_
->
configuration
.
packet_header_size
());
auto
frame_begin
=
auto
frame_begin
=
d_ptr_
->
frame
.
bits
()
+
d_ptr_
->
frame
.
bits
()
+
packet_number
*
d_ptr_
->
configuration
.
max_pixel_per_datagram
();
packet_number
*
d_ptr_
->
configuration
.
frame_fragment_size
();
// Uncompress 1 byte into 2 color components
// Uncompress 1 byte into 2 color components
if
(
d_ptr_
->
configuration
.
color_depth
()
<
5
)
{
if
(
d_ptr_
->
configuration
.
color_depth
()
<
5
)
{
...
...
This diff is collapsed.
Click to expand it.
src/muebtransmitter.cc
+
2
−
2
View file @
9ea9ea7b
...
@@ -76,8 +76,8 @@ class MuebTransmitterPrivate {
...
@@ -76,8 +76,8 @@ class MuebTransmitterPrivate {
data
.
append
(
configuration_
.
protocol_type
())
data
.
append
(
configuration_
.
protocol_type
())
.
append
(
packet_number
++
)
.
append
(
packet_number
++
)
.
append
(
reduced_compressed_frame
.
sliced
(
.
append
(
reduced_compressed_frame
.
sliced
(
i
*
configuration_
.
packet_payload
_size
(),
i
*
configuration_
.
frame_fragment
_size
(),
configuration_
.
packet_payload
_size
()));
configuration_
.
frame_fragment
_size
()));
datagram_
.
setData
(
data
);
datagram_
.
setData
(
data
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment