@@ -543,15 +543,15 @@ int CameraClass::standby(bool enable)
543
543
}
544
544
}
545
545
546
- int CameraClass::setMDThreshold (uint32_t low, uint32_t high)
546
+ int CameraClass::motionDetectionThreshold (uint32_t low, uint32_t high)
547
547
{
548
548
if (this ->initialized == false ) {
549
549
return -1 ;
550
550
}
551
551
return HIMAX_SetMDThreshold (low, high);
552
552
}
553
553
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)
555
555
{
556
556
uint32_t width, height;
557
557
@@ -568,7 +568,7 @@ int CameraClass::setMDWindow(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
568
568
return HIMAX_SetLROI (x, y, x+w, y+h);
569
569
}
570
570
571
- int CameraClass::enableMD (bool enable, md_callback_t callback)
571
+ int CameraClass::motionDetection (bool enable, md_callback_t callback)
572
572
{
573
573
if (this ->initialized == false ) {
574
574
return -1 ;
@@ -587,7 +587,7 @@ int CameraClass::enableMD(bool enable, md_callback_t callback)
587
587
return HIMAX_EnableMD (enable);
588
588
}
589
589
590
- int CameraClass::pollMD ()
590
+ int CameraClass::motionDetected ()
591
591
{
592
592
int ret = 0 ;
593
593
@@ -602,15 +602,6 @@ int CameraClass::pollMD()
602
602
return ret;
603
603
}
604
604
605
- int CameraClass::clearMDFlag ()
606
- {
607
- if (this ->initialized == false ) {
608
- return -1 ;
609
- }
610
-
611
- return HIMAX_ClearMD ();
612
- }
613
-
614
605
int CameraClass::testPattern (bool walking)
615
606
{
616
607
if (this ->initialized == false ) {
0 commit comments