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

Function get_aspect_string

gtk/src/callbacks.c:2182–2197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2180}
2181
2182static gchar*
2183get_aspect_string(gint aspect_n, gint aspect_d)
2184{
2185 gchar *aspect;
2186
2187 if (aspect_d < 10)
2188 {
2189 aspect = g_strdup_printf("%d:%d", aspect_n, aspect_d);
2190 }
2191 else
2192 {
2193 gdouble aspect_nf = (gdouble)aspect_n / aspect_d;
2194 aspect = g_strdup_printf("%.2f:1", aspect_nf);
2195 }
2196 return aspect;
2197}
2198
2199void
2200ghb_update_title_info(signal_user_data_t *ud)

Callers 1

ghb_update_title_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected