]> sjero.net Git - qpsnr/blob - src/settings.h
Initial Commit of QPSNR (version 0.2.1)
[qpsnr] / src / settings.h
1 /*
2 *       qpsnr (C) 2010 E. Oriani, ema <AT> fastwebnet <DOT> it
3 *
4 *       This file is part of qpsnr.
5 *
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.
10 *
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.
15 *
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/>.
18 */
19
20 #ifndef _SETTINGS_H_
21 #define _SETTINGS_H_
22
23 #include <string>
24 #include <iostream>
25
26 #define LEVEL_LOG_ERROR         (0x01)
27 #define LEVEL_LOG_WARNING       (0x02)
28 #define LEVEL_LOG_INFO          (0x04)
29 #define LEVEL_LOG_DEBUG         (0x08)
30
31 #define __LOG(x)                if ( x & settings::LOG) std::cerr
32
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] "
37
38 namespace settings {
39         extern char             LOG;
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;
48 }
49
50
51 #endif /*_SETTINGS_H_*/
52