} while (enum_std(vs));
addWidget(m_tvStandard);
connect(m_tvStandard, SIGNAL(activated(int)), SLOT(standardChanged(int)));
- updateStandard();
}
v4l2_dv_enum_preset preset;
} while (enum_dv_preset(preset));
addWidget(m_videoPreset);
connect(m_videoPreset, SIGNAL(activated(int)), SLOT(presetChanged(int)));
- updatePreset();
}
v4l2_input vin;
addWidget(m_frameInterval);
connect(m_frameInterval, SIGNAL(activated(int)), SLOT(frameIntervalChanged(int)));
+ if (m_tvStandard)
+ updateStandard();
+ if (m_videoPreset)
+ updatePreset();
+
updateVidCapFormat();
if (caps() & V4L2_CAP_VIDEO_OUTPUT) {
vs.frameperiod.numerator, vs.frameperiod.denominator,
vs.framelines);
m_tvStandard->setWhatsThis(what);
+ updateVidCapFormat();
}
void GeneralTab::updatePreset()
"Frame %ux%u\n",
p.preset, p.width, p.height);
m_videoPreset->setWhatsThis(what);
+ updateVidCapFormat();
}
void GeneralTab::updateFreq()
m_frameInterval->clear();
ok = enum_frameintervals(frmival, m_pixelformat, m_width, m_height);
+ m_frameInterval->setEnabled(ok);
curr_ok = get_interval(curr);
if (ok && frmival.type == V4L2_FRMIVAL_TYPE_DISCRETE) {
do {