aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2018-03-10 10:43:35 +0100
committerStefan Pöschel <github@basicmaster.de>2018-03-10 10:43:35 +0100
commitc63341374e910703eb5041e721d4ea61d420ab3b (patch)
tree6ec2d73b2f92d798c2fec72cd7bea607bb99f5c9
parent62b6e5460bd20e2f4adf2b4a47cda6422cf2159c (diff)
downloadODR-PadEnc-c63341374e910703eb5041e721d4ea61d420ab3b.tar.gz
ODR-PadEnc-c63341374e910703eb5041e721d4ea61d420ab3b.tar.bz2
ODR-PadEnc-c63341374e910703eb5041e721d4ea61d420ab3b.zip
SLS: limit segment DG size to 1024 bytes
This introduces a slightly larger overhead, but visibly reduces the slide acquisition time when a single slide is used and/or on reception errors.
-rw-r--r--src/sls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sls.cpp b/src/sls.cpp
index 330454f..4cb7848 100644
--- a/src/sls.cpp
+++ b/src/sls.cpp
@@ -255,7 +255,7 @@ void MOTHeader::AddExtension(int param_id, const uint8_t* data_field, size_t dat
// --- SLSEncoder -----------------------------------------------------------------
-const size_t SLSEncoder::MAXSEGLEN = 8189; // Bytes (EN 301 234 v2.1.1, ch. 5.1.1)
+const size_t SLSEncoder::MAXSEGLEN = 1013; // Bytes (EN 301 234 v2.1.1, ch. 5.1.1 limits to 8189); the complete DG will be 1024 bytes
const size_t SLSEncoder::MAXSLIDESIZE_SIMPLE = 51200; // Bytes (TS 101 499 v3.1.1, ch. 9.1.2)
const int SLSEncoder::MINQUALITY = 40; // Do not allow the image compressor to go below JPEG quality 40
const std::string SLSEncoder::SLS_PARAMS_SUFFIX = ".sls_params";