X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fasdcp-wrap.cpp;h=66f291acc1be342fbbd253ea49ea70277bd88dd6;hb=e00923e06c7344fe1e9ea0195b84472f73714d63;hp=b87e4c7392902c95f62fe5132ee96f4eaf45d119;hpb=dd03f3ae2c71df2c4eb89804293e621777a050cf;p=asdcplib.git diff --git a/src/asdcp-wrap.cpp b/src/asdcp-wrap.cpp index b87e4c7..66f291a 100755 --- a/src/asdcp-wrap.cpp +++ b/src/asdcp-wrap.cpp @@ -1,5 +1,6 @@ /* -Copyright (c) 2003-2014, John Hurst +Copyright (c) 2003-2018 +, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -98,13 +99,22 @@ public: return; \ } +// +static void +create_random_uuid(byte_t* uuidbuf) +{ + Kumu::UUID tmp_id; + GenRandomValue(tmp_id); + memcpy(uuidbuf, tmp_id.Value(), tmp_id.Size()); +} + // void banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2014 John Hurst\n\n\ +Copyright (c) 2003-2018 John Hurst\n\n\ asdcplib may be copied only under the terms of the license found at\n\ the top of every file in the asdcplib distribution kit.\n\n\ Specify the -h (help) option for further information about %s\n\n", @@ -126,40 +136,46 @@ USAGE: %s [-h|-help] [-V]\n\ fprintf(stream, "\ Options:\n\ + -h | -help - Show help\n\ + -V - Show version information\n\ -3 - Create a stereoscopic image file. Expects two\n\ directories of JP2K codestreams (directories must have\n\ an equal number of frames; the left eye is first)\n\ - -C