GNOME Bugzilla – Bug 750593
zbar: add ability to dump XML representation of a symbol
Last modified: 2016-01-09 19:58:00 UTC
ZBar has the ability to dump an XML representation of a decoded symbol (or set of symbols) using this schema: http://zbar.sourceforge.net/2008/barcode.xsd The feature has been present in the library since version 0.6 and works by dumping every single piece of information zbar can decode using the above XML representation. I'm guessing we can make this opt-in as we did with https://bugzilla.gnome.org/show_bug.cgi?id=747557 but wanted to check first. What do you think?
Do you have an actual need for this or is it just something you came across? I don't think we should add things just because they exist and we can. If any of the issue that can be put in the xml is missing we can probably put it into the GstStructure as well.
Came across this while taking a look at it's API. I was searching for a way to report the symbol position and geometry, which seemed like an useful complement to #747557. Then I figured out that keep adding fields to the structure was probably not the best idea ever, considering zbar already had a way to dump all info it can decode and that this set might actually change with time. That's pretty much the rationale.
I think from an application programmer's perspective it is much easier to parse such values out of the GstStructure than to parse an XML blob.