diff options
author | Stefan Pöschel <github@basicmaster.de> | 2018-03-04 21:48:12 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2018-03-04 21:48:12 +0100 |
commit | 62b6e5460bd20e2f4adf2b4a47cda6422cf2159c (patch) | |
tree | c56f1df35b56df43c3800bee9abd2d53ad87e754 /src/sls.h | |
parent | f2c65be1036bb5d7310c4a8714e14bb4496efebb (diff) | |
download | ODR-PadEnc-62b6e5460bd20e2f4adf2b4a47cda6422cf2159c.tar.gz ODR-PadEnc-62b6e5460bd20e2f4adf2b4a47cda6422cf2159c.tar.bz2 ODR-PadEnc-62b6e5460bd20e2f4adf2b4a47cda6422cf2159c.zip |
SLS: add option to limit slide size
Diffstat (limited to 'src/sls.h')
-rw-r--r-- | src/sls.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -224,13 +224,12 @@ public: class SLSEncoder { 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); + size_t resizeImage(MagickWand* m_wand, unsigned char** blob, const std::string& fname, bool* jfif_not_png, size_t max_slide_size); #endif bool parse_sls_param_id(const std::string &key, const std::string &value, uint8_t &target); bool check_sls_param_len(const std::string &key, size_t len, size_t len_max); @@ -246,13 +245,14 @@ private: int cindex_header; int cindex_body; public: + static const size_t MAXSLIDESIZE_SIMPLE; static const int APPTYPE_MOT_START; static const int APPTYPE_MOT_CONT; static const std::string REQUEST_REREAD_FILENAME; SLSEncoder(PADPacketizer* pad_packetizer) : pad_packetizer(pad_packetizer), cindex_header(0), cindex_body(0) {} - bool encodeSlide(const std::string& fname, int fidx, bool raw_slides); + bool encodeSlide(const std::string& fname, int fidx, bool raw_slides, size_t max_slide_size); static bool isSlideParamFileFilename(const std::string& filename); }; |