Skip to content

Conversation

@tbujewsk
Copy link
Contributor

No description provided.

"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 ! ...",
Copy link
Member

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.
Copy link
Member

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"
Copy link
Member

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,
Copy link
Member

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?

Comment on lines 169 to +170
bool _disp_avgfps = false;
};
gchar *_displ_cfg = nullptr;
Copy link
Member

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;
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants