pvinput

Open the specified PVOC file and make it the current data file


Synopsis

frame_count = pvinput(“path_to_data_file”)


Description

pvinput opens and verifies the PVOC data file path_to_data_file. path_to_data_file may be an absolute or relative pathname to the file. pvinput returns the frame count on success, else -1.


Arguments


Examples

frame_count = pvinput("/path/to/datafile")
// check for error
if (frame_count < 0) {
	error("failed to open %s\n", "/path/to/datafile");
}

See Also

pvgetbin, pvgetbincount, pvgetframe, pvgetframefreqs, pvgetframerate, PVOC