There are some weird lines of code in this .cpp file
Code:
VideoInput::VideoInput():
capture(cvCaptureFromCAM(0)), framecount(0),
frame(cvQueryFrame(capture)), size(cvSize(frame->width, frame->height))
{}
VideoInput::VideoInput(const char* filename):
capture(cvCaptureFromFile(filename)), framecount(0),
frame(cvQueryFrame(capture)), size(cvSize(frame->width, frame->height))
{}
What exactly is:
capture(cvCaptureFromFile(filename)), framecount(0),
frame(cvQueryFrame(capture)), size(cvSize(frame->width, frame->height))
It's not parameters? They're just function calls stringed together via comma's....