Mar. 14. 2018
Dependencies: GraphicsFramework GR-PEACH_video LCD_shield_config AsciiFont R_BSP USBHost_custom
SdkSTBFr.c
00001 /*---------------------------------------------------------------------------*/ 00002 /* Copyright(C) 2017 OMRON Corporation */ 00003 /* */ 00004 /* Licensed under the Apache License, Version 2.0 (the "License"); */ 00005 /* you may not use this file except in compliance with the License. */ 00006 /* You may obtain a copy of the License at */ 00007 /* */ 00008 /* http://www.apache.org/licenses/LICENSE-2.0 */ 00009 /* */ 00010 /* Unless required by applicable law or agreed to in writing, software */ 00011 /* distributed under the License is distributed on an "AS IS" BASIS, */ 00012 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 00013 /* See the License for the specific language governing permissions and */ 00014 /* limitations under the License. */ 00015 /*---------------------------------------------------------------------------*/ 00016 00017 #include "SdkSTBFr.h" 00018 #include "FrInterface.h" 00019 00020 /*This layer only defines the API function */ 00021 00022 /*Create/Delete handle*/ 00023 STB_FR_HANDLE STB_Fr_CreateHandle( const STB_INT32 nTraCntMax ){ 00024 return (STB_FR_HANDLE)FrCreateHandle( nTraCntMax ); 00025 } 00026 00027 STB_INT32 STB_Fr_DeleteHandle(STB_FR_HANDLE handle){ 00028 return FrDeleteHandle((FRHANDLE)handle); 00029 } 00030 00031 /*set frame information*/ 00032 STB_INT32 STB_Fr_SetDetect(STB_FR_HANDLE handle,const STB_FR_DET *stbFrDet){ 00033 return FrSetDetect((FRHANDLE)handle,stbFrDet); 00034 } 00035 00036 /*Main process execution*/ 00037 STB_INT32 STB_Fr_Execute(STB_FR_HANDLE handle){ 00038 return FrExecute((FRHANDLE)handle); 00039 } 00040 00041 /*get the result*/ 00042 STB_INT32 STB_Fr_GetResult(STB_FR_HANDLE handle, STB_FR_RES* peResult){ 00043 return FrGetResult((FRHANDLE)handle,peResult); 00044 } 00045 00046 STB_INT32 STB_Fr_Clear(STB_FR_HANDLE handle){ 00047 return FrClear((FRHANDLE)handle); 00048 } 00049 00050 /* FaceDirMinMax */ 00051 STB_INT32 STB_Fr_SetFaceDirMinMax ( STB_FR_HANDLE handle , STB_INT32 nMinUDAngle , STB_INT32 nMaxUDAngle ,STB_INT32 nMinLRAngle , STB_INT32 nMaxLRAngle ) 00052 { 00053 return FrSetFaceDirMinMax((FRHANDLE)handle,nMinUDAngle,nMaxUDAngle,nMinLRAngle,nMaxLRAngle ); 00054 } 00055 STB_INT32 STB_Fr_GetFaceDirMinMax ( STB_FR_HANDLE handle , STB_INT32 *pnMinUDAngle , STB_INT32 *pnMaxUDAngle ,STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle ) 00056 { 00057 return FrGetFaceDirMinMax((FRHANDLE)handle,pnMinUDAngle,pnMaxUDAngle,pnMinLRAngle,pnMaxLRAngle ); 00058 } 00059 00060 /* FaceDirThreshold */ 00061 STB_INT32 STB_Fr_SetFaceDirThreshold ( STB_FR_HANDLE handle , STB_INT32 threshold ) 00062 { 00063 return FrSetFaceDirThreshold((FRHANDLE)handle,threshold ); 00064 } 00065 STB_INT32 STB_Fr_GetFaceDirThreshold ( STB_FR_HANDLE handle , STB_INT32* threshold ) 00066 { 00067 return FrGetFaceDirThreshold((FRHANDLE)handle,threshold ); 00068 } 00069 /* FrameCount */ 00070 STB_INT32 STB_Fr_SetFrameCount ( STB_FR_HANDLE handle , STB_INT32 nFrameCount ) 00071 { 00072 return FrSetFrameCount((FRHANDLE)handle,nFrameCount ); 00073 } 00074 STB_INT32 STB_Fr_GetFrameCount ( STB_FR_HANDLE handle , STB_INT32* nFrameCount ) 00075 { 00076 return FrGetFrameCount((FRHANDLE)handle,nFrameCount ); 00077 } 00078 00079 /* FrameShare */ 00080 STB_INT32 STB_Fr_SetMinRatio ( STB_FR_HANDLE handle , STB_INT32 nMinRatio ) 00081 { 00082 return FrSetMinRatio((FRHANDLE)handle,nMinRatio ); 00083 } 00084 STB_INT32 STB_Fr_GetMinRatio ( STB_FR_HANDLE handle , STB_INT32* nMinRatio ) 00085 { 00086 return FrGetMinRatio((FRHANDLE)handle,nMinRatio ); 00087 }
Generated on Tue Jul 12 2022 16:00:44 by 1.7.2