improved text display of time with 3 modes depending on the needs.

This commit is contained in:
brunoherbelin
2020-08-04 19:05:03 +02:00
parent 6f844f722d
commit 2863a1f3c9
4 changed files with 37 additions and 22 deletions

View File

@@ -9,13 +9,19 @@
namespace GstToolkit
{
std::string time_to_string(guint64 t, bool stripped = false);
typedef enum {
TIME_STRING_FIXED = 0,
TIME_STRING_ADJUSTED,
TIME_STRING_MINIMAL
} time_string_mode;
std::string gst_version();
std::list<std::string> all_plugins();
std::list<std::string> all_plugin_features(std::string pluginname);
std::string time_to_string(guint64 t, time_string_mode m = TIME_STRING_ADJUSTED);
bool enable_feature (std::string name, bool enable);
std::string gst_version();
std::list<std::string> all_plugins();
std::list<std::string> all_plugin_features(std::string pluginname);
bool enable_feature (std::string name, bool enable);
}