#ifdef __SSE2__
#include <immintrin.h>
#endif
+#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
IDeckLinkAudioInputPacket *audio_frame)
{
if (!done_init) {
+ char thread_name[16];
+ snprintf(thread_name, sizeof(thread_name), "DeckLink_C_%d", card_index);
+ pthread_setname_np(pthread_self(), thread_name);
if (has_dequeue_callbacks) {
dequeue_init_callback();
}
done_init = true;
}
+ steady_clock::time_point now = steady_clock::now();
+
FrameAllocator::Frame current_video_frame, current_audio_frame;
VideoFormat video_format;
AudioFormat audio_format;
video_format.width = width;
video_format.height = height;
- current_video_frame.received_timestamp = steady_clock::now();
+ current_video_frame.received_timestamp = now;
}
}
audio_format.bits_per_sample = 32;
audio_format.num_channels = 2;
- current_audio_frame.received_timestamp = steady_clock::now();
+ current_audio_frame.received_timestamp = now;
}
}