Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: Source/MediaInfo/File__Analyse_Automatic.h
- ===================================================================
- --- Source/MediaInfo/File__Analyse_Automatic.h (revision 4091)
- +++ Source/MediaInfo/File__Analyse_Automatic.h (working copy)
- @@ -426,6 +426,7 @@
- Video_Format_Compression,
- Video_MultiView_BaseProfile,
- Video_MultiView_Count,
- + Video_MultiView_MuxingMode,
- Video_Format_Settings,
- Video_Format_Settings_BVOP,
- Video_Format_Settings_BVOP_String,
- Index: Source/MediaInfo/MediaInfo_Config_Automatic.cpp
- ===================================================================
- --- Source/MediaInfo/MediaInfo_Config_Automatic.cpp (revision 4091)
- +++ Source/MediaInfo/MediaInfo_Config_Automatic.cpp (working copy)
- @@ -3993,6 +3993,7 @@
- "Format_Compression;;;N YT;;;Compression mode of the Format\n"
- "MultiView_BaseProfile;;;Y NT;;;Multiview, profile of the base stream\n"
- "MultiView_Count;;;Y NT;;;Multiview, count of views\n"
- + "MultiView_MuxingMode;;;Y NT;;;Multiview, how views are muxed in the container in case this is not muxing in the stream\n"
- "Format_Settings;;;N NT;;;Settings needed for decoder used, summary\n"
- "Format_Settings_BVOP;;Yes;N YT;;;Settings needed for decoder used, detailled\n"
- "Format_Settings_BVOP/String;;;Y NT;;;Settings needed for decoder used, detailled\n"
- Index: Source/MediaInfo/Multiple/File_Mk.cpp
- ===================================================================
- --- Source/MediaInfo/Multiple/File_Mk.cpp (revision 4091)
- +++ Source/MediaInfo/Multiple/File_Mk.cpp (working copy)
- @@ -103,6 +103,30 @@
- }
- }
- +//---------------------------------------------------------------------------
- +const char* Mk_StereoMode(int64u StereoMode)
- +{
- + switch (StereoMode)
- + {
- + case 0x00 : return "Mono";
- + case 0x01 : return "Side by side";
- + default : return "Unknown";
- + }
- +}
- +
- +//---------------------------------------------------------------------------
- +const char* Mk_StereoMode_v2(int64u StereoMode)
- +{
- + switch (StereoMode)
- + {
- + case 0x00 : return "Mono";
- + case 0x01 : return "Right";
- + case 0x02 : return "Left";
- + case 0x03 : return "Both";
- + default : return "Unknown";
- + }
- +}
- +
- //***************************************************************************
- // Infos
- //***************************************************************************
- @@ -132,6 +156,7 @@
- DataMustAlwaysBeComplete=false;
- //Temp
- + Format_Version=0;
- TimecodeScale=1000000; //Default value
- Duration=0;
- Cluster_AlreadyParsed=false;
- @@ -495,6 +520,8 @@
- const int64u Segment_Tracks_TrackEntry_Video_PixelCropTop=0x14BB;
- const int64u Segment_Tracks_TrackEntry_Video_PixelHeight=0x3A;
- const int64u Segment_Tracks_TrackEntry_Video_PixelWidth=0x30;
- + const int64u Segment_Tracks_TrackEntry_Video_StereoMode=0x13B8;
- + const int64u Segment_Tracks_TrackEntry_Video_StereoModeBuggy=0x13B9;
- const int64u Segment_Tracks_TrackEntry_TrackOverlay=0x2FAB;
- const int64u Segment_Tracks_TrackEntry_TrackTranslate=0x2624;
- const int64u Segment_Tracks_TrackEntry_TrackTranslate_Codec=0x26BF;
- @@ -787,6 +814,7 @@
- ATOM(Segment_Tracks_TrackEntry_Video_PixelCropTop)
- ATOM(Segment_Tracks_TrackEntry_Video_PixelHeight)
- ATOM(Segment_Tracks_TrackEntry_Video_PixelWidth)
- + ATOM(Segment_Tracks_TrackEntry_Video_StereoMode)
- ATOM_END_MK
- ATOM(Segment_Tracks_TrackEntry_TrackOverlay)
- LIST(Segment_Tracks_TrackEntry_TrackTranslate)
- @@ -908,7 +936,12 @@
- Element_Name("DocTypeVersion");
- //Parsing
- - UInteger_Info();
- + Format_Version=UInteger_Get();
- +
- + //Filling
- + FILLING_BEGIN();
- + Fill(Stream_General, 0, General_Format_Version, _T("Version ")+Ztring::ToZtring(Format_Version));
- + FILLING_END();
- }
- //---------------------------------------------------------------------------
- @@ -917,7 +950,13 @@
- Element_Name("DocTypeReadVersion");
- //Parsing
- - UInteger_Info();
- + int64u UInteger=UInteger_Get();
- +
- + //Filling
- + FILLING_BEGIN();
- + if (UInteger!=Format_Version)
- + Fill(Stream_General, 0, General_Format_Version, _T("Version ")+Ztring::ToZtring(UInteger)); //Adding compatible version for info about legacy decoders
- + FILLING_END();
- }
- //---------------------------------------------------------------------------
- @@ -1964,6 +2003,7 @@
- if (Segment_Tag_SimpleTag_TagNames[0]==_T("MAJOR_BRAND")) return; //QuickTime techinical info, useless
- if (Segment_Tag_SimpleTag_TagNames[0]==_T("MINOR_VERSION")) return; //QuickTime techinical info, useless
- if (Segment_Tag_SimpleTag_TagNames[0]==_T("ORIGINAL_MEDIA_TYPE")) Segment_Tag_SimpleTag_TagNames[0]=_T("OriginalSourceForm");
- + if (Segment_Tag_SimpleTag_TagNames[0]==_T("STEREO_MODE")) return; //Useless
- if (Segment_Tag_SimpleTag_TagNames[0]==_T("TERMS_OF_USE")) Segment_Tag_SimpleTag_TagNames[0]=_T("TermsOfUse");
- for (size_t Pos=1; Pos<Segment_Tag_SimpleTag_TagNames.size(); Pos++)
- {
- @@ -2784,6 +2824,21 @@
- }
- //---------------------------------------------------------------------------
- +void File_Mk::Segment_Tracks_TrackEntry_Video_StereoMode()
- +{
- + Element_Name("StereoMode");
- +
- + //Parsing
- + int64u UInteger=UInteger_Get(); Element_Info(Format_Version==2?Mk_StereoMode_v2(UInteger):Mk_StereoMode(UInteger));
- +
- + //Filling
- + FILLING_BEGIN();
- + Fill(Stream_Video, StreamPos_Last, Video_MultiView_Count, 2); //Matroska seems to be limited to 2 views
- + Fill(Stream_Video, StreamPos_Last, Video_MultiView_MuxingMode, Format_Version==2?Mk_StereoMode_v2(UInteger):Mk_StereoMode(UInteger));
- + FILLING_END();
- +}
- +
- +//---------------------------------------------------------------------------
- void File_Mk::Segment_Tracks_TrackEntry_TrackOverlay()
- {
- Element_Name("TrackOverlay");
- Index: Source/MediaInfo/Multiple/File_Mk.h
- ===================================================================
- --- Source/MediaInfo/Multiple/File_Mk.h (revision 4091)
- +++ Source/MediaInfo/Multiple/File_Mk.h (working copy)
- @@ -222,6 +222,8 @@
- void Segment_Tracks_TrackEntry_Video_PixelCropTop();
- void Segment_Tracks_TrackEntry_Video_PixelHeight();
- void Segment_Tracks_TrackEntry_Video_PixelWidth();
- + void Segment_Tracks_TrackEntry_Video_StereoMode();
- + void Segment_Tracks_TrackEntry_Video_StereoModeBuggy() {Segment_Tracks_TrackEntry_Video_StereoMode();}
- void Segment_Tracks_TrackEntry_TrackOverlay();
- void Segment_Tracks_TrackEntry_TrackTranslate();
- void Segment_Tracks_TrackEntry_TrackTranslate_Codec();
- @@ -297,6 +299,7 @@
- //Temp
- std::vector<Ztring> AttachedFiles;
- + int64u Format_Version;
- int64u TimecodeScale;
- float64 Duration;
- int64u TrackNumber;
- Index: Source/Ressource/Text/Stream/Video.csv
- ===================================================================
- --- Source/Ressource/Text/Stream/Video.csv (revision 4086)
- +++ Source/Ressource/Text/Stream/Video.csv (working copy)
- @@ -22,6 +22,7 @@
- Format_Compression;;;N YT;;;Compression mode of the Format
- MultiView_BaseProfile;;;Y NT;;;Multiview, profile of the base stream
- MultiView_Count;;;Y NT;;;Multiview, count of views
- +MultiView_MuxingMode;;;Y NT;;;Multiview, how views are muxed in the container in case this is not muxing in the stream
- Format_Settings;;;N NT;;;Settings needed for decoder used, summary
- Format_Settings_BVOP;;Yes;N YT;;;Settings needed for decoder used, detailled
- Format_Settings_BVOP/String;;;Y NT;;;Settings needed for decoder used, detailled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement