Statistics
| Branch: | Revision:

chunker-player / chunker_player / player_defines.h @ e11386c0

History | View | Annotate | Download (2.26 KB)

1 10c75ef7 GiuseppeTropea
#ifndef _CHUNKER_PLAYER_DEFINES_H
2
#define _CHUNKER_PLAYER_DEFINES_H
3
4 af0d4607 GiuseppeTropea
#include "codec_definitions.h"
5
6 10c75ef7 GiuseppeTropea
#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 b4dc1ea0 GiuseppeTropea
#define QUEUE_MAX_GROW_FACTOR 20
17 dae4a53f GiuseppeTropea
#define CHANNEL_SCORE_HISTORY_SIZE 1000
18 10c75ef7 GiuseppeTropea
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 e11386c0 CsabaKiraly
#define AUDIO_ON_ICON_FILE "icons/audio_on.png"
24
#define AUDIO_OFF_ICON_FILE "icons/audio_off.png"
25 10c75ef7 GiuseppeTropea
26
#define CHANNEL_UP_ICON_FILE "icons/up_16.png"
27
#define CHANNEL_DOWN_ICON_FILE "icons/down_16.png"
28
29 e11386c0 CsabaKiraly
#define DEFAULT_CHANNEL_EXEC_PATH "../Streamer/"
30 10c75ef7 GiuseppeTropea
#define DEFAULT_CONF_FILENAME "channels.conf"
31 e11386c0 CsabaKiraly
#define DEFAULT_PEEREXECNAME_FILENAME "peer_exec_name.conf"
32
#define DEFAULT_PEER_EXEC_NAME "winestreamer-ml-monl-http"
33 10c75ef7 GiuseppeTropea
34
#define DEFAULT_WIDTH 704
35
#define DEFAULT_HEIGHT 576
36
#define DEFAULT_RATIO 1.22
37
38 e11386c0 CsabaKiraly
#define BUTTONS_LAYER_OFFSET 20
39 10c75ef7 GiuseppeTropea
#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 e11386c0 CsabaKiraly
#define AUDIO_OFF_BUTTON_INDEX 4
47
#define AUDIO_ON_BUTTON_INDEX 5
48 10c75ef7 GiuseppeTropea
49 e11386c0 CsabaKiraly
#define NBUTTONS 6
50 10c75ef7 GiuseppeTropea
#define MAIN_FONT_FILE "mainfont.ttf"
51
#define MAIN_FONT_SIZE 18
52
53 31e4e8ba GiuseppeTropea
#define STATS_FONT_FILE "stats_font.ttf"
54 569b286f GiuseppeTropea
#define STATS_FONT_SIZE 16
55 e11386c0 CsabaKiraly
#define STATS_BOX_HEIGHT 20
56 10c75ef7 GiuseppeTropea
57
#define RESTORE_SCREEN_ON_ZAPPING
58 e11386c0 CsabaKiraly
#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 10c75ef7 GiuseppeTropea
75 dae4a53f GiuseppeTropea
//#define DEBUG_AUDIO
76
//#define DEBUG_VIDEO
77
//#define DEBUG_QUEUE
78 730c29f4 GiuseppeTropea
//#define DEBUG_QUEUE_DEEP
79 333348bb GiuseppeTropea
//#define DEBUG_SOURCE
80 b9e6f879 CsabaKiraly
#define DEBUG_STATS
81
#define DEBUG_STATS_DEEP
82 333348bb GiuseppeTropea
//#define DEBUG_AUDIO_BUFFER
83 b4dc1ea0 GiuseppeTropea
//#define DEBUG_CHUNKER
84 e11386c0 CsabaKiraly
#define EMULATE_CHUNK_LOSS
85 10c75ef7 GiuseppeTropea
86 e11386c0 CsabaKiraly
#define VIDEO_DEINTERLACE
87 af0d4607 GiuseppeTropea
88 10c75ef7 GiuseppeTropea
#endif // _CHUNKER_PLAYER_DEFINES_H