GNOME Bugzilla – Bug 767514
House all j2k plugins in a single project
Last modified: 2016-06-11 12:14:54 UTC
There is currently a fair bit of redundancy between the various j2k plugins: rtp payloader/depayloader, openjpeg encoder/decoder, jpeg2000parse, decimator. Moving them all to a single project would allow us to streamline the code.
Unlikely to happen to the extent that I think I'm going to close this, sorry :) You can move useful bits of code into -bad/gst-libs/gst/codecparser/ and make -bad plugins use that (ie. not the rtp (de)payloader) and hope one day we'll move codecparsers into -base or something.
Also parts of the duplication can be solved by moving helper functions to libgstpbutils, like the existing codec specific things in codecutils.[ch]. What kind of duplication are you thinking of, what kind of API would it get?
I would like all information about j2k markers and boxes to be in one single header file, for example. Also, yes, helper functions could be centralized. Someone could review all j2k related plugins, find common structs,enums, helper functions, and move them to one place.
We can worry about that once it becomes an issue :) Ideally the jpeg2000 parsing should be in libgstcodecparsers together with the others, and at some point in the future we move that library to gst-plugins-base and have it used everywhere. And until then use (private!) copies of that in the other modules that are kept up to date.
Alrighty :)