diff options
| author | jhurst <jhurst@cinecert.com> | 2008-01-31 23:41:26 +0000 |
|---|---|---|
| committer | jhurst <> | 2008-01-31 23:41:26 +0000 |
| commit | 766b93f3654e6e80623a84774fce0307694340f9 (patch) | |
| tree | caddf9aad635d0d5c3aee93cc5241e1894c83be7 /src | |
| parent | 411d88765d9373d0fa61e832bb517fb5f501d251 (diff) | |
build fixes from DTS
Diffstat (limited to 'src')
| -rwxr-xr-x | src/AS_DCP.h | 3 | ||||
| -rwxr-xr-x | src/AS_DCP_JP2K.cpp | 7 | ||||
| -rw-r--r-- | src/AS_DCP_TimedText.cpp | 4 | ||||
| -rwxr-xr-x | src/MXF.cpp | 4 | ||||
| -rwxr-xr-x | src/MXFTypes.cpp | 6 | ||||
| -rw-r--r-- | src/TimedText_Parser.cpp | 4 | ||||
| -rwxr-xr-x | src/asdcp-test.cpp | 10 | ||||
| -rwxr-xr-x | src/klvwalk.cpp | 4 | ||||
| -rwxr-xr-x | src/kmfilegen.cpp | 4 | ||||
| -rw-r--r-- | src/kmrandgen.cpp | 4 | ||||
| -rw-r--r-- | src/kmuuidgen.cpp | 4 |
11 files changed, 31 insertions, 23 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h index 65442e1..1647f1e 100755 --- a/src/AS_DCP.h +++ b/src/AS_DCP.h @@ -77,8 +77,9 @@ The following use cases are supported by the library: o Read one or more ciphertext PCM audio streams from a ciphertext ASDCP file o Read header metadata from an ASDCP file -This project depends upon the following library: +This project depends upon the following libraries: - OpenSSL http://www.openssl.org/ + - Expat http://expat.sourceforge.net/ (optional) */ diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp index d26d679..bd0bc33 100755 --- a/src/AS_DCP_JP2K.cpp +++ b/src/AS_DCP_JP2K.cpp @@ -32,7 +32,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "AS_DCP_internal.h" using namespace ASDCP::JP2K; - +using Kumu::GenRandomValue; //------------------------------------------------------------------------------------------ @@ -84,7 +84,8 @@ ASDCP::JP2K::PictureDescriptorDump(const PictureDescriptor& PDesc, FILE* stream) fprintf(stream, " ImageComponents:\n"); fprintf(stream, " bits h-sep v-sep\n"); - for ( ui32_t i = 0; i < PDesc.Csize; i++ ) + ui32_t i; + for ( i = 0; i < PDesc.Csize; i++ ) { fprintf(stream, " %4d %5d %5d\n", PDesc.ImageComponents[i].Ssize + 1, // See ISO 15444-1, Table A11, for the origin of '+1' @@ -106,7 +107,7 @@ ASDCP::JP2K::PictureDescriptorDump(const PictureDescriptor& PDesc, FILE* stream) fprintf(stream, " Transformation: %hd\n", PDesc.CodingStyleDefault.SPcod.Transformation); - ui32_t precinct_set_size = 0, i; + ui32_t precinct_set_size = 0; for ( i = 0; PDesc.CodingStyleDefault.SPcod.PrecinctSize[i] != 0 && i < MaxPrecincts; i++ ) precinct_set_size++; diff --git a/src/AS_DCP_TimedText.cpp b/src/AS_DCP_TimedText.cpp index fafaebf..158679d 100644 --- a/src/AS_DCP_TimedText.cpp +++ b/src/AS_DCP_TimedText.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2007, John Hurst +Copyright (c) 2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -33,6 +33,8 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "AS_DCP_internal.h" #include "KM_xml.h" +using Kumu::GenRandomValue; + static std::string TIMED_TEXT_PACKAGE_LABEL = "File Package: SMPTE 429-5 clip wrapping of D-Cinema Timed Text data"; static std::string TIMED_TEXT_DEF_LABEL = "Timed Text Track"; diff --git a/src/MXF.cpp b/src/MXF.cpp index be8f031..f2756ab 100755 --- a/src/MXF.cpp +++ b/src/MXF.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2007, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -32,7 +32,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "MXF.h" #include "Metadata.h" #include <KM_log.h> + using Kumu::DefaultLogSink; +using Kumu::GenRandomValue; // index segments must be < 64K // NOTE: this value may too high if advanced index entry elements are used. diff --git a/src/MXFTypes.cpp b/src/MXFTypes.cpp index 3ef2294..6794659 100755 --- a/src/MXFTypes.cpp +++ b/src/MXFTypes.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2007, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -150,7 +150,7 @@ const ASDCP::MXF::UTF16String& ASDCP::MXF::UTF16String::operator=(const char* sz) { if ( sz == 0 || *sz == 0 ) - clear(); + erase(); else this->assign(sz); @@ -180,7 +180,7 @@ ASDCP::MXF::UTF16String::EncodeString(char* str_buf, ui32_t buf_len) const bool ASDCP::MXF::UTF16String::Unarchive(Kumu::MemIOReader* Reader) { - clear(); + erase(); const ui16_t* p = (ui16_t*)Reader->CurrentData(); ui32_t length = Reader->Remainder() / 2; char mb_buf[MB_LEN_MAX+1]; diff --git a/src/TimedText_Parser.cpp b/src/TimedText_Parser.cpp index 8c31909..aad4ea3 100644 --- a/src/TimedText_Parser.cpp +++ b/src/TimedText_Parser.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2007, John Hurst +Copyright (c) 2007-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -37,6 +37,8 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. using namespace Kumu; using namespace ASDCP; +using Kumu::DefaultLogSink; + const char* c_dcst_namespace_name = "http://www.smpte-ra.org/schemas/428-7/2007/DCST"; //------------------------------------------------------------------------------------------ diff --git a/src/asdcp-test.cpp b/src/asdcp-test.cpp index eadfc76..ba61015 100755 --- a/src/asdcp-test.cpp +++ b/src/asdcp-test.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2007, John Hurst +Copyright (c) 2003-2008, 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 <iostream> -#include <assert.h> - #include <KM_fileio.h> #include <KM_prng.h> #include <PCMParserList.h> @@ -58,6 +55,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <Metadata.h> #include <openssl/sha.h> +#include <iostream> +#include <assert.h> + using namespace ASDCP; const ui32_t FRAME_BUFFER_SIZE = 4 * Kumu::Megabyte; @@ -106,7 +106,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2006 John Hurst\n\n\ +Copyright (c) 2003-2008 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", diff --git a/src/klvwalk.cpp b/src/klvwalk.cpp index 26475df..1bf5056 100755 --- a/src/klvwalk.cpp +++ b/src/klvwalk.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2007, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -65,7 +65,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2005-2007 John Hurst\n\ +Copyright (c) 2005-2008 John Hurst\n\ %s is part of the asdcplib DCP tools package.\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\ diff --git a/src/kmfilegen.cpp b/src/kmfilegen.cpp index 9ab1f00..3f3ba11 100755 --- a/src/kmfilegen.cpp +++ b/src/kmfilegen.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2006, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -69,7 +69,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2005-2006 John Hurst\n\ +Copyright (c) 2005-2008 John Hurst\n\ %s is part of the asdcplib DCP tools package.\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\ diff --git a/src/kmrandgen.cpp b/src/kmrandgen.cpp index 7c80811..84f1a3d 100644 --- a/src/kmrandgen.cpp +++ b/src/kmrandgen.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2006, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -54,7 +54,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2006 John Hurst\n\n\ +Copyright (c) 2003-2008 John Hurst\n\n\ %s is part of the asdcp DCP tools package.\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\ diff --git a/src/kmuuidgen.cpp b/src/kmuuidgen.cpp index 84d26ce..1dfdf24 100644 --- a/src/kmuuidgen.cpp +++ b/src/kmuuidgen.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2006, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -51,7 +51,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2006 John Hurst\n\n\ +Copyright (c) 2003-2008 John Hurst\n\n\ %s is part of the asdcp DCP tools package.\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\ |
