private static IREDIT[] MakeEdits(VideoInfoCollection videoInfo)
        {
            int index = 0;

            IREDIT[] edits = new IREDIT[ProcessInfo.MAX_LEN];

            for (int i = 0; i < ProcessInfo.MAX_LEN; i++)
            {
                edits[i].bstrVideo = string.Empty;
            }

            foreach (VideoInfo vi in videoInfo)
            {
                edits[index].bstrVideo  = vi.FilePath;
                edits[index].nStartTime = vi.StartFrame;
                edits[index].nEndTime   = vi.EndFrame;
                edits[index].nAngleNum  = vi.Angle;

                //edits[index].nPlayNum = vi.PlayNum;  //Add this code at 2011-5-25 15:22:40@simon
                //edits[index].nMasterNum = vi.nMasterNum;  //Add this code at 2011-5-25 15:22:40@simon
                //edits[index].bstrGameName = vi.GameName;  //Add this code at 2011-5-25 15:22:40@simon

                index++;
            }

            return(edits);
        }
        public static byte[] MakeIREDITToBytes(IREDIT edit)
        {
            int len = 0, offset = 0, size = ProcessInfo.EDIT_Length;

            byte[] allBytes = new byte[size];

            byte[] bytesStartTime = BitConverter.GetBytes(edit.nStartTime);

            len = bytesStartTime.Length;

            Buffer.BlockCopy(bytesStartTime, 0, allBytes, offset, len);

            offset += len;

            byte[] bytesEndTime = BitConverter.GetBytes(edit.nEndTime);

            len = bytesEndTime.Length;

            Buffer.BlockCopy(bytesEndTime, 0, allBytes, offset, len);

            offset += len;

            byte[] bytesSnapTime = BitConverter.GetBytes(edit.nSnapTime);

            len = bytesSnapTime.Length;

            Buffer.BlockCopy(bytesSnapTime, 0, allBytes, offset, len);

            offset += len;

            byte[] bytesAngle = BitConverter.GetBytes(edit.nAngleNum);

            len = bytesAngle.Length;

            Buffer.BlockCopy(bytesAngle, 0, allBytes, offset, len);

            offset += len;

            byte[] byteVideo = System.Text.Encoding.Default.GetBytes(edit.bstrVideo);

            len = edit.bstrVideo.Length;

            Buffer.BlockCopy(byteVideo, 0, allBytes, offset, len);

            return(allBytes);
        }