Top | ![]() |
![]() |
![]() |
![]() |
void | aperture_init () |
gboolean | aperture_is_initialized () |
gboolean | aperture_is_barcode_detection_enabled () |
ApertureBarcode | aperture_barcode_type_from_string () |
char * | aperture_get_diagnostic_info () |
void aperture_init (int *argc
,char ***argv
);
Initializes the Aperture library, if it hasn't been initialized already.
This will initialize GStreamer for you. If you don't want this, initialize
GStreamer yourself before calling aperture_init()
.
argc |
pointer to the number of command line arguments,
or |
[inout][optional] |
argv |
pointer to the program's command line arguments, or |
[array length=argc][inout][nullable][optional][transfer none] |
Since: 0.1
gboolean
aperture_is_initialized (void
);
Gets whether Aperture is initialized.
Since: 0.1
gboolean
aperture_is_barcode_detection_enabled (void
);
Determines whether the barcode detection features of Aperture are enabled.
This is based on whether the zbar
element is available to GStreamer.
It is part of the gst-plugins-bad package. Note that many distributions
don't enable the zbar component of gst-plugins-bad by default, because
it needs an extra dependency (the zbar library). You may need to find
a gst-plugins-bad-extras package or similar, or compile that particular
plugin yourself. For a Flatpak example, see the demo application in
Aperture's source code.
Note that Aperture itself does *not* need to be recompiled to enable barcode detection. It is based solely on whether the GStreamer plugin is available.
Since: 0.1
ApertureBarcode
aperture_barcode_type_from_string (const char *string
);
char *
aperture_get_diagnostic_info (void
);
Gets a string containing useful debugging information, suitable for including in bug reports, for example. This could include versions of relevant libraries, basic software and hardware information, etc.
No guarantees are made about the format of the string.
Since: 0.1
Represents the type of a barcode detected in a video stream.
Different barcode types are used for different purposes and different types of data, so it is important to check a barcode's type before attempting to use its data.
A barcode was detected, but Aperture does not recognize its type. |
||
The code is a composite of multiple barcode types. |
||
https://en.wikipedia.org/wiki/International_Standard_Book_Number |
||
https://en.wikipedia.org/wiki/International_Standard_Book_Number |
||
Since: 0.1