mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
zxing: update to 1.4.0 tag
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3450>
This commit is contained in:
parent
4d70b9f87c
commit
7cfc3130a7
2 changed files with 5 additions and 4 deletions
|
@ -368,7 +368,7 @@ gst_zxing_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
|
|||
auto result = ReadBarcode ({(unsigned char *)data, width, height, zxing->image_format}, hints);
|
||||
if (result.isValid ()) {
|
||||
GST_DEBUG_OBJECT (zxing, "Symbol found. Text: %s Format: %s",
|
||||
TextUtfEncoding::ToUtf8 (result.text ()).c_str (),
|
||||
result.text ().c_str (),
|
||||
ToString (result.format ()));
|
||||
} else {
|
||||
goto out;
|
||||
|
@ -396,7 +396,7 @@ gst_zxing_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
|
|||
"running-time", G_TYPE_UINT64, running_time,
|
||||
"type", G_TYPE_STRING, ToString (result.format ()),
|
||||
"symbol", G_TYPE_STRING,
|
||||
TextUtfEncoding::ToUtf8 (result.text ()).c_str (), NULL);
|
||||
result.text ().c_str (), NULL);
|
||||
|
||||
if (zxing->attach_frame) {
|
||||
/* create a sample from image */
|
||||
|
|
|
@ -2,16 +2,17 @@ zxing_sources = [
|
|||
'gstzxing.cpp',
|
||||
'gstzxingplugin.c',
|
||||
]
|
||||
zxing_dep = dependency('zxing', version : '>= 1.1.1', required : get_option('zxing'))
|
||||
zxing_dep = dependency('zxing', version : '>= 1.4.0', required : get_option('zxing'))
|
||||
if zxing_dep.found()
|
||||
gstzxing = library('gstzxing',
|
||||
zxing_sources,
|
||||
c_args : gst_plugins_bad_args,
|
||||
cpp_args: '-DZX_USE_UTF8',
|
||||
include_directories : [configinc],
|
||||
dependencies : [gstvideo_dep, zxing_dep],
|
||||
install : true,
|
||||
install_dir : plugins_install_dir,
|
||||
override_options : ['cpp_std=c++11'],
|
||||
override_options : ['cpp_std=c++17'],
|
||||
)
|
||||
plugins += [gstzxing]
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue