private string getVideoFilename(string pVideoInfoFilepath) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(pVideoInfoFilepath, 0, 0); string[] row = l_Parser.getNextRow(0); l_Parser.close(); return(row[VIDEO_FILEPATH_INDEX]); } catch (CSVFileException e) { throw e; } }
public void loadFrameOverlayData(int pVideoWidth, int pVideoHeight) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(mVideoInfoFilepath, 0, 0); string[] row; //Skip 6 Row l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); while ((row = l_Parser.getNextRow(0)) != null) { FrameOverlayItem lFrameOverlayItem = new FrameOverlayItem(this, row, pVideoWidth, pVideoHeight); mFrameOverlayItemList.Add(lFrameOverlayItem); if (lFrameOverlayItem.FrameEvent) { mFrameMilestoneEventList.Add(lFrameOverlayItem.FrameEventName); } } l_Parser.close(); setMaxFrameCountForOverlayItems(); createFrameOverlayStructure(); } catch (CSVFileException e) { throw e; } }
private void SpaceSensorRecordingThreadSimulation() { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(ProjectConstants.SPACE_SENSOR_SIMULATED_DATA_PATH, 0, 14); string[] row; while ((row = l_Parser.getNextRow(0)) != null) { SensorData sensor1DataObj = new SensorData(); ReadSimulationSensorData(sensor1DataObj, row, 2); SensorData sensor2DataObj = new SensorData(); ReadSimulationSensorData(sensor2DataObj, row, 12); mParent.ReceivedEventRecordingData(sensor2DataObj, sensor2DataObj); Thread.Sleep(1); } l_Parser.close(); }
private string getVideoFilename(string pVideoInfoFilepath) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(pVideoInfoFilepath, 0, 0); string[] row = l_Parser.getNextRow(0); l_Parser.close(); return row[VIDEO_FILEPATH_INDEX]; } catch (CSVFileException e) { throw e; } }
private void SpaceSensorRecordingThreadSimulation() { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(ProjectConstants.SPACE_SENSOR_SIMULATED_DATA_PATH, 0, 14); string[] row; while ((row = l_Parser.getNextRow(0)) != null) { SensorData sensor1DataObj = new SensorData(); ReadSimulationSensorData(sensor1DataObj,row,2); SensorData sensor2DataObj = new SensorData(); ReadSimulationSensorData(sensor2DataObj, row, 12); mParent.ReceivedEventRecordingData(sensor2DataObj, sensor2DataObj); Thread.Sleep(1); } l_Parser.close(); }
private void stopCSVParsing() { m_CSVDataParsingInProgress = false; m_CSVFileParser.close(); m_CSVFileParser = null; }
public void loadFrameOverlayData(int pVideoWidth,int pVideoHeight) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(mVideoInfoFilepath, 0, 0); string[] row; //Skip 6 Row l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); while ((row = l_Parser.getNextRow(0)) != null) { FrameOverlayItem lFrameOverlayItem = new FrameOverlayItem(this, row, pVideoWidth, pVideoHeight); mFrameOverlayItemList.Add(lFrameOverlayItem); if (lFrameOverlayItem.FrameEvent) mFrameMilestoneEventList.Add(lFrameOverlayItem.FrameEventName); } l_Parser.close(); setMaxFrameCountForOverlayItems(); createFrameOverlayStructure(); } catch (CSVFileException e) { throw e; } }