1 /**
2   * @file     	WrapperIHaasDataInput.h
3   * @author   	HaasAI Group
4   * @version	V1.0.0
5   * @date    	2021-01-10
6   * @license  	GNU General Public License (GPL)
7   * @brief   	Data input, for example:image.video file,camera ...
8   * @attention
9   *  This file is part of HaasAI.                                \n
10   *  This program is free software; you can redistribute it and/or modify 		\n
11   *  it under the terms of the GNU General Public License version 3 as 		    \n
12   *  published by the Free Software Foundation.                               	\n
13   *  You should have received a copy of the GNU General Public License   		\n
14   *  along with HaasAI.. If not, see <http://www.gnu.org/licenses/>.       			\n
15   *  Unless required by applicable law or agreed to in writing, software       	\n
16   *  distributed under the License is distributed on an "AS IS" BASIS,         	\n
17   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  	\n
18   *  See the License for the specific language governing permissions and     	\n
19   *  limitations under the License.   											\n
20   *   																			\n
21   * @htmlonly
22   * <span style="font-weight: bold">History</span>
23   * @endhtmlonly
24   * Version|Author|Date|Describe
25   * ------|----|------|--------
26   * V1.0|HaasAI Group|2021-01-10|Create File
27   * <h2><center>&copy;COPYRIGHT 2021 WELLCASA All Rights Reserved.</center></h2>
28   */
29 
30 #ifndef WRAPPER_IHAAS_DATA_INPUT_H
31 #define WRAPPER_IHAAS_DATA_INPUT_H
32 
33 #include "base/include/base/HaasDataInputDef.h"
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38     void* DataInputCreateInstance(DataInputType_t type);
39     void DataInputDestoryInstance(void* instance);
40 	int DataInputOpen(void* instance, char*filename);
41 	int DataInputOpen2(void* instance, int cameraNum);
42 	int DataInputClose(void* instance);
43 	bool DataInputCheckDataReady(void* instance);
44 	int DataInputRequestData(void* instance, ImageBuffer_t** image, int32_t timeout);
45 	int DataInputReleaseData(void* instance, ImageBuffer_t* image);
46 
47 #ifdef __cplusplus
48 };
49 #endif
50 
51 #endif
52