mirror of
https://github.com/eclipse/upm.git
synced 2025-03-19 23:17:29 +03:00

This UPM module captures a still frame from a Linux V4L device, such as a USB webcam, and and then allows you to save it as a JPEG image into a file. The camera and driver in use must support streaming, mmap-able buffers and must provide data in YUYV format. This should encompass most video cameras out there. It has been tested with a few off the shelf USB cameras without any problems. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
20 lines
390 B
OpenEdge ABL
20 lines
390 B
OpenEdge ABL
%module javaupm_vcap
|
|
%include "../upm.i"
|
|
%include "std_string.i"
|
|
|
|
%include "vcap.hpp"
|
|
%{
|
|
#include "vcap.hpp"
|
|
%}
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_vcap");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|