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)
*/
#include "AS_DCP_internal.h"
using namespace ASDCP::JP2K;
-
+using Kumu::GenRandomValue;
//------------------------------------------------------------------------------------------
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'
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++;
/*
-Copyright (c) 2007, John Hurst
+Copyright (c) 2008, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
#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";
/*
-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
#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.
/*
-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
ASDCP::MXF::UTF16String::operator=(const char* sz)
{
if ( sz == 0 || *sz == 0 )
- clear();
+ erase();
else
this->assign(sz);
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];
/*
-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
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";
//------------------------------------------------------------------------------------------
/*
-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
these features.
*/
-#include <iostream>
-#include <assert.h>
-
#include <KM_fileio.h>
#include <KM_prng.h>
#include <PCMParserList.h>
#include <Metadata.h>
#include <openssl/sha.h>
+#include <iostream>
+#include <assert.h>
+
using namespace ASDCP;
const ui32_t FRAME_BUFFER_SIZE = 4 * Kumu::Megabyte;
{
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",
/*
-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
{
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\
/*
-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
{
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\
/*
-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
{
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\
/*
-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
{
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\