|
131 | 131 | static constexpr const char *DEFAULT_VIDEO_COMPRESSION = "none"; |
132 | 132 | static constexpr const char *DEFAULT_AUDIO_CODEC = "PCM"; |
133 | 133 |
|
134 | | -#define OPT_AUDIO_CAPTURE_CHANNELS (('a' << 8) | 'c') |
135 | | -#define OPT_AUDIO_DELAY (('A' << 8) | 'D') |
136 | | -#define OPT_AUDIO_HOST (('A' << 8) | 'H') |
137 | | -#define OPT_AUDIO_PROTOCOL (('A' << 8) | 'P') |
138 | | -#define OPT_AUDIO_SCALE (('a' << 8) | 's') |
139 | | -#define OPT_ECHO_CANCELLATION (('E' << 8) | 'C') |
140 | | -#define OPT_MCAST_IF (('M' << 8) | 'I') |
141 | | -#define OPT_PIX_FMTS (('P' << 8) | 'F') |
142 | | -#define OPT_PIXFMT_CONV_POLICY (('P' << 8) | 'C') |
143 | | -#define OPT_RTSP_SERVER (('R' << 8) | 'S') |
144 | | -#define OPT_VIDEO_CODECS (('V' << 8) | 'C') |
145 | | -#define OPT_VIDEO_PROTOCOL (('V' << 8) | 'P') |
146 | | -#define OPT_WINDOW_TITLE (('W' << 8) | 'T') |
147 | | - |
148 | | -#define MAX_CAPTURE_COUNT 17 |
| 134 | +constexpr int OPT_AUDIO_CAPTURE_CHANNELS = ('a' << 8) | 'c'; |
| 135 | +constexpr int OPT_AUDIO_DELAY = ('A' << 8) | 'D'; |
| 136 | +constexpr int OPT_AUDIO_HOST = ('A' << 8) | 'H'; |
| 137 | +constexpr int OPT_AUDIO_PROTOCOL = ('A' << 8) | 'P'; |
| 138 | +constexpr int OPT_AUDIO_SCALE = ('a' << 8) | 's'; |
| 139 | +constexpr int OPT_ECHO_CANCELLATION = ('E' << 8) | 'C'; |
| 140 | +constexpr int OPT_MCAST_IF = ('M' << 8) | 'I'; |
| 141 | +constexpr int OPT_PIX_FMTS = ('P' << 8) | 'F'; |
| 142 | +constexpr int OPT_PIXFMT_CONV_POLICY = ('P' << 8) | 'C'; |
| 143 | +constexpr int OPT_RTSP_SERVER = ('R' << 8) | 'S'; |
| 144 | +constexpr int OPT_VIDEO_CODECS = ('V' << 8) | 'C'; |
| 145 | +constexpr int OPT_VIDEO_PROTOCOL = ('V' << 8) | 'P'; |
| 146 | +constexpr int OPT_WINDOW_TITLE = ('W' << 8) | 'T'; |
149 | 147 |
|
150 | 148 | using namespace std; |
151 | 149 | using namespace std::chrono; |
|
0 commit comments