From c67b38712c02c25cb997df7a7b998203a2c6f9b4 Mon Sep 17 00:00:00 2001 From: luigi-liu Date: Sat, 23 Aug 2014 05:44:27 +0800 Subject: Update mot-encoder.cpp 1. apply the default sleepdelay between each slide 2. confine maximum DLS length to the specification. 3. avoid increasing constantly Transport ID --- src/mot-encoder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index fc60f62..2b73c10 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -56,7 +56,7 @@ extern "C" { #define STR(x) XSTR(x) #define MAXSEGLEN 8179 -#define MAXDLS 129 +#define MAXDLS 128 // limit defined in ETSI TS 102 980 #define MAXSLIDESIZE 50000 // Do not allow the image compressor to go below @@ -181,7 +181,7 @@ int main(int argc, char *argv[]) DIR *pDir = NULL; int padlen = 58; bool erase_after_tx = false; - int sleepdelay = 10; + int sleepdelay = SLEEPDELAY_DEFAULT; // apply the default delay const char* dir = NULL; const char* output = "/tmp/pad.fifo"; @@ -334,6 +334,7 @@ int main(int argc, char *argv[]) } slides_to_transmit.resize(0); + fidx = 0; // avoid increasing constantly TID } else if (dls_file) { // only DLS // Always retransmit DLS, we want it to be updated frequently -- cgit v1.2.3