diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-08-24 10:15:31 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-08-24 10:15:31 +0200 |
commit | 65b6c374e716878c46f7ff8ee86f25a5807c29cd (patch) | |
tree | 1e6908d7bf1532c667783c4c6aa83c3ea3b9289c /src/sls.cpp | |
parent | 6a835162ecafe48609aa866a800289670a0c9f3c (diff) | |
download | ODR-PadEnc-65b6c374e716878c46f7ff8ee86f25a5807c29cd.tar.gz ODR-PadEnc-65b6c374e716878c46f7ff8ee86f25a5807c29cd.tar.bz2 ODR-PadEnc-65b6c374e716878c46f7ff8ee86f25a5807c29cd.zip |
Make data group apptypes constants
Diffstat (limited to 'src/sls.cpp')
-rw-r--r-- | src/sls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sls.cpp b/src/sls.cpp index a401bad..a36c5da 100644 --- a/src/sls.cpp +++ b/src/sls.cpp @@ -255,6 +255,8 @@ const size_t SLSEncoder::MAXSEGLEN = 8189; // Bytes (EN 301 234 v2.1.1, c const size_t SLSEncoder::MAXSLIDESIZE = 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"; +const int SLSEncoder::APPTYPE_MOT_START = 12; +const int SLSEncoder::APPTYPE_MOT_CONT = 13; void SLSEncoder::warnOnSmallerImage(size_t height, size_t width, const std::string& fname) { @@ -733,7 +735,7 @@ void SLSEncoder::createMscDG(MSCDG* msc, unsigned short int dgtype, DATA_GROUP* SLSEncoder::packMscDG(MSCDG* msc) { - DATA_GROUP* dg = new DATA_GROUP(9 + msc->seglen, 12, 13); + DATA_GROUP* dg = new DATA_GROUP(9 + msc->seglen, APPTYPE_MOT_START, APPTYPE_MOT_CONT); uint8_vector_t &b = dg->data; // headers |