diff options
author | jstebbins <[email protected]> | 2008-09-15 21:24:35 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-15 21:24:35 +0000 |
commit | d2c2574679ee6ea93d41a89f7a6a53ce666ff3da (patch) | |
tree | 10745e49a5143c897b09c2f594b751c265060491 /gtk/src/hb-backend.c | |
parent | 34327d0c37880dcc2d4f332ce291a308ce767d8d (diff) |
LinGui: update queue descriptions to match what joe is doing in the mac gui
had to make queue window a little wider to accomidate.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1701 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index fdbd4f97b..fb8c271a4 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -483,6 +483,44 @@ ghb_lookup_vcodec(const GValue *vcodec) return result; } +const gchar* +ghb_lookup_vcodec_option(const GValue *vcodec) +{ + gint ii; + gchar *str; + const gchar *result = ""; + + str = ghb_value_string(vcodec); + for (ii = 0; ii < vcodec_opts.count; ii++) + { + if (strcmp(vcodec_opts.map[ii].shortOpt, str) == 0) + { + result = vcodec_opts.map[ii].option; + } + } + g_free(str); + return result; +} + +const gchar* +ghb_lookup_container_option(const GValue *container) +{ + gint ii; + gchar *str; + const gchar *result = ""; + + str = ghb_value_string(container); + for (ii = 0; ii < container_opts.count; ii++) + { + if (strcmp(container_opts.map[ii].shortOpt, str) == 0) + { + result = container_opts.map[ii].option; + } + } + g_free(str); + return result; +} + gint ghb_lookup_denoise(const GValue *denoise) { @@ -561,6 +599,45 @@ ghb_lookup_acodec(const GValue *acodec) return result; } +const gchar* +ghb_lookup_acodec_option(const GValue *acodec) +{ + gint ii; + gchar *str; + const gchar *result = ""; + + str = ghb_value_string(acodec); + for (ii = 0; ii < acodec_opts.count; ii++) + { + if (strcmp(acodec_opts.map[ii].shortOpt, str) == 0) + { + result = acodec_opts.map[ii].option; + } + } + g_free(str); + return result; +} + +const gchar* +ghb_lookup_mix_option(const GValue *mix) +{ + gint ii; + gchar *str; + gchar *result = "None"; + + + str = ghb_value_string(mix); + for (ii = 0; ii < hb_audio_mixdowns_count; ii++) + { + if (strcmp(hb_audio_mixdowns[ii].short_name, str) == 0) + { + result = hb_audio_mixdowns[ii].human_readable_name; + } + } + g_free(str); + return result; +} + gint ghb_lookup_mix(const GValue *mix) { |