- YCbCrInterpretation current_interpretation = global_mixer->get_input_ycbcr_interpretation(current_card);
- {
- QAction *action = new QAction("Auto", &interpretation_group);
- action->setCheckable(true);
- if (current_interpretation.ycbcr_coefficients_auto) {
- action->setChecked(true);
- }
- action->setData(QList<QVariant>{"interpretation", true, YCBCR_REC_709, false});
- interpretation_submenu.addAction(action);
- }
- for (YCbCrLumaCoefficients ycbcr_coefficients : { YCBCR_REC_709, YCBCR_REC_601 }) {
- for (bool full_range : { false, true }) {
- std::string description;
- if (ycbcr_coefficients == YCBCR_REC_709) {
- description = "Rec. 709 (HD)";
- } else {
- description = "Rec. 601 (SD)";
- }
- if (full_range) {
- description += ", full range (nonstandard)";
- }
- QAction *action = new QAction(QString::fromStdString(description), &interpretation_group);
+ YCbCrInterpretation current_interpretation = global_mixer->get_input_ycbcr_interpretation(current_card);
+ {
+ QAction *action = new QAction("Auto", &interpretation_group);