diff options
| author | jhurst <jhurst@cinecert.com> | 2014-10-22 19:19:49 +0000 |
|---|---|---|
| committer | jhurst <> | 2014-10-22 19:19:49 +0000 |
| commit | bbbadac707e1a16e8a982f966132159db94364ba (patch) | |
| tree | d9511574a643707fd7f012aa1a69187866a12f83 /src/as-02-unwrap.cpp | |
| parent | 9b450aad2327719d051e986549f0416e17b5dbff (diff) | |
phdr:
o Finished FrameBuffer::Dump()
o Minor comment changes
o Added support for -W and some verbosity to phdr-unwrap
o Removed spurious "m_FramesWritten++" that was causing master metadata tin increment the duration.
asdcp:
o Set streamID byte of the PHDRImageMetadataItem UL to zero to meet canonical expectations.
o Added some verbosity to as-02-unwrap
o Fixed partitioning off-by-one in h__AS02WriterFrame::WriteEKLVPacket()
Diffstat (limited to 'src/as-02-unwrap.cpp')
| -rwxr-xr-x | src/as-02-unwrap.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/as-02-unwrap.cpp b/src/as-02-unwrap.cpp index c6ba96b..bf69ba3 100755 --- a/src/as-02-unwrap.cpp +++ b/src/as-02-unwrap.cpp @@ -376,12 +376,25 @@ read_JP2K_file(CommandOptions& Options) { result = Reader.ReadFrame(i, FrameBuffer, Context, HMAC); + char filename[1024]; + snprintf(filename, 1024, name_format, Options.file_prefix, i); + + if ( ASDCP_SUCCESS(result) && Options.verbose_flag ) + { + printf("Frame %d, %d bytes", i, FrameBuffer.Size()); + + if ( ! Options.no_write_flag ) + { + printf(" -> %s", filename); + } + + printf("\n"); + } + if ( ASDCP_SUCCESS(result) && ( ! Options.no_write_flag ) ) { Kumu::FileWriter OutFile; - char filename[256]; ui32_t write_count; - snprintf(filename, 256, name_format, Options.file_prefix, i); result = OutFile.OpenWrite(filename); if ( ASDCP_SUCCESS(result) ) |
