---------------------------------------------------------------------------
| 894 | |
| 895 | //--------------------------------------------------------------------------- |
| 896 | Ztring Fims_Transform_Text(Ztring &ToReturn, MediaInfo_Internal &MI, size_t StreamPos) |
| 897 | { |
| 898 | ToReturn+=__T("\t\t\t\t<!-- (Not implemented)\n"); |
| 899 | |
| 900 | ToReturn+=__T("\t\t\t\t<ebucore:dataFormat"); |
| 901 | //if (!MI.Get(Stream_Text, StreamPos, Text_ID).empty()) |
| 902 | // ToReturn+=__T(" dataFormatId=\"")+MI.Get(Stream_Text, StreamPos, Text_ID)+__T("\""); |
| 903 | if (!MI.Get(Stream_Text, StreamPos, Text_Format_Version).empty()) |
| 904 | ToReturn+=__T(" dataFormatVersionId=\"")+MI.Get(Stream_Text, StreamPos, Text_Format_Version)+__T("\""); |
| 905 | if (!MI.Get(Stream_Text, StreamPos, Text_Format).empty()) |
| 906 | ToReturn+=__T(" dataFormatName=\"")+MI.Get(Stream_Text, StreamPos, Text_Format)+__T("\""); |
| 907 | if (!MI.Get(Stream_Text, StreamPos, Text_ID).empty()) |
| 908 | ToReturn+=__T(" dataTrackId=\"")+MI.Get(Stream_Text, StreamPos, Text_ID)+__T("\""); |
| 909 | ToReturn+=__T(">\n"); |
| 910 | |
| 911 | //subtitlingTrack |
| 912 | { |
| 913 | ToReturn+=__T("\t\t\t\t\t<ebucore:captioningFormat"); |
| 914 | if (!MI.Get(Stream_Text, StreamPos, Text_Format).empty()) |
| 915 | ToReturn+=__T(" captioningFormatName=\"")+MI.Get(Stream_Text, StreamPos, Text_Format)+__T("\""); |
| 916 | if (!MI.Get(Stream_Text, StreamPos, Text_ID).empty()) |
| 917 | ToReturn+=__T(" trackId=\"")+MI.Get(Stream_Text, StreamPos, Text_ID)+__T("\""); |
| 918 | if (!MI.Get(Stream_Text, StreamPos, Text_Title).empty()) |
| 919 | ToReturn+=__T(" typeLabel=\"")+MI.Get(Stream_Text, StreamPos, Text_Title)+__T("\""); |
| 920 | if (!MI.Get(Stream_Text, StreamPos, Text_Language).empty()) |
| 921 | ToReturn+=__T(" language=\"")+MI.Get(Stream_Text, StreamPos, Text_Language)+__T("\""); |
| 922 | ToReturn+=__T("/>\n"); |
| 923 | if (!MI.Get(Stream_Text, StreamPos, Text_CodecID).empty() || !MI.Get(Stream_Text, StreamPos, Text_Format_Commercial_IfAny).empty()) |
| 924 | { |
| 925 | ToReturn+=__T("\t\t\t\t\t<ebucore:codec>\n"); |
| 926 | if (!MI.Get(Stream_Text, StreamPos, Text_CodecID).empty()) |
| 927 | { |
| 928 | ToReturn+=__T("\t\t\t\t\t\t<ebucore:codecIdentifier>\n"); |
| 929 | ToReturn+=__T("\t\t\t\t\t\t\t<dc:identifier>")+MI.Get(Stream_Text, StreamPos, Text_CodecID)+__T("</dc:identifier>\n"); |
| 930 | ToReturn+=__T("\t\t\t\t\t\t</ebucore:codecIdentifier>\n"); |
| 931 | } |
| 932 | if (!MI.Get(Stream_Text, StreamPos, Text_Format_Commercial_IfAny).empty()) |
| 933 | ToReturn+=__T("\t\t\t\t\t\t<ebucore:name>")+MI.Get(Stream_Text, StreamPos, Text_Format_Commercial_IfAny)+__T("</ebucore:name>\n"); |
| 934 | ToReturn+=__T("\t\t\t\t\t</ebucore:codec>\n"); |
| 935 | } |
| 936 | } |
| 937 | |
| 938 | ToReturn+=__T("\t\t\t\t</ebucore:dataFormat>\n"); |
| 939 | |
| 940 | ToReturn+=__T("\t\t\t\t-->\n"); |
| 941 | |
| 942 | return ToReturn; |
| 943 | } |
| 944 | |
| 945 | //--------------------------------------------------------------------------- |
| 946 | Ztring Fims_Transform_TimeCode(Ztring &ToReturn, MediaInfo_Internal &MI, size_t StreamPos, bool Is1_2) |