2 * qpsnr (C) 2010 E. Oriani, ema <AT> fastwebnet <DOT> it
4 * This file is part of qpsnr.
6 * qpsnr is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * qpsnr is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with qpsnr. If not, see <http://www.gnu.org/licenses/>.
26 #define LEVEL_LOG_ERROR (0x01)
27 #define LEVEL_LOG_WARNING (0x02)
28 #define LEVEL_LOG_INFO (0x04)
29 #define LEVEL_LOG_DEBUG (0x08)
31 #define __LOG(x) if ( x & settings::LOG) std::cerr
33 #define LOG_ERROR __LOG(LEVEL_LOG_ERROR) << "[ERROR] "
34 #define LOG_WARNING __LOG(LEVEL_LOG_WARNING) << "[WARNING] "
35 #define LOG_INFO __LOG(LEVEL_LOG_INFO) << "[INFO] "
36 #define LOG_DEBUG __LOG(LEVEL_LOG_DEBUG) << "[DEBUG] "
40 extern std::string REF_VIDEO;
41 extern int MAX_FRAMES;
42 extern int SKIP_FRAMES;
43 extern bool SAVE_IMAGES;
44 extern std::string ANALYZER;
45 extern bool IGNORE_FPS;
46 extern int VIDEO_SIZE_W;
47 extern int VIDEO_SIZE_H;
51 #endif /*_SETTINGS_H_*/