1 /** 2 * @file HaasDataInputDef.h 3 * @author HaasAI Group 4 * @version V1.0.0 5 * @date 2021-01-10 6 * @license GNU General Public License (GPL) 7 * @brief 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>©COPYRIGHT 2021 WELLCASA All Rights Reserved.</center></h2> 28 */ 29 #ifndef HAAS_DATA_INPUT_DEF_H 30 #define HAAS_DATA_INPUT_DEF_H 31 32 #include "base/include/base/HaasCommonImage.h" 33 34 /**@enum CameraNumber_t 35 * @brief Camera Number \n 36 */ 37 typedef enum { 38 DATA_INPUT_CAMERA_NUMBER_NONE = -1, 39 DATA_INPUT_CAMERA_NUMBER_FRONT = 0, 40 DATA_INPUT_CAMERA_NUMBER_BACK = 1, 41 DATA_INPUT_CAMERA_NUMBER_MAX = 30, 42 } CameraNumber_t; 43 44 /**@enum DataInputType_t 45 * @brief Input Data Source Type \n 46 */ 47 typedef enum { 48 DATA_INPUT_SOURCE_NONE = -1, 49 DATA_INPUT_SOURCE_IMAGE_BMP = 0, 50 DATA_INPUT_SOURCE_IMAGE_GIF = 1, 51 DATA_INPUT_SOURCE_IMAGE_PNG = 2, 52 DATA_INPUT_SOURCE_IMAGE_JPG = 3, 53 DATA_INPUT_SOURCE_VIDEO_FILE = 4, 54 DATA_INPUT_SOURCE_VIDEO_RTMP = 5, 55 DATA_INPUT_SOURCE_VIDEO_RTSP = 6, 56 DATA_INPUT_SOURCE_CAMERA_USB = 7, 57 DATA_INPUT_SOURCE_CAMERA_LOCAL = 8, 58 DATA_INPUT_SOURCE_CAMERA_IP = 9, 59 DATA_INPUT_SOURCE_MAX = 30, 60 } DataInputType_t; 61 #endif 62