谢谢
读取视频结束的时候。
// check if we should stop
if (frame_to_stop>=0 && getFrameNumber()==frame_to_stop)
stopIt(); // stop = true
frame_to_stop初始值为具体某一帧,读到这一帧stop变为ture,while循环停止。调试的时候stop也的确变为true了。
谢谢
读取视频结束的时候。
// check if we should stop
if (frame_to_stop>=0 && getFrameNumber()==frame_to_stop)
stopIt(); // stop = true
frame_to_stop初始值为具体某一帧,读到这一帧stop变为ture,while循环停止。调试的时候stop也的确变为true了。