From 5975dff0adbe4feb120fe18e5bee6641f40d2559 Mon Sep 17 00:00:00 2001 From: jhurst Date: Tue, 5 Jan 2010 04:12:15 +0000 Subject: undo, j2c-test --- src/JP2K.cpp | 1 + src/MDD.cpp | 6 +- src/MXF.cpp | 4 +- src/Makefile.am | 8 +- src/asdcp-test.cpp | 20 +++-- src/j2c-test.cpp | 217 ++++++++++++++++++++++++++++++++++++++++++----------- src/jp2k-tst.sh | 2 +- 7 files changed, 196 insertions(+), 62 deletions(-) (limited to 'src') diff --git a/src/JP2K.cpp b/src/JP2K.cpp index b8c5b59..6858253 100755 --- a/src/JP2K.cpp +++ b/src/JP2K.cpp @@ -162,6 +162,7 @@ ASDCP::JP2K::Accessor::COM::Dump(FILE* stream) } else { + fprintf(stream, "COM:\n"); Kumu::hexdump(CommentData(), CommentSize(), stream); } } diff --git a/src/MDD.cpp b/src/MDD.cpp index f4ed6d9..08c5c5f 100644 --- a/src/MDD.cpp +++ b/src/MDD.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2006-2009, John Hurst +Copyright (c) 2006-2010, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -38,10 +38,10 @@ static const ASDCP::MDDEntry s_MDD_Table[] = { { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, {0}, false, "MICAlgorithm_NONE" }, - { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x02, // 1 + { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x01, // 1 0x0d, 0x01, 0x02, 0x01, 0x10, 0x00, 0x00, 0x00 }, {0}, false, "MXFInterop_OPAtom" }, - { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x01, // 2 + { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x02, // 2 0x0d, 0x01, 0x02, 0x01, 0x10, 0x00, 0x00, 0x00 }, {0}, false, "OPAtom" }, { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x01, // 3 diff --git a/src/MXF.cpp b/src/MXF.cpp index c4a9693..9c53a90 100755 --- a/src/MXF.cpp +++ b/src/MXF.cpp @@ -720,8 +720,8 @@ ASDCP::MXF::OPAtomHeader::InitFromFile(const Kumu::FileReader& Reader) } else if ( OperationalPattern == InteropOPAtomUL ) // Interop { - // if ( m_Dict == &DefaultCompositeDict() ) - // m_Dict = &DefaultInteropDict(); + if ( m_Dict == &DefaultCompositeDict() ) + m_Dict = &DefaultInteropDict(); } else { diff --git a/src/Makefile.am b/src/Makefile.am index 0b49e74..a4a4134 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -112,7 +112,7 @@ asdcp_la_LIBADD = libpyasdcp.la endif # list of programs to be built and installed -bin_PROGRAMS = asdcp-test blackwave klvwalk kmfilegen kmrandgen \ +bin_PROGRAMS = asdcp-test j2c-test blackwave klvwalk kmfilegen kmrandgen \ kmuuidgen wavesplit # sources for a program @@ -132,9 +132,11 @@ klvwalk_SOURCES = klvwalk.cpp klvwalk_LDADD = libasdcp.la wavesplit_SOURCES = wavesplit.cpp wavesplit_LDADD = libasdcp.la +j2c_test_SOURCES = j2c-test.cpp +j2c_test_LDADD = libasdcp.la # list of programs that need to be compiled for use in test suite -check_PROGRAMS = asdcp-mem-test path-test jp2k-test S429-5-cgi \ +check_PROGRAMS = asdcp-mem-test path-test S429-5-cgi \ fips-186-rng-test asdcp-version if DEV_HEADERS check_PROGRAMS += tt-xform @@ -146,8 +148,6 @@ asdcp_mem_test_SOURCES = asdcp-mem-test.cpp asdcp_mem_test_LDADD = libasdcp.la path_test_SOURCES = path-test.cpp path_test_LDADD = libkumu.la -jp2k_test_SOURCES = jp2k-test.cpp -jp2k_test_LDADD = libasdcp.la S429_5_cgi_SOURCES = S429-5-cgi.cpp S429_5_cgi_LDADD = libasdcp.la fips_186_rng_test_SOURCES = fips-186-rng-test.cpp diff --git a/src/asdcp-test.cpp b/src/asdcp-test.cpp index 0266b7b..04498c6 100755 --- a/src/asdcp-test.cpp +++ b/src/asdcp-test.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, John Hurst +Copyright (c) 2003-2010, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -103,7 +103,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2009 John Hurst\n\n\ +Copyright (c) 2003-2010 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", @@ -118,7 +118,7 @@ usage(FILE* stream = stdout) USAGE: %s -c [-3] [-a ] [-b ]\n\ [-d ] [-e|-E] [-f ] [-j ]\n\ [-k ] [-l