mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
added output of float properties
Original commit message from CVS: added output of float properties
This commit is contained in:
parent
f02d86f752
commit
c07e195b0e
2 changed files with 13 additions and 0 deletions
|
@ -254,6 +254,12 @@ gst_editor_props_show_func (GstPropsEntry *entry)
|
|||
case GST_PROPS_INT_RANGE_ID:
|
||||
return g_strdup_printf ("%d-%d", entry->data.int_range_data.min, entry->data.int_range_data.max);
|
||||
break;
|
||||
case GST_PROPS_FLOAT_ID:
|
||||
return g_strdup_printf ("%f", entry->data.float_data);
|
||||
break;
|
||||
case GST_PROPS_FLOAT_RANGE_ID:
|
||||
return g_strdup_printf ("%f-%f", entry->data.float_range_data.min, entry->data.float_range_data.max);
|
||||
break;
|
||||
case GST_PROPS_FOURCC_ID:
|
||||
return g_strdup_printf ("%4.4s", (gchar *)&entry->data.fourcc_data);
|
||||
break;
|
||||
|
|
|
@ -22,6 +22,13 @@ void print_prop(GstPropsEntry *prop,gboolean showname,gchar *pfx) {
|
|||
printf("Integer range: %d - %d\n",prop->data.int_range_data.min,
|
||||
prop->data.int_range_data.max);
|
||||
break;
|
||||
case GST_PROPS_FLOAT_ID:
|
||||
printf("Float: %f\n",prop->data.float_data);
|
||||
break;
|
||||
case GST_PROPS_FLOAT_RANGE_ID:
|
||||
printf("Float range: %f - %f\n",prop->data.float_range_data.min,
|
||||
prop->data.float_range_data.max);
|
||||
break;
|
||||
case GST_PROPS_BOOL_ID:
|
||||
printf("Boolean: %s\n",prop->data.bool_data ? "TRUE" : "FALSE");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue