const ui32_t& PartitionSpace_sec, const ui32_t& HeaderSize)
{
m_DataEssenceDescriptor = new ISXDDataEssenceDescriptor(m_Dict);
- m_DataEssenceDescriptor->DataEssenceCoding = m_Dict->ul(MDD_FrameWrappedISXDContainer);
+ m_DataEssenceDescriptor->DataEssenceCoding = m_Dict->ul(MDD_UTF_8_Text_DataEssenceCoding);
m_DataEssenceDescriptor->SampleRate = edit_rate;
m_DataEssenceDescriptor->NamespaceURI = isxd_document_namespace;
if ( KM_SUCCESS(result) )
{
- result = WriteAS02Header(label, UL(m_Dict->ul(MDD_FrameWrappedISXDData)),
+ result = WriteAS02Header(label, UL(m_Dict->ul(MDD_FrameWrappedISXDContainer)),
PICT_DEF_LABEL, UL(m_EssenceUL), UL(m_Dict->ul(MDD_DataDataDef)),
edit_rate, derive_timecode_rate_from_edit_rate(edit_rate));
#ifdef KM_WIN32
+#ifdef KM_WIN32_UTF8
//
Kumu::Result_t
return RESULT_OK;
}
+#endif // KM_WIN32_UTF8
//------------------------------------------------------------------------------------------
//
Kumu::FileReader::OpenRead(const std::string& filename) const
{
const_cast<FileReader*>(this)->m_Filename = filename;
+#ifdef KM_WIN32_UTF8
ByteString wb_filename;
Result_t result = utf8_to_wbstr(m_Filename, wb_filename);
{
return result;
}
+#endif
// suppress popup window on error
UINT prev = ::SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
+#ifdef KM_WIN32_UTF8
const_cast<FileReader*>(this)->m_Handle =
::CreateFileW((wchar_t*)wb_filename.RoData(),
+#else
+ const_cast<FileReader*>(this)->m_Handle = ::CreateFileA(filename.c_str(),
+#endif
(GENERIC_READ), // open for reading
FILE_SHARE_READ, // share for reading
NULL, // no security
Kumu::FileWriter::OpenWrite(const std::string& filename)
{
m_Filename = filename;
+#ifdef KM_WIN32_UTF8
ByteString wb_filename;
Result_t result = utf8_to_wbstr(m_Filename, wb_filename);
{
return result;
}
+#endif
// suppress popup window on error
UINT prev = ::SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
+#ifdef KM_WIN32_UTF8
m_Handle = ::CreateFileW((wchar_t*)wb_filename.RoData(),
+#else
+ m_Handle = ::CreateFileA(filename.c_str(),
+#endif
(GENERIC_WRITE|GENERIC_READ), // open for reading
FILE_SHARE_READ, // share for reading
NULL, // no security
0x0e, 0x09, 0x05, 0x02, 0x00, 0x00, 0x00, 0x00 },
{0}, false, "ISXDDataEssenceDescriptor" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x05, // 495
- 0x0e, 0x09, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00 },
+ 0x0e, 0x09, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00 },
{0}, false, "ISXDDataEssenceDescriptor_NamespaceURI" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x05, // 496
- 0x0e, 0x09, 0x06, 0x06, 0x00, 0x00, 0x00, 0xff },
+ 0x0e, 0x09, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00 },
{0}, false, "UTF_8_Text_DataEssenceCoding" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x02, 0x53, 0x01, 0x01, // 497-chk
- 0x0D, 0x01, 0x04, 0x01, 0x04, 0x01, 0x01, 0x00 },
+ 0x0d, 0x01, 0x04, 0x01, 0x04, 0x01, 0x01, 0x00 },
{0}, false, "TextBasedDMFramework" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x0D, // 498-chk
0x06, 0x01, 0x01, 0x04, 0x05, 0x41, 0x01, 0x00 },
-t <min> - Set RGB component minimum code value (default: 0)\n\
-T <max> - Set RGB component maximum code value (default: 1023)\n\
-u - Print UL catalog to stdout\n\
- -u <URI> - ISXD (RDD47) document URI (use 'auto' to read the\n\
- namespace name from the first edit unit\n\
+ -U <URI> - ISXD (RDD47) document URI (use 'auto' to read the\n\
+ namespace name from the first edit unit)\n\
-v - Verbose, prints informative messages to stderr\n\
-W - Read input file only, do not write source file\n\
-x <int> - Horizontal subsampling degree (default: 2)\n\