Esempio n. 1
0
        //public static metaframe [] Readfile (String filename, ref movieinfo moviedata)
        public static metaframe[] Readfile(String filename, ref movieinfo moviedata)  //will need to edit this back to array type
        {
            //metaframe_avchd[] avchdreturnarray;
            MetaDataHandle metaframe;

            metaframe           = new MetaDataHandle();
            metaframe.VideoFile = filename;
            metaframe.getmetaframe();   //must catch exceptions around here

            if (metaframe.isFramedecoded == true)
            {
                metaframe_avchd[] avchd_data = metaframe.getmetadata();   //must catch exceptions around here
                //List<metaframe_avchd> avchd_data = metaframe.getmetadata();
                moviedata.framerate             = metaframe.Frame_rate;
                moviedata.movielength           = metaframe.Movie_length;
                moviedata.calc_number_of_frames = metaframe.Est_total_frames;
                return(avchd_data);
            }
            else
            {
                throw new System.Exception("Error Processing AVCHD File");
            }
        }
Esempio n. 2
0
        //will need to edit this back to array type
        //public static metaframe [] Readfile (String filename, ref movieinfo moviedata)
        public static metaframe[] Readfile(String filename, ref movieinfo moviedata)
        {
            //metaframe_avchd[] avchdreturnarray;
            MetaDataHandle metaframe;
            metaframe = new MetaDataHandle();
            metaframe.VideoFile = filename;
            metaframe.getmetaframe();   //must catch exceptions around here

            if (metaframe.isFramedecoded == true)
            {
                metaframe_avchd[] avchd_data = metaframe.getmetadata();   //must catch exceptions around here
                //List<metaframe_avchd> avchd_data = metaframe.getmetadata();
                moviedata.framerate = metaframe.Frame_rate;
                moviedata.movielength = metaframe.Movie_length;
                moviedata.calc_number_of_frames = metaframe.Est_total_frames;
                return avchd_data;
            }
            else
            {
                throw new System.Exception("Error Processing AVCHD File");
            }
        }