Beispiel #1
0
        public MLVReader(string fileName, MLVBlockHandler handler)
        {
            /* ensure that we load the main file first */
            fileName = fileName.Substring(0, fileName.Length - 2) + "LV";

            /* load files and build internal index */
            OpenFiles(fileName);

            if (FileNames == null)
            {
                throw new FileNotFoundException("File '" + fileName + "' does not exist.");
            }

            UpdateIndex();

            Handler = handler;
        }
        public MLVReader(string fileName, MLVBlockHandler handler)
        {
            /* ensure that we load the main file first */
            fileName = fileName.Substring(0, fileName.Length - 2) + "LV";

            /* load files and build internal index */
            OpenFiles(fileName);

            if (FileNames == null)
            {
                throw new FileNotFoundException("File '" + fileName + "' does not exist.");
            }

            UpdateIndex();

            Handler = handler;
        }
Beispiel #3
0
        public RAWReader(string fileName, MLVBlockHandler handler)
        {
            Handler = handler;

            /* ensure that we load the main file first */
            fileName = fileName.Substring(0, fileName.Length - 2) + "AW";

            /* load files and build internal index */
            OpenFiles(fileName);

            if (FileNames == null)
            {
                throw new FileNotFoundException("File '" + fileName + "' does not exist.");
            }

            RawiHeader = ReadFooter();
            BuildIndex();

            /* fill with dummy values */
            FileHeader.fileMagic  = "MLVI";
            FileHeader.audioClass = 0;
            FileHeader.videoClass = 1;
            FileHeader.blockSize  = (uint)Marshal.SizeOf(FileHeader);
        }