-
Notifications
You must be signed in to change notification settings - Fork 183
Add display configuration options to gvawatermark element #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| "disp-avgfps", "Display Average FPS", | ||
| "If true, display the average FPS read from gvafpscounter element on the output video, (default false)\n" | ||
| "\t\t\tThe gvafpscounter element must be present in the pipeline.\n" | ||
| "\t\t\te.g.: ... ! gwatermark ! gvafpscounter ! ...", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is gwatermark ?
| async-handling : The bin will handle Asynchronous state changes | ||
| flags: readable, writable | ||
| Boolean. Default: false | ||
| cfg : Comma separated list of KEY=VALUE parameters specific to. Please see user guide for more details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the detailed user guide?
| e.g.: cfg=show-labels=off | ||
| e.g.: cfg=text-scale=0.5 | ||
| flags: readable, writable | ||
| String. Default: "show-labels=true,text-scale=1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For default value I think null is enough because there is already default values for each setting
| g_param_spec_string("device", "Target device", "CPU or GPU. Default is CPU.", | ||
| DEFAULT_DEVICE, kDefaultGParamFlags)); | ||
|
|
||
| g_object_class_install_property(gobject_class, PROP_OBB, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should obb setting move to cfg?
| bool _disp_avgfps = false; | ||
| }; | ||
| gchar *_displ_cfg = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mix use of disp and displ should be avoided
| struct DisplCfg { | ||
| bool show_labels = true; | ||
| double text_scale = 1.0; | ||
| } _displCfg; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mix use of camel case _displCfg and snake case _displ_cfg should be avoided
No description provided.