Exemple #1
0
//---------------------------------------------------------------------------
void File_Dummy::FileHeader_Parse()
{
    File_Name=__T("D:\\Example\\"); File_Name+=KindOfDummy;
         if (KindOfDummy==__T("Album"))
    {
        Fill_Dummy_General();
        Fill_Dummy_Audio();
    }
    else if (KindOfDummy==__T("Comic"))
    {
        Fill_Dummy_General();
        Fill_Dummy_Video();
    }
    else if (KindOfDummy==__T("Movie"))
    {
        Fill_Dummy_General();
        Fill_Dummy_Video();
        Fill_Dummy_Video();
        Fill_Dummy_Audio();
        Fill_Dummy_Audio();
        Fill_Dummy_Audio();
        Fill_Dummy_Audio();
        Fill_Dummy_Text();
        Fill_Dummy_Text();
        Fill_Dummy_Text();
        Fill_Dummy_Text();
        Fill_Dummy_Chapters();
        Fill_Dummy_Chapters();
    }
    else
    {
        File_Name=__T("D:\\WhatIsIt.mkv");
        Fill(Stream_General, 0, General_Domain, "Starwars saga");
        Fill(Stream_General, 0, General_Movie, "Starwars 4");
        Fill(Stream_General, 0, General_Movie_More, "A new hope");
        Fill(Stream_General, 0, General_Director, "Georges Lucas");
        Fill(Stream_General, 0, General_Released_Date, "1977");
        Fill(Stream_General, 0, General_FileSize, "734000000");
        Fill(Stream_General, 0, General_Format, "Matroska");
        Fill(Stream_General, 0, General_Format_Url, "http://mediainfo.sourceforge.net");
        Stream_Prepare(Stream_Video);
        Fill(Stream_Video, 0, Video_Codec, "XVID");
        Fill(Stream_Video, 0, Video_Codec_Url, "http://mediainfo.sourceforge.net");
        Fill(Stream_Video, 0, Video_BitRate, "800000");
        Fill(Stream_Video, 0, Video_Width, "720");
        Fill(Stream_Video, 0, Video_Height, "320");
        Fill(Stream_Video, 0, Video_FrameRate, "24.976");
        Fill(Stream_Video, 0, Video_BitDepth, "8");
        Fill(Stream_Video, 0, Video_Language, "en");
        Stream_Prepare(Stream_Audio);
        Fill(Stream_Audio, 0, Audio_Format, "AC-3");
        Fill(Stream_Audio, 0, Audio_Codec, "AC3");
        Fill(Stream_Audio, 0, Audio_Codec_Url, "http://mediainfo.sourceforge.net");
        Fill(Stream_Audio, 0, Audio_BitRate, "384000");
        Fill(Stream_Audio, 0, Audio_BitRate_Mode, "CBR");
        Fill(Stream_Audio, 0, Audio_Channel_s_, "6");
        Fill(Stream_Audio, 0, Audio_SamplingRate, "48000");
        Fill(Stream_Audio, 0, Audio_Language, "en");
        Stream_Prepare(Stream_Text);
        Fill(Stream_Text, 0, Text_Codec, "SSA");
        Fill(Stream_Text, 0, Text_Codec_Url, "http://mediainfo.sourceforge.net");
        Fill(Stream_Text, 0, Text_Language, "en");
        Fill(Stream_Text, 0, Text_Language_More, "Forced");
        Stream_Prepare(Stream_Other);
        Fill(Stream_Other, 0, Chapters_Total, "16");
        Fill(Stream_Other, 0, Chapters_Language, "en");
    }

    Accept();
}
Exemple #2
0
//---------------------------------------------------------------------------
void File_Dummy::Read_File()
{
    CompleteFileName=_T("D:\\Example\\"); CompleteFileName+=KindOfDummy;
         if (KindOfDummy==_T("Album"))
    {
        Fill_Dummy_General();
        Fill_Dummy_Audio();
    }
    else if (KindOfDummy==_T("Comic"))
    {
        Fill_Dummy_General();
        Fill_Dummy_Video();
    }
    else if (KindOfDummy==_T("Movie"))
    {
        Fill_Dummy_General();
        Fill_Dummy_Video();
        Fill_Dummy_Video();
        Fill_Dummy_Audio();
        Fill_Dummy_Audio();
        Fill_Dummy_Audio();
        Fill_Dummy_Audio();
        Fill_Dummy_Text();
        Fill_Dummy_Text();
        Fill_Dummy_Text();
        Fill_Dummy_Text();
        Fill_Dummy_Chapters();
        Fill_Dummy_Chapters();
    }
    else
    {
        CompleteFileName=_T("D:\\WhatIsIt.mkv");
        size_t Pos;
        Pos=Stream_Prepare(Stream_General);
        General[Pos](_T("Domain"))=_T("Starwars saga");
        General[Pos](_T("Movie"))=_T("Starwars 4");
        General[Pos](_T("Movie/More"))=_T("A new hope");
        General[Pos](_T("Director"))=_T("Georges Lucas");
        General[Pos](_T("Released_Date"))=_T("1977");
        General[Pos](_T("FileSize"))=_T("734000000");
        General[Pos](_T("Format"))=_T("Matroska");
        General[Pos](_T("Format/Url"))=_T("http://mediainfo.sourceforge.net");
        Pos=Stream_Prepare(Stream_Video);
        Video[Pos](_T("Codec"))=_T("XVID");
        Video[Pos](_T("Codec/Url"))=_T("http://mediainfo.sourceforge.net");
        Video[Pos](_T("BitRate"))=_T("800000");
        Video[Pos](_T("Width"))=_T("720");
        Video[Pos](_T("Height"))=_T("320");
        Video[Pos](_T("FrameRate"))=_T("24.976");
        Video[Pos](_T("Resolution"))=_T("24");
        Video[Pos](_T("Language"))=_T("en");
        Pos=Stream_Prepare(Stream_Audio);
        Audio[Pos](_T("Codec"))=_T("AC3");
        Audio[Pos](_T("Codec/Url"))=_T("http://mediainfo.sourceforge.net");
        Audio[Pos](_T("BitRate"))=_T("384000");
        Audio[Pos](_T("BitRate_Mode"))=_T("CBR");
        Audio[Pos](_T("Channel(s)"))=_T("6");
        Audio[Pos](_T("SamplingRate"))=_T("48000");
        Audio[Pos](_T("Language"))=_T("en");
        Pos=Stream_Prepare(Stream_Text);
        Text[Pos](_T("Codec"))=_T("SSA");
        Text[Pos](_T("Codec/Url"))=_T("http://mediainfo.sourceforge.net");
        Text[Pos](_T("Language"))=_T("en");
        Text[Pos](_T("Language_More"))=_T("Forced");
        Pos=Stream_Prepare(Stream_Chapters);
        Chapters[Pos](_T("Total"))=_T("16");
        Chapters[Pos](_T("Language"))=_T("en");
    }
}