- bool current_ycbcr_coefficients_auto, current_full_range;
- YCbCrLumaCoefficients current_ycbcr_coefficients;
- global_mixer->get_input_ycbcr_interpretation(
- current_card, ¤t_ycbcr_coefficients_auto,
- ¤t_ycbcr_coefficients, ¤t_full_range);
- {
- QAction *action = new QAction("Auto", &interpretation_group);
- action->setCheckable(true);
- if (current_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);