From 7ff636405a6bff37432e1c70123f0e6936186166 Mon Sep 17 00:00:00 2001 From: jhurst Date: Thu, 2 Jan 2014 23:29:22 +0000 Subject: o Fixed missing-index-partion bugs for AS-02 files. o Improved integration of ST 377-4 MCA concepts with ST 429-2 static labels. o Added new EssenceType_t values for IMF/AS-02 track files. o Added detection for AS-02 track files to ASDCP::EssenceType() o Changed lots of "const char*" to "const std::string&" in the APIs defined by KM_fileio.h and AS_DCP.h. o Fixed VBR Delta Segment entries to correctly flag progressive material. o Fixed PCM unwrapping bugs in as-02-unwrap. --- src/JP2K_Codestream_Parser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/JP2K_Codestream_Parser.cpp') diff --git a/src/JP2K_Codestream_Parser.cpp b/src/JP2K_Codestream_Parser.cpp index a1385d1..c820646 100755 --- a/src/JP2K_Codestream_Parser.cpp +++ b/src/JP2K_Codestream_Parser.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2004-2009, John Hurst +Copyright (c) 2004-2013, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -55,9 +55,8 @@ public: ~h__CodestreamParser() {} - Result_t OpenReadFrame(const char* filename, FrameBuffer& FB) + Result_t OpenReadFrame(const std::string& filename, FrameBuffer& FB) { - ASDCP_TEST_NULL_STR(filename); m_File.Close(); Result_t result = m_File.OpenRead(filename); @@ -198,7 +197,7 @@ ASDCP::JP2K::CodestreamParser::~CodestreamParser() // Opens the stream for reading, parses enough data to provide a complete // set of stream metadata for the MXFWriter below. ASDCP::Result_t -ASDCP::JP2K::CodestreamParser::OpenReadFrame(const char* filename, FrameBuffer& FB) const +ASDCP::JP2K::CodestreamParser::OpenReadFrame(const std::string& filename, FrameBuffer& FB) const { const_cast(this)->m_Parser = new h__CodestreamParser; return m_Parser->OpenReadFrame(filename, FB); -- cgit v1.2.3