diff options
author | Stefan Pöschel <github@basicmaster.de> | 2018-03-10 10:43:35 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2018-03-10 10:43:35 +0100 |
commit | c63341374e910703eb5041e721d4ea61d420ab3b (patch) | |
tree | 6ec2d73b2f92d798c2fec72cd7bea607bb99f5c9 /src | |
parent | 62b6e5460bd20e2f4adf2b4a47cda6422cf2159c (diff) | |
download | ODR-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/sls.cpp | 2 |
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"; |