#include "decklink_capture.h"
+#include "defs.h"
#include <DeckLinkAPI.h>
#include <DeckLinkAPIConfiguration.h>
#include <DeckLinkAPIDiscovery.h>
#include <DeckLinkAPIModes.h>
+#include <DeckLinkAPITypes.h>
+#include <LinuxCOM.h>
#include <assert.h>
+#include <errno.h>
+#include <sched.h>
+#include <string>
#ifdef __SSE2__
#include <immintrin.h>
#endif
#include "shared/memcpy_interleaved.h"
#include "v210_converter.h"
-#define FRAME_SIZE (8 << 20) // 8 MB.
-
using namespace std;
using namespace std::chrono;
using namespace std::placeholders;
const int stride = video_frame->GetRowBytes();
const BMDPixelFormat format = video_frame->GetPixelFormat();
assert(format == pixel_format_to_bmd(current_pixel_format));
- if (global_flags.ten_bit_input) {
+ if (global_flags.bit_depth > 8) {
assert(stride == int(v210Converter::get_v210_stride(width)));
} else {
assert(stride == width * 2);