#include "asj_pe_standingjump_warpper.h" int main() { StandingJump_ST standingjump_t; standingjump_t.padLength = 3600 - 420; standingjump_t.padWidth = 900; standingjump_t.padPoint[0].x = 194; standingjump_t.padPoint[0].y = 349; standingjump_t.padPoint[1].x = 805; standingjump_t.padPoint[1].y = 344; standingjump_t.padPoint[2].x = 897; standingjump_t.padPoint[2].y = 417; standingjump_t.padPoint[3].x = 132; standingjump_t.padPoint[3].y = 430; void* standingjump = standingjump_create(); int init_ret = standingjump_examInit(standingjump, standingjump_t); printf("[%s Line:%d] ------init_ret:%d\n", __FUNCTION__, __LINE__, init_ret); { StandingJumpResult_ST *result; result = (StandingJumpResult_ST*)malloc(sizeof(StandingJumpResult_ST)); sampleRunJoint_RESULT_S *mResult; mResult = (sampleRunJoint_RESULT_S*)malloc(sizeof(sampleRunJoint_RESULT_S)); mResult->nObjectSize = 0; for(int i = 0;i < 10;i++) { int processExam_ret = standingjump_processExam(standingjump, mResult, result); printf("[%s Line:%d] ------processExam_ret:%d\n", __FUNCTION__, __LINE__, processExam_ret); printf("[%s Line:%d] ------score:%d illegal_flag:%d\n", __FUNCTION__, __LINE__, result->score, result->standingjump_illegal_flag); } } printf("[%s Line:%d] ------%s\n", __FUNCTION__, __LINE__, StandingJumpExamCode2String(STANDINGJUMP_EXAM_OUTLINE)); printf("[%s Line:%d] ------%s\n", __FUNCTION__, __LINE__, StandingJumpExamCode2String(STANDINGJUMP_EXAM_OUTSIDE)); return 0; }