#define LOG_PREFIX "input/binary"
-#define MAX_CHUNK_SIZE 4096
+#define CHUNK_SIZE (4 * 1024 * 1024)
#define DEFAULT_NUM_CHANNELS 8
#define DEFAULT_SAMPLERATE 0
for (i = 0; i < chunk_size; i += chunk) {
logic.data = in->buf->str + i;
- chunk = MIN(MAX_CHUNK_SIZE, chunk_size - i);
+ chunk = MIN(CHUNK_SIZE, chunk_size - i);
logic.length = chunk;
sr_session_send(in->sdi, &packet);
}
SR_PRIV struct sr_input_module input_binary = {
.id = "binary",
.name = "Binary",
- .desc = "Raw binary",
+ .desc = "Raw binary logic data",
.exts = NULL,
.options = get_options,
.init = init,