From c63341374e910703eb5041e721d4ea61d420ab3b Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sat, 10 Mar 2018 10:43:35 +0100 Subject: 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. --- src/sls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sls.cpp') 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"; -- cgit v1.2.3