mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 13:40:21 +00:00
58 lines
1.5 KiB
C++
58 lines
1.5 KiB
C++
/*
|
|
* This file contains common external definitions
|
|
*/
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#include "config_unix.h"
|
|
#include "config_win32.h"
|
|
#endif
|
|
|
|
#include "host.h"
|
|
|
|
#include "video_capture.h"
|
|
#include "video_compress.h"
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
unsigned int cuda_device = 0;
|
|
unsigned int audio_capture_channels = 1;
|
|
|
|
unsigned int cuda_devices[MAX_CUDA_DEVICES] = { 0 };
|
|
unsigned int cuda_devices_count = 1;
|
|
|
|
int audio_init_state_ok;
|
|
|
|
uint32_t RTT = 0; /* this is computed by handle_rr in rtp_callback */
|
|
|
|
int uv_argc;
|
|
char **uv_argv;
|
|
|
|
char *export_dir = NULL;
|
|
volatile bool should_exit_receiver = false;
|
|
|
|
bool verbose = false;
|
|
|
|
bool ldgm_device_gpu = false;
|
|
|
|
const char *window_title = NULL;
|
|
|
|
void print_capabilities(int mask)
|
|
{
|
|
if (mask & CAPABILITY_COMPRESS) {
|
|
cout << "Compressions:" << endl;
|
|
auto const & compress_capabilities = get_compress_capabilities();
|
|
for (auto const & it : compress_capabilities) {
|
|
cout << "(" << it.name << ";" << it.quality << ";" << it.bitrate << ";" <<
|
|
it.enc_prop.latency << ";" << it.enc_prop.cpu_cores << ";" << it.enc_prop.gpu_gflops << ";" <<
|
|
it.dec_prop.latency << ";" << it.dec_prop.cpu_cores << ";" << it.dec_prop.gpu_gflops <<
|
|
")\n";
|
|
}
|
|
}
|
|
if (mask & CAPABILITY_CAPTURE) {
|
|
cout << "Capturers:" << endl;
|
|
print_available_capturers();
|
|
}
|
|
}
|
|
|