la_mojo: fix the build after the YOLO filter addition #16

Merged
ClaudeAI merged 1 commits from fix/la-mojo-yolo-build into master 49 minutes ago
  1. 1
      lib/App/common/dataBinder.h
  2. 17
      lib/App/common/kernelEventFilterYOLO.cpp

1
lib/App/common/dataBinder.h

@ -802,6 +802,7 @@ class dataBinder
return 0; return 0;
} }
virtual YOLO_FILTER_DATA * getYOLOFilterData( uint32_t flt_id ){ virtual YOLO_FILTER_DATA * getYOLOFilterData( uint32_t flt_id ){
if ( flt_id ) return NULL;
return NULL; return NULL;
} }
virtual bool fillShadow2D(uint32_t ID, SHADOW & SH) virtual bool fillShadow2D(uint32_t ID, SHADOW & SH)

17
lib/App/common/kernelEventFilterYOLO.cpp

@ -18,6 +18,8 @@ basicEventHandler(),
basicThread() basicThread()
{ {
m_pLog = basicLogCollection::getInstance(); m_pLog = basicLogCollection::getInstance();
// validate() compares it with the database copy: must start defined
memset(&m_sYOLOFilterData, 0, sizeof(YOLO_FILTER_DATA));
} }
kernelEventFilterYOLO::~kernelEventFilterYOLO() kernelEventFilterYOLO::~kernelEventFilterYOLO()
@ -41,6 +43,8 @@ bool kernelEventFilterYOLO::validate()
return false; return false;
} }
bool kernelEventFilterYOLO::validateTarget(uint32_t DevID, TARGET_DATA * ptr){ bool kernelEventFilterYOLO::validateTarget(uint32_t DevID, TARGET_DATA * ptr){
(void) DevID; // ToDo: YOLO filtering
(void) ptr;
return false; return false;
} }
bool kernelEventFilterYOLO::initFilter(){ bool kernelEventFilterYOLO::initFilter(){
@ -50,5 +54,18 @@ bool kernelEventFilterYOLO::stopFilter(){
return false; return false;
} }
bool kernelEventFilterYOLO::dispatchEvent(EVENT_CONTAINER * Evt){ bool kernelEventFilterYOLO::dispatchEvent(EVENT_CONTAINER * Evt){
(void) Evt; // ToDo: YOLO event handling
return false; return false;
} }
// Worker thread (declared in the header but not defined: "undefined reference to vtable for
// kernelEventFilterYOLO" at link time). Placeholder loop until the YOLO processing is added.
void kernelEventFilterYOLO::m_fThreadProc(void)
{
m_bThreadStatus = TH_WORKING;
pthread_setname_np(pthread_self(), "filterYOLO");
while (m_bThreadStatus < TH_ENDED)
{
SLEEP(DEFAULT_THREAD_SLEEP_TIME);
};
}
Loading…
Cancel
Save