Statistics
| Branch: | Revision:

chunker-player / chunker_player / player_defines.h @ e11386c0

History | View | Annotate | Download (2.26 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

    
26
#define CHANNEL_UP_ICON_FILE "icons/up_16.png"
27
#define CHANNEL_DOWN_ICON_FILE "icons/down_16.png"
28

    
29
#define DEFAULT_CHANNEL_EXEC_PATH "../Streamer/"
30
#define DEFAULT_CONF_FILENAME "channels.conf"
31
#define DEFAULT_PEEREXECNAME_FILENAME "peer_exec_name.conf"
32
#define DEFAULT_PEER_EXEC_NAME "winestreamer-ml-monl-http"
33

    
34
#define DEFAULT_WIDTH 704
35
#define DEFAULT_HEIGHT 576
36
#define DEFAULT_RATIO 1.22
37

    
38
#define BUTTONS_LAYER_OFFSET 20
39
#define BUTTONS_CONTAINER_HEIGHT 40
40
#define BUTTONS_CONTAINER_WIDTH 100
41

    
42
#define FULLSCREEN_BUTTON_INDEX 0
43
#define NO_FULLSCREEN_BUTTON_INDEX 1
44
#define CHANNEL_UP_BUTTON_INDEX 2
45
#define CHANNEL_DOWN_BUTTON_INDEX 3
46
#define AUDIO_OFF_BUTTON_INDEX 4
47
#define AUDIO_ON_BUTTON_INDEX 5
48

    
49
#define NBUTTONS 6
50
#define MAIN_FONT_FILE "mainfont.ttf"
51
#define MAIN_FONT_SIZE 18
52

    
53
#define STATS_FONT_FILE "stats_font.ttf"
54
#define STATS_FONT_SIZE 16
55
#define STATS_BOX_HEIGHT 20
56

    
57
#define RESTORE_SCREEN_ON_ZAPPING
58
#define RESTART_FRAME_NUMBER_THRESHOLD 200
59

    
60
// how long (in seconds) is the statistics buffer
61
#define STATISTICS_WINDOW_SIZE 30
62

    
63
// milliseconds
64
#define STATS_THREAD_GRANULARITY 5
65
#define MAIN_STATS_WINDOW 1000
66
#define GUI_PRINTSTATS_INTERVAL 500
67
#define EVAL_QOE_INTERVAL 10000
68

    
69
#define MAX_FPS 50
70
#define QOE_REFERENCE_FRAME_WIDTH 352
71
#define QOE_REFERENCE_FRAME_HEIGHT 288
72

    
73
//~ #define SAVE_YUV
74

    
75
//#define DEBUG_AUDIO
76
//#define DEBUG_VIDEO
77
//#define DEBUG_QUEUE
78
//#define DEBUG_QUEUE_DEEP
79
//#define DEBUG_SOURCE
80
#define DEBUG_STATS
81
#define DEBUG_STATS_DEEP
82
//#define DEBUG_AUDIO_BUFFER
83
//#define DEBUG_CHUNKER
84
#define EMULATE_CHUNK_LOSS
85

    
86
#define VIDEO_DEINTERLACE
87

    
88
#endif // _CHUNKER_PLAYER_DEFINES_H