Video is working!

This commit is contained in:
Florian Märkl 2019-06-10 17:59:58 +02:00
parent 8876b591bc
commit 6846d61fa2
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
6 changed files with 93 additions and 8 deletions

View file

@ -29,6 +29,7 @@ void video_sample_cb(uint8_t *buf, size_t buf_size, void *user)
if(!video_out_file)
return;
printf("writing %#zx to file, start: %#zx\n", buf_size, file_size);
chiaki_log_hexdump(nullptr, CHIAKI_LOG_DEBUG, buf, buf_size);
file_size += buf_size;
video_out_file->write((const char *)buf, buf_size);
//StreamRelayIODevice *io_device = reinterpret_cast<StreamRelayIODevice *>(user);
@ -121,4 +122,4 @@ int main(int argc, char *argv[])
return ret;
}
}