vision_source_buffer_s *buffer);
int vision_source_release_capture_frame(vision_source_h handle,
int buffer_index);
+int vision_source_ioctl(vision_source_h handle, int request, void *arg);
#ifdef __cplusplus
}
VISION_SOURCE_PIXEL_FORMAT_YVU420, //YV12
VISION_SOURCE_PIXEL_FORMAT_YUV420, //I420
VISION_SOURCE_PIXEL_FORMAT_Z32F, //FP32 depth data(millimeter distance)
+ VISION_SOURCE_PIXEL_FORMAT_Z16U, //U16 depth data(millimeter distance)
VISION_SOURCE_PIXEL_FORMAT_MAX
} vision_source_pixel_format_e;
int (*get_capture_frame)(vision_source_h handle,
vision_source_buffer_s *buffer);
int (*release_capture_frame)(vision_source_h handle, int buffer_index);
+ int (*ioctl)(vision_source_h handle, int request, void *arg);
} vision_source_func_s;
void attach_backend(vision_source_func_s *funcp);
Name: vision-source
Summary: vision source
-Version: 0.1.1
+Version: 0.2.0
Release: 0
Group: Multimedia/Framework
License: Apache-2.0
(vision_source_internal_s *) handle;
return source_handle->funcs.release_capture_frame(
source_handle->backend_handle, buffer_index);
+}
+
+int vision_source_ioctl(vision_source_h handle, int request, void *arg)
+{
+ VISION_SOURCE_NULL_ARG_CHECK(handle);
+ vision_source_internal_s *source_handle =
+ (vision_source_internal_s *) handle;
+ return source_handle->funcs.ioctl(source_handle->backend_handle, request,
+ arg);
}
\ No newline at end of file