Statistics
| Branch: | Revision:

chunker-player / chunker_player / player_defines.h @ 59e008ed

History | View | Annotate | Download (2.76 KB)

1
#ifndef _CHUNKER_PLAYER_DEFINES_H
2
#define _CHUNKER_PLAYER_DEFINES_H
3

    
4
#include "codec_definitions.h"
5

    
6
#define PLAYER_FAIL_RETURN -1
7
#define PLAYER_OK_RETURN 0
8

    
9
#define MAX_CHANNELS_NUM 255
10

    
11
#define SDL_AUDIO_BUFFER_SIZE 1024
12

    
13
#define MAX_TOLLERANCE 40
14
#define AUDIO        1
15
#define VIDEO        2
16
#define QUEUE_MAX_GROW_FACTOR 20
17
#define CHANNEL_SCORE_HISTORY_SIZE 1000
18

    
19
#define FULLSCREEN_ICON_FILE "icons/fullscreen32.png"
20
#define NOFULLSCREEN_ICON_FILE "icons/nofullscreen32.png"
21
#define FULLSCREEN_HOVER_ICON_FILE "icons/fullscreen32.png"
22
#define NOFULLSCREEN_HOVER_ICON_FILE "icons/nofullscreen32.png"
23
#define AUDIO_ON_ICON_FILE "icons/audio_on.png"
24
#define AUDIO_OFF_ICON_FILE "icons/audio_off.png"
25
#define PSNR_LED_RED_ICON_FILE "icons/red_led.png"
26
#define PSNR_LED_YELLOW_ICON_FILE "icons/yellow_led.png"
27
#define PSNR_LED_GREEN_ICON_FILE "icons/green_led.png"
28

    
29
#define CHANNEL_UP_ICON_FILE "icons/up_16.png"
30
#define CHANNEL_DOWN_ICON_FILE "icons/down_16.png"
31

    
32
#define DEFAULT_CHANNEL_EXEC_PATH "../Streamer/"
33
#define DEFAULT_CONF_FILENAME "channels.conf"
34
#define DEFAULT_PEEREXECNAME_FILENAME "peer_exec_name.conf"
35
#define DEFAULT_PEER_EXEC_NAME "winestreamer-ml-monl-http"
36

    
37
#define DEFAULT_WIDTH 704
38
#define DEFAULT_HEIGHT 576
39
#define DEFAULT_RATIO 1.22
40

    
41
#define BUTTONS_LAYER_OFFSET 20
42
#define BUTTONS_CONTAINER_HEIGHT 40
43
#define BUTTONS_CONTAINER_WIDTH 100
44

    
45
#define FULLSCREEN_BUTTON_INDEX 0
46
#define NO_FULLSCREEN_BUTTON_INDEX 1
47
#define CHANNEL_UP_BUTTON_INDEX 2
48
#define CHANNEL_DOWN_BUTTON_INDEX 3
49
#define AUDIO_OFF_BUTTON_INDEX 4
50
#define AUDIO_ON_BUTTON_INDEX 5
51
#define PSNR_LED_RED_BUTTON_INDEX 6
52
#define PSNR_LED_YELLOW_BUTTON_INDEX 7
53
#define PSNR_LED_GREEN_BUTTON_INDEX 8
54

    
55
#define LED_RED     0
56
#define LED_YELLOW  1
57
#define LED_GREEN   2
58

    
59
#define LED_THRS_RED    33.0f
60
#define LED_THRS_YELLOW 36.0f
61

    
62
#define NBUTTONS 9
63
#define MAIN_FONT_FILE "mainfont.ttf"
64
#define MAIN_FONT_SIZE 18
65

    
66
#define STATS_FONT_FILE "stats_font.ttf"
67
#define STATS_FONT_SIZE 16
68
#define STATS_BOX_HEIGHT 20
69

    
70
#define RESTORE_SCREEN_ON_ZAPPING
71
#define RESTART_FRAME_NUMBER_THRESHOLD 200
72

    
73
// how long (in seconds) is the statistics buffer
74
#define STATISTICS_WINDOW_SIZE 30
75

    
76
// milliseconds
77
#define STATS_THREAD_GRANULARITY 5
78
#define MAIN_STATS_WINDOW 1000
79
#define GUI_PRINTSTATS_INTERVAL 500
80
#define EVAL_QOE_INTERVAL 10000
81

    
82
#define MAX_FPS 50
83
#define QOE_REFERENCE_FRAME_WIDTH 352
84
#define QOE_REFERENCE_FRAME_HEIGHT 288
85

    
86
//~ #define SAVE_YUV
87

    
88
//#define DEBUG_AUDIO
89
//#define DEBUG_VIDEO
90
//#define DEBUG_QUEUE
91
//#define DEBUG_QUEUE_DEEP
92
//#define DEBUG_SOURCE
93
//#define DEBUG_STATS
94
//#define DEBUG_STATS_DEEP
95
//#define DEBUG_AUDIO_BUFFER
96
//#define DEBUG_CHUNKER
97
#define DEBUG_PSNR
98
//#define EMULATE_CHUNK_LOSS
99

    
100
#define VIDEO_DEINTERLACE
101

    
102
#define PSNR_PUBLICATION
103
// seconds
104
#define PSNR_REPO_UPDATE_INTERVALL   10
105

    
106
#endif // _CHUNKER_PLAYER_DEFINES_H