intstat(constchar *restrict pathname, struct stat *restrict buf); intfstat(int fd, struct stat *buf); intlstat(constchar *restrict pathname, struct stat *restrict buf); intlstat(int fd, constchar *restrict pathname, struct stat *restrict buf, int flag);
/* 所有4个函数的返回值:若成功,返回0;若出错,返回-1 */
sturct stat { mode_t st_mode; /* file type & mode (permissions) */ ino_t st_ino; /* i-node number (serial number) */ dev_t st_dev; /* device number (file system) */ dev_t st_rdev; /* device number for special files */ nlink_t st_nlink; /* number of links */ uid_t st_uid; /* user ID of links */ gid_t st_gid; /* group ID of owner */ off_t st_size; /* size in bytes, for regular files */ structtimespecst_atime;/* time of last access */ structtimespecst_mtime;/* time of last modification */ structtimespecst_ctime;/* time of last file status change */ blksize_t st_blksize; /* best I/O block size */ blkcnt_t st_blocks; /* number of disk blocks allocated */ }
using System; using System.Windows.Forms; using Declarations; using Declarations.Enums; using Declarations.Media; using Declarations.Players; using Implementation;
namespacenVLC_Demo_MemoryInputOutput { publicpartialclassForm1 : Form { IMediaPlayerFactory m_factory; IVideoPlayer m_sourcePlayer; IVideoPlayer m_renderPlayer; IMemoryInputMedia m_inputMedia; constlong MicroSecondsInSecomd = 1000 * 1000; long MicroSecondsBetweenFrame; long frameCounter; FrameData data = new FrameData() { DTS = -1 }; constint DefaultFps = 24; Timer timer = new Timer();