Skip to content

Conversation

@mholowni
Copy link
Contributor

Description

Merged gvawatermark3d and gvadeskew into top level library to reduce dlls/so files.

Any Newly Introduced Dependencies

N/A

How Has This Been Tested?

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes.
  • I have not introduced any 3rd party components incompatible with APACHE-2.0.
  • I have not included any company confidential information, trade secret, password or security token.
  • I have performed a self-review of my code.

Comment on lines 421 to 426
static gboolean plugin_init(GstPlugin *plugin) {
return gst_element_register(plugin, "gvadeskew", GST_RANK_NONE, GST_TYPE_GVADESKEW);
if (!gst_element_register(plugin, "gvadeskew", GST_RANK_NONE, GST_TYPE_GVADESKEW))
return FALSE;

return TRUE;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This init function is no longer needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other plugins plugin_init (in gstvideoanalitics library) is included, and without it we`ve got compilation errors:
https://github.com/open-edge-platform/edge-ai-libraries/blob/main/libraries/dl-streamer/src/monolithic/gst/elements/gvawatermark/gvawatermark.cpp#L672-L680

Comment on lines +312 to +318
static gboolean plugin_init(GstPlugin *plugin) {
if (!gst_element_register(plugin, "gvawatermark3d", GST_RANK_NONE, GST_TYPE_GVAWATERMARK3D))
return FALSE;

return TRUE;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This init function is no longer needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

jmotow
jmotow previously approved these changes Dec 18, 2025
return TRUE;
}

GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR, gvadeskew, PRODUCT_FULL_NAME " gvadeskew element", plugin_init,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to remove this reference to plugin_init here, so you have compilation error.

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.

5 participants