Mbed OS version of IoT.js implementation running on GR-PEACH
Embed:
(wiki syntax)
Show/hide line numbers
iotjs_module_video.h
00001 /* Copyright 2017-present Renesas Electronics Corporation and other contributors 00002 * 00003 * Licensed under the Apache License, Version 2.0 (the "License"); 00004 * you may not use this file except in compliance with the License. 00005 * You may obtain a copy of the License at 00006 * 00007 * http://www.apache.org/licenses/LICENSE-2.0 00008 * 00009 * Unless required by applicable law or agreed to in writing, software 00010 * distributed under the License is distributed on an "AS IS" BASIS 00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 * See the License for the specific language governing permissions and 00013 * limitations under the License. 00014 */ 00015 00016 #ifndef IOTJS_MODULE_VIDEO_H 00017 #define IOTJS_MODULE_VIDEO_H 00018 00019 #include "iotjs_def.h" 00020 #include "iotjs_handlewrap.h" 00021 #include "iotjs_ext_module_periph_common.h" 00022 #include "iotjs_reqwrap.h" 00023 00024 typedef struct iotjs_video_platform_data_s iotjs_video_platform_data_t; 00025 00026 typedef struct { 00027 jerry_value_t jobject; 00028 iotjs_video_platform_data_t* platform_data; 00029 00030 video_source_t video_source; 00031 } iotjs_video_t; 00032 00033 bool iotjs_video_open(iotjs_video_t* video); 00034 bool iotjs_video_start(iotjs_video_t* video); 00035 bool iotjs_video_stop(iotjs_video_t* video); 00036 bool iotjs_video_read_frame(iotjs_video_t* video); 00037 bool iotjs_video_close(iotjs_video_t* video); 00038 00039 void iotjs_video_create_platform_data(iotjs_video_t* video); 00040 void iotjs_video_destroy_platform_data(iotjs_video_platform_data_t* pdata); 00041 jerry_value_t iotjs_video_set_platform_config(iotjs_video_t* video, 00042 const jerry_value_t jconfig); 00043 00044 #endif /* IOTJS_MODULE_VIDEO_H */
Generated on Wed Jul 13 2022 20:23:11 by 1.7.2