MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_grey_combo_options

Function ghb_grey_combo_options

gtk/src/hb-backend.c:1449–1516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1447}
1448
1449void
1450ghb_grey_combo_options(signal_user_data_t *ud)
1451{
1452 gint track, title_id, titleindex, acodec, fallback;
1453 const hb_title_t *title;
1454 hb_audio_config_t *aconfig = NULL;
1455
1456 title_id = ghb_dict_get_int(ud->settings, "title");
1457 title = ghb_lookup_title(title_id, &titleindex);
1458
1459 track = ghb_dict_get_int(ud->settings, "AudioTrack");
1460 aconfig = ghb_get_audio_info(title, track);
1461
1462 const char *mux_id;
1463 const hb_container_t *mux;
1464
1465 mux_id = ghb_dict_get_string(ud->settings, "FileFormat");
1466 mux = ghb_lookup_container_by_name(mux_id);
1467
1468 const hb_encoder_t *enc;
1469 for (enc = hb_audio_encoder_get_next(NULL); enc != NULL;
1470 enc = hb_audio_encoder_get_next(enc))
1471 {
1472 if (!(mux->format & enc->muxers) && enc->codec != HB_ACODEC_NONE)
1473 {
1474 grey_builder_combo_box_item("AudioEncoder", enc->codec, TRUE);
1475 grey_builder_combo_box_item("AudioEncoderFallback", enc->codec, TRUE);
1476 }
1477 else
1478 {
1479 grey_builder_combo_box_item("AudioEncoder", enc->codec, FALSE);
1480 grey_builder_combo_box_item("AudioEncoderFallback", enc->codec, FALSE);
1481 }
1482 }
1483 for (enc = hb_video_encoder_get_next(NULL); enc != NULL;
1484 enc = hb_video_encoder_get_next(enc))
1485 {
1486 if (!(mux->format & enc->muxers))
1487 {
1488 grey_builder_combo_box_item("VideoEncoder", enc->codec, TRUE);
1489 }
1490 else
1491 {
1492 grey_builder_combo_box_item("VideoEncoder", enc->codec, FALSE);
1493 }
1494 }
1495 grey_passthru(ud, aconfig);
1496
1497 acodec = ghb_settings_audio_encoder_codec(ud->settings, "AudioEncoder");
1498
1499 const char *layout = "7.1";
1500 guint32 in_codec = 0;
1501 char layout_name[256];
1502
1503 if (aconfig != NULL)
1504 {
1505 hb_layout_get_name(aconfig->in.ch_layout,
1506 layout_name, sizeof(layout_name));

Callers 3

update_acodecFunction · 0.85
title_changed_cbFunction · 0.85
audio_depsFunction · 0.85

Calls 15

ghb_dict_get_intFunction · 0.85
ghb_lookup_titleFunction · 0.85
ghb_get_audio_infoFunction · 0.85
ghb_dict_get_stringFunction · 0.85
grey_passthruFunction · 0.85
hb_layout_get_nameFunction · 0.85
ghb_select_fallbackFunction · 0.85

Tested by

no test coverage detected