/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- // Pre-compilation #include "MediaInfo/PreComp.h" #ifdef __BORLANDC__ #pragma hdrstop #endif //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "MediaInfo/Setup.h" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #if defined(MEDIAINFO_CANOPUS_YES) //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "MediaInfo/Video/File_Canopus.h" #include "MediaInfo/MediaInfo_Config_MediaInfo.h" using namespace std; //--------------------------------------------------------------------------- namespace MediaInfoLib { //*************************************************************************** // Constructor/Destructor //*************************************************************************** //--------------------------------------------------------------------------- File_Canopus::File_Canopus() :File__Analyze() { //Configuration ParserName="Canopus"; } //*************************************************************************** // Streams management //*************************************************************************** //--------------------------------------------------------------------------- void File_Canopus::Streams_Fill() { Stream_Prepare(Stream_Video); } //*************************************************************************** // Buffer - Global //*************************************************************************** //--------------------------------------------------------------------------- void File_Canopus::Read_Buffer_Continue() { //Parsing int32u PAR_X=0, PAR_Y=0, FieldOrder=(int32u)-1; while (Element_OffsetElement_Size) { Skip_XX(Element_Size-Element_Offset, "Problem"); Element_End0(); return; } Skip_L4( "Unknown"); Skip_L4( "Unknown"); Get_L4 (PAR_X, "PAR_X"); Get_L4 (PAR_Y, "PAR_Y"); while (Element_OffsetInfo_End) { Skip_XX(Info_End-Element_Offset, "Problem"); break; } if (Element_OffsetInfo_End) { Skip_XX(Info_End-Element_Offset, "Problem"); break; } while (Element_OffsetParseSpeed<1.0) Finish(); } FILLING_END(); } //*************************************************************************** // C++ //*************************************************************************** } //NameSpace #endif //MEDIAINFO_CANOPUS_YES