@@ -543,15 +543,15 @@ int CameraClass::standby(bool enable)
543543 }
544544}
545545
546- int CameraClass::setMDThreshold (uint32_t low, uint32_t high)
546+ int CameraClass::motionDetectionThreshold (uint32_t low, uint32_t high)
547547{
548548 if (this ->initialized == false ) {
549549 return -1 ;
550550 }
551551 return HIMAX_SetMDThreshold (low, high);
552552}
553553
554- int CameraClass::setMDWindow (uint32_t x, uint32_t y, uint32_t w, uint32_t h)
554+ int CameraClass::motionDetectionWindow (uint32_t x, uint32_t y, uint32_t w, uint32_t h)
555555{
556556 uint32_t width, height;
557557
@@ -568,7 +568,7 @@ int CameraClass::setMDWindow(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
568568 return HIMAX_SetLROI (x, y, x+w, y+h);
569569}
570570
571- int CameraClass::enableMD (bool enable, md_callback_t callback)
571+ int CameraClass::motionDetection (bool enable, md_callback_t callback)
572572{
573573 if (this ->initialized == false ) {
574574 return -1 ;
@@ -587,7 +587,7 @@ int CameraClass::enableMD(bool enable, md_callback_t callback)
587587 return HIMAX_EnableMD (enable);
588588}
589589
590- int CameraClass::pollMD ()
590+ int CameraClass::motionDetected ()
591591{
592592 int ret = 0 ;
593593
@@ -602,15 +602,6 @@ int CameraClass::pollMD()
602602 return ret;
603603}
604604
605- int CameraClass::clearMDFlag ()
606- {
607- if (this ->initialized == false ) {
608- return -1 ;
609- }
610-
611- return HIMAX_ClearMD ();
612- }
613-
614605int CameraClass::testPattern (bool walking)
615606{
616607 if (this ->initialized == false ) {
0 commit comments