X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fasdcp-test.cpp;h=a35770a3e7bc1b76bcac3dd0805c248066d07668;hb=620722efa3a2df7857074e36abd751826a61d0e0;hp=a2901da3f719751a408a1ed443c5dda993e0a945;hpb=984de376d405e0b68e77d61558d4f798fa1170a5;p=asdcplib.git diff --git a/src/asdcp-test.cpp b/src/asdcp-test.cpp index a2901da..a35770a 100755 --- a/src/asdcp-test.cpp +++ b/src/asdcp-test.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2006, John Hurst +Copyright (c) 2003-2012, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -47,9 +47,6 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. these features. */ -#include -#include - #include #include #include @@ -58,15 +55,18 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include +#include +#include + using namespace ASDCP; -const ui32_t FRAME_BUFFER_SIZE = 4*1024*1024; +const ui32_t FRAME_BUFFER_SIZE = 4 * Kumu::Megabyte; //------------------------------------------------------------------------------------------ // // command line option parser class -static const char* PACKAGE = "asdcp-test"; // program name for messages +static const char* PROGRAM_NAME = "asdcp-test"; // program name for messages const ui32_t MAX_IN_FILES = 16; // maximum number of input files handled by // the command option parser @@ -83,10 +83,7 @@ public: memcpy(ProductUUID, default_ProductUUID_Data, UUIDlen); CompanyName = "WidgetCo"; ProductName = "asdcp-test"; - - char s_buf[128]; - snprintf(s_buf, 128, "%u.%u.%u", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR); - ProductVersion = s_buf; + ProductVersion = ASDCP::Version(); } } s_MyInfo; @@ -106,11 +103,11 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2006 John Hurst\n\n\ +Copyright (c) 2003-2012 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", - PACKAGE, ASDCP::Version(), PACKAGE); + PROGRAM_NAME, ASDCP::Version(), PROGRAM_NAME); } // @@ -118,10 +115,10 @@ void usage(FILE* stream = stdout) { fprintf(stream, "\ -USAGE: %s -c [-b ] [-d ] [-e|-E]\n\ - [-f ] [-j ] [-k ] [-L] [-M]\n\ - [-p ] [-R] [-s ] [-v] [-W]\n\ - [ ...]\n\ +USAGE: %s -c [-3] [-a ] [-b ]\n\ + [-d ] [-e|-E] [-f ] [-j ]\n\ + [-k ] [-l