Statistics
| Branch: | Revision:

chunker-player / chunker_player / player_defines.h @ a2da678c

History | View | Annotate | Download (2.87 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 0 //auto-set by SDL (to 46ms), or set by SDL_AUDIO_SAMPLES
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_CONF_FILEDIR "~/.peerstreamer/"
33
#define DEFAULT_CONF_FILENAME DEFAULT_CONF_FILEDIR"channels.conf"
34
#define DEFAULT_CONF_URI "http://peerstreamer.org/~napawine/release/channels.conf"
35
#define DEFAULT_PEEREXECNAME_FILENAME "peer_exec_name.conf"
36
#define DEFAULT_PEER_EXEC_NAME "streamer"
37

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

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

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

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

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

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

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

    
71
#define RESTORE_SCREEN_ON_ZAPPING
72
#define RESTART_FRAME_NUMBER_THRESHOLD 200
73

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

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

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

    
87
//~ #define SAVE_YUV
88

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

    
101
#define VIDEO_DEINTERLACE
102

    
103
// seconds
104
#define PSNR_REPO_UPDATE_INTERVALL   10
105

    
106
#endif // _CHUNKER_PLAYER_DEFINES_H