diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-02-15 22:53:23 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-02-15 22:53:23 +0100 |
commit | 204eacfbc596a77b104ab5eeb61f29371f10eda9 (patch) | |
tree | 5e820029eb0caa08130e2a929207d135d64531d1 /src/sls.h | |
parent | a8bf23a05c12f2c41e8a469feaed3bac2abb01df (diff) | |
download | ODR-PadEnc-204eacfbc596a77b104ab5eeb61f29371f10eda9.tar.gz ODR-PadEnc-204eacfbc596a77b104ab5eeb61f29371f10eda9.tar.bz2 ODR-PadEnc-204eacfbc596a77b104ab5eeb61f29371f10eda9.zip |
Hide/Move constants
Diffstat (limited to 'src/sls.h')
-rw-r--r-- | src/sls.h | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -150,8 +150,7 @@ struct fingerprint_t { */ class History { public: - static const size_t MAXHISTORYLEN; - + History() : History(MAXHISTORYLEN) {} History(size_t hist_size) : m_hist_size(hist_size), m_last_given_fidx(0) {} @@ -160,6 +159,9 @@ class History { int get_fidx(const char* filepath); private: + static const size_t MAXHISTORYLEN; + static const int MAXSLIDEID; + std::deque<fingerprint_t> m_database; size_t m_hist_size; @@ -199,6 +201,11 @@ public: // --- SLSManager ----------------------------------------------------------------- class SLSManager { private: + static const size_t MAXSEGLEN; + static const size_t MAXSLIDESIZE; + static const int MINQUALITY; + static const std::string SLS_PARAMS_SUFFIX; + void warnOnSmallerImage(size_t height, size_t width, const std::string& fname); #if HAVE_MAGICKWAND size_t resizeImage(MagickWand* m_wand, unsigned char** blob, const std::string& fname, bool* jfif_not_png); @@ -217,15 +224,10 @@ private: int cindex_header; int cindex_body; public: - static const size_t MAXSEGLEN; - static const size_t MAXSLIDESIZE; - static const int MAXSLIDEID; - static const int MINQUALITY; - static const std::string SLS_PARAMS_SUFFIX; - SLSManager(PADPacketizer* pad_packetizer) : pad_packetizer(pad_packetizer), cindex_header(0), cindex_body(0) {} bool encodeFile(const std::string& fname, int fidx, bool raw_slides); + static bool isSlideParamFileFilename(const std::string& filename); }; #endif /* SLS_H_ */ |