Browse Source

comments and #error in unused Darknet/YOLO files

pull/7/head
Stéphane Charette 9 months ago
parent
commit
3191f8a00b
  1. 9
      Projects/img_mill/IM_DnnWorker.cpp
  2. 7
      Projects/img_mill/IM_DnnWorker.h
  3. 23
      Projects/img_slim/IM_DLibWorker.cpp
  4. 7
      Projects/img_slim/IM_DnnWorker.cpp
  5. 5
      Projects/img_slim/IM_DnnWorker.h
  6. 14
      lib/App/common/kernelModuleEmbedVideo.cpp
  7. 69
      lib/App/mojo/mojoKernel.cpp
  8. 19
      lib/alg/generic/md5.cpp
  9. 14
      lib/components/base/basicPosition.cpp
  10. 3068
      lib/data/cortex/base/basicImage.cpp
  11. 4
      lib/data/darknet/darknetWraper.cpp
  12. 26
      lib/data/media/video/videoAVLIBSource.cpp

9
Projects/img_mill/IM_DnnWorker.cpp

@ -1,3 +1,6 @@
#error "This source file seems to be unused. 2026-02-20"
#include "IM_DnnWorker.h"
#include "../../lib/components/base/basicFunctionality.h"
@ -196,7 +199,7 @@ bool IM_DnnWorker::create( void ){
LOG_ERROR("Failure during DarkNet Detector Creation!");
};
#endif
} catch ( exception e ) {
LOG_ERROR( e.what() );
};
@ -272,7 +275,7 @@ IM_RESULT *IM_DnnWorker::m_fImageAnalyzer( Mat &Picture ){
#else
std::shared_ptr<image_t> img = m_pDarknetDetector->mat_to_image_resize( Picture );
std::vector<bbox_t> result_vec;
//result_vec = detector.detect_resized( * img, inpSize.width, inpSize.height, thresh, true);
//result_vec = detector.detect_resized( * img, inpSize.width, inpSize.height, thresh, true);
result_vec = m_pDarknetDetector->detect_resized( *img, inpSize.width, inpSize.height, m_fDetectionProbability, true);
if( result_vec.size() ) {
retVal = (IM_RESULT *)malloc(sizeof(IM_RESULT));
@ -324,7 +327,7 @@ void IM_DnnWorker::m_fThreadProc( void ){
EVT_PTR->m_eType = EVT_READY;
if( IM_RESULT *tData = m_fImageAnalyzer( m_oWorkingMat ) ){
//generate detection event
EVT_PTR->m_pEvtData = tData;
EVT_PTR->m_pEvtData = tData;
} else {
//generate NOT detection event
EVT_PTR->m_pEvtData = NULL;

7
Projects/img_mill/IM_DnnWorker.h

@ -1,3 +1,6 @@
#error "This source file seems to be unused. 2026-02-20"
#ifndef __IM_DNNWORKER_H_INCL__
#define __IM_DNNWORKER_H_INCL__
@ -14,7 +17,7 @@
#ifndef GPU
#define DIRECT_DARKNET
#endif
#ifdef DIRECT_DARKNET
//#include <darknet/darknet.h>
#include "../../lib/data/darknet/darknetWraper.h"
@ -35,7 +38,7 @@
using namespace cv;
/**
* TODO: Add class description
*
*
* @author Gagua
*/
class IM_DnnWorker : public basicThread {

23
Projects/img_slim/IM_DLibWorker.cpp

@ -1,3 +1,6 @@
#error "This source file seems to be unused. 2026-02-20"
#include "IM_DLibWorker.h"
#include <stdio.h>
#include "../../lib/alg/generic/md5.h"
@ -129,7 +132,7 @@ bool IM_DlibWorker::create( void ){
LOG("No CHOWN GROUP! Using default!");
};
sprintf( m_sChownGroup, "%s", config_setting_get_string(tSetting));
/*
tSetting = config_setting_get_member( m_pSettings, "USE_CLASS_MAP" );
@ -209,8 +212,8 @@ bool IM_DlibWorker::create( void ){
if( strstr( config_setting_get_string(tSetting), "VKCOM" )!=NULL ) m_eBackendEngine = cv::dnn::DNN_BACKEND_VKCOM;
if( strstr( config_setting_get_string(tSetting), "CUDA" )!=NULL ) m_eBackendEngine = cv::dnn::DNN_BACKEND_CUDA;
sprintf( tBuff, "Engine: %s", config_setting_get_string(tSetting) );
LOG( tBuff );
*/
LOG( tBuff );
*/
basicSettingsProvider::getInstance()->validate();
};
if( m_bUseShapePredictor ) {
@ -254,7 +257,7 @@ std::vector<matrix<rgb_pixel>> jitter_image( const matrix<rgb_pixel>& img ){
// mirrored left to right.
thread_local dlib::rand rnd;
std::vector<matrix<rgb_pixel>> crops;
std::vector<matrix<rgb_pixel>> crops;
for (int i = 0; i < 100; ++i)
crops.push_back(jitter_image(img,rnd));
@ -266,7 +269,7 @@ CSTR IM_DlibWorker::m_fSaveFace( matrix<rgb_pixel> &Picture, CSTR md5, uint32_t
char tPathDest[1024];
CSTR nMd5;
CSTR nPath;
sprintf( tPathSrc, "%s/%s_%d.jpg", m_pFacesBase, md5, index );
sprintf( tPathSrc, "%s/%s_%d.jpg", m_pFacesBase, md5, index );
LOG("Save Face");
LOG( tPathSrc );
save_jpeg( Picture, tPathSrc, 75 );
@ -289,7 +292,7 @@ IM_RESULT *IM_DlibWorker::m_fImageAnalyzer( cv::Mat &Pic ){
uint32_t idx = 0;
CSTR tVAL = NULL;
for( auto face : m_oFaceDetector( Picture ) ){
//dlib::rectangle face
//dlib::rectangle face
if( m_bUseShapePredictor ) {
auto shape = m_oShapePredictor( Picture, face );
matrix<rgb_pixel> face_chip;
@ -342,7 +345,7 @@ IM_RESULT *IM_DlibWorker::m_fImageAnalyzer( cv::Mat &Pic ){
} else {
LOG("No Faces Found!");
};
//std::vector<matrix<float,0,1>> face_descriptors = m_oNet( faces );
// In particular, one simple thing we can do is face clustering. This next bit of code
@ -368,7 +371,7 @@ IM_RESULT *IM_DlibWorker::m_fImageAnalyzer( cv::Mat &Pic ){
// Now let's display the face clustering results on the screen. You will see that it
// correctly grouped all the faces.
// correctly grouped all the faces.
/*
std::vector<image_window> win_clusters(num_clusters);
for( size_t cluster_id = 0; cluster_id < num_clusters; ++cluster_id ){
@ -380,7 +383,7 @@ IM_RESULT *IM_DlibWorker::m_fImageAnalyzer( cv::Mat &Pic ){
win_clusters[cluster_id].set_image(tile_images(temp));
};
// Finally, let's print one of the face descriptors to the screen.
// Finally, let's print one of the face descriptors to the screen.
cout << "face descriptor for one face: " << trans(face_descriptors[0]) << endl;
// It should also be noted that face recognition accuracy can be improved if jittering
@ -412,7 +415,7 @@ void IM_DlibWorker::m_fThreadProc( void ){
EVT_PTR->m_eType = EVT_READY;
if( IM_RESULT *tData = m_fImageAnalyzer( m_oWorkingMat ) ){
//generate detection event
EVT_PTR->m_pEvtData = tData;
EVT_PTR->m_pEvtData = tData;
} else {
//generate NOT detection event
EVT_PTR->m_pEvtData = NULL;

7
Projects/img_slim/IM_DnnWorker.cpp

@ -1,3 +1,6 @@
#error "This source file seems to be unused. 2026-02-20"
#include "IM_DnnWorker.h"
#include "../../lib/components/base/basicFunctionality.h"
@ -234,7 +237,7 @@ IM_RESULT *IM_DnnWorker::m_fImageAnalyzer( Mat &Picture ){
#else
std::shared_ptr<image_t> img = m_pDarknetDetector->mat_to_image_resize( Picture );
std::vector<bbox_t> result_vec;
//result_vec = detector.detect_resized( * img, inpSize.width, inpSize.height, thresh, true);
//result_vec = detector.detect_resized( * img, inpSize.width, inpSize.height, thresh, true);
result_vec = m_pDarknetDetector->detect_resized( *img, inpSize.width, inpSize.height, m_fDetectionProbability, true);
if( result_vec.size() ) {
retVal = (IM_RESULT *)malloc(sizeof(IM_RESULT));
@ -285,7 +288,7 @@ void IM_DnnWorker::m_fThreadProc( void ){
EVT_PTR->m_eType = EVT_READY;
if( IM_RESULT *tData = m_fImageAnalyzer( m_oWorkingMat ) ){
//generate detection event
EVT_PTR->m_pEvtData = tData;
EVT_PTR->m_pEvtData = tData;
} else {
//generate NOT detection event
EVT_PTR->m_pEvtData = NULL;

5
Projects/img_slim/IM_DnnWorker.h

@ -1,3 +1,6 @@
#error "This source file seems to be unused. 2026-02-20"
#ifndef __IM_DNNWORKER_H_INCL__
#define __IM_DNNWORKER_H_INCL__
@ -25,7 +28,7 @@
using namespace cv;
/**
* TODO: Add class description
*
*
* @author Gagua
*/
class IM_DnnWorker : public basicThread {

14
lib/App/common/kernelModuleEmbedVideo.cpp

@ -1999,19 +1999,7 @@ bool streamHandler::pushFrame( AVFrame *Frame, void* src){
bool streamHandler::pushFrame( cv::Mat &Frame, void* src ){
/** @todo Valgrind is reporting an important memory leak in this method. The @p malloc() call on line 2568 (and others, such as 2576).
* The details are as follows:
*
* ~~~~
= =00:00:04:04.219 26021== 8,805,208 (4,416 direct, 8,800,792 *indirect) bytes in 184 blocks are definitely lost in loss record 3,972 of 3,972
==00:00:04:04.219 26021== at 0x483877F: malloc (vg_replace_malloc.c:307)
==00:00:04:04.219 26021== by 0x1B0FF9: streamHandler::pushFrame(cv::Mat&, void*) (kernelModuleEmbedVideo.cpp:2568)
==00:00:04:04.219 26021== by 0x2490CB: videoAVLIBSource::m_fThreadProc() (videoAVLIBSource.cpp:874)
==00:00:04:04.219 26021== by 0x131B54: basicThread::m_fThreadEntryPoint(void*) (basicThread.cpp:62)
==00:00:04:04.219 26021== by 0x49B7EA6: start_thread (pthread_create.c:477)
==00:00:04:04.219 26021== by 0x7874ADE: clone (clone.S:95)
* ~~~~
*/
/// @todo Valgrind is reporting an important memory leak in this method.
bool SkeepW, SkeepA, SkeepB;
if( m_pMaster == NULL ) return false;

69
lib/App/mojo/mojoKernel.cpp

@ -25,7 +25,7 @@
#include "../common/kernelEventFilterAPF.h"
#include "../common/kernelEventFilterTrain.h"
#include "../common/kernelEventFilterBubble.h"
#include "../common/kernelModuleEmbedVideo.h"
#include "../common/kernelModuleEmbedVideo.h"
#ifdef USE_MYSQL
@ -49,7 +49,7 @@
mojoKernel *mojoKernel::_instance = NULL;
mojoKernel *mojoKernel::getInstance( config_setting_t *ptr ){
if ( _instance == NULL ) {
if ( _instance == NULL ) {
_instance = new mojoKernel( ptr );
};
return _instance;
@ -230,7 +230,7 @@ bool mojoKernel::create(){
if ( m_bDebugMode ) m_bKeepLocalReport = true; //Forced in case of debug mode
m_bWorkWithRemoteServer = m_sSiteData.use_remote_server;
//Check date/Time if correct!
// Just in case that we have local reports
if ( m_bKeepLocalReport ) {
@ -293,9 +293,9 @@ bool mojoKernel::create(){
#ifdef DEBUG
LOG("Working With Remote Server");
#endif
if ( m_pRPC = new mojoRemoteClient( this ) ) {
if ( m_pRPC = new mojoRemoteClient( this ) ) {
if( m_bWorkWithRemoteServer = m_pRPC->create() ){
} else LOG_ERROR("Cannot Connect to Remote Server!");
} else m_bWorkWithRemoteServer = false;
};
@ -327,7 +327,7 @@ void mojoKernel::startSession(){
m_mSessionProtector.unlock();
};
void mojoKernel::stopSession( bool forced ){
void mojoKernel::stopSession( bool forced ){
m_mSessionProtector.lock();
if( m_bSessionStarted ){
uint64_t TS_64 = getMilliseconds() + 20; // +20 msec after
@ -643,7 +643,7 @@ void mojoKernel::m_fThreadProc( void ){
m_bThreadStatus = TH_ENDED;
setExitCause( EXIT_CODE_KERNEL_CLEAR );
};
#else
#else
timespec ts;
ts.tv_sec = (time_t)uts;
ts.tv_nsec = 0;
@ -697,7 +697,7 @@ void mojoKernel::m_fThreadProc( void ){
};
void mojoKernel::loadFilters(){
if( m_pDBC == NULL ) return;
if( m_pDBC == NULL ) return;
DBC_INT_LIST *tList = m_pDBC->listFilters( m_nServerID );
if( tList != NULL ) {
if( tList->size() > 0 ) {
@ -826,14 +826,14 @@ void mojoKernel::validateFilters(){
sprintf( tBuffer, "Unknown Filter: %d", (*idx)->getType() );
LOG( tBuffer );
};
};
*/
};
*/
};
};
};
};
bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
if( Evt == NULL ) return false;
if( m_bWorkWithRemoteServer && ( m_pRPC!=NULL) ) m_pRPC->addEvent( Evt );
if( !m_bKeepLocalReport ) return true;
@ -855,7 +855,7 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
break;
};
};
break;
break;
/*
case EVT_CLASS_EXTERNAL_CMD:
switch( Evt->m_eType ){
@ -868,9 +868,9 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
#endif
FH_CTRL_DATA * tData = (FH_CTRL_DATA *) Evt->m_pEvtData;
if( tData ) {
if( m_pDBC->addEvent(
if( m_pDBC->addEvent(
0,
Evt->m_UUID,
Evt->m_UUID,
TS_A,
TS_B,
EVT_FH_JAMER_ON,
@ -914,9 +914,9 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
uint32_t TS_A, TS_B;
TS_A = Evt->m_UMSTS / 1000;
TS_B = Evt->m_UMSTS % 1000;
if( m_pDBC->addEvent(
if( m_pDBC->addEvent(
0,
Evt->m_UUID,
Evt->m_UUID,
TS_A,
TS_B,
EVT_FH_LANDED ) ){
@ -957,9 +957,9 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
uint32_t TS_A, TS_B;
TS_A = Evt->m_UMSTS / 1000;
TS_B = Evt->m_UMSTS % 1000;
if( Evt->m_db_id = m_pDBC->addEvent(
if( Evt->m_db_id = m_pDBC->addEvent(
0,
Evt->m_UUID,
Evt->m_UUID,
TS_A,
TS_B,
EVT_FH_FLY_TO,
@ -1120,7 +1120,7 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
//startSession();
preserveSession();
TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData;
TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData;
if( tDATA != NULL ) {
DBC_EVT_RECORD tRecord;
memset( &tRecord, 0, sizeof(DBC_EVT_RECORD));
@ -1164,7 +1164,7 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
case EVT_OP_OFF_MASK:
case EVT_CONNECTED:
case EVT_DISCONNECTED:{
DBC_EVT_RECORD tRecord;
memset( &tRecord, 0, sizeof(DBC_EVT_RECORD));
uint32_t TS_A, TS_B;
@ -1194,9 +1194,9 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
break;
};
};
break;
break;
case EVT_CLASS_KRNL_FILTER_LATF:{
TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData;
TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData;
if ( ( Evt->m_eType > EVT_FLT_LATF_DIFF_DET ) || ( tDATA == NULL ) ) {
//AUX messages (no additional target data)
DBC_EVT_RECORD tRecord;
@ -1211,7 +1211,7 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
strncpy( tRecord.uuid, Evt->m_UUID, 64 );
tRecord.ts_s = TS_A;
tRecord.ts_ms = TS_B;
Evt->m_db_id = m_pDBC->addEvent( &tRecord );
} else {
//If First Suspiciouse -> Start session to collect Fliter Messages
@ -1254,7 +1254,7 @@ bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){
preserveSession();
TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData;
TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData;
DBC_EVT_RECORD tRecord;
memset( &tRecord, 0, sizeof(DBC_EVT_RECORD));
uint32_t TS_A, TS_B;
@ -1314,13 +1314,13 @@ typedef struct S_VIDEO_SEGMENT_INFO{
char scratchPath[PATH_MAX];
uint32_t dataSize;
uint32_t db_id;
}VIDEO_SEGMENT_INFO;
}VIDEO_SEGMENT_INFO;
*/
void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
if ( fileExist( ptr->scratchPath ) ) {
bool bKeepVideoFile = false;
if( ptr->recordMD5[0] ) {
if( ptr->recordMD5[0] ) {
if( m_bKeepLocalReport ) {
//if wm is debug -> add all to database, else send to server
ptr->db_id = m_pDBC->addVideoRecord( ptr->stream_id, ptr->recordMD5, ptr->recordEXT, ptr->streamTSS, ptr->streamTMS, ptr->streamFPS );
@ -1337,7 +1337,7 @@ void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
LOG("OK");
#endif
};
};
};
CSTR tP = m_pDBC->getCurrentReportDir();
if ( tP ) {
char tB[MAX_PATH];
@ -1370,12 +1370,14 @@ void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){
};
bool mojoKernel::validateReports( void ){
/// @todo Stephane needs to follow this function...
if ( m_bKeepLocalReport ) {
DBC_SITE_DATA *tSiteData = m_pDBC->getSiteData(1);
if( tSiteData ) {
// Check if settings has been changed in DB
if ( tSiteData->report_cleanup != m_sSiteData.report_cleanup || tSiteData->preserve_empty != m_sSiteData.preserve_empty ) {
memcpy( &m_sSiteData, tSiteData, sizeof( DBC_SITE_DATA ));
memcpy( &m_sSiteData, tSiteData, sizeof( DBC_SITE_DATA ));
};
free( tSiteData );
} else {
@ -1421,8 +1423,8 @@ void mojoKernel::backupReports( uint32_t days ){
sprintf( tB, "%s/data/reports/%s/%s/%s", getcwd(dB, MAX_PATH), tRDI->YEAR, tRDI->MONTH, tRDI->DAY );
char tPATH[MAX_PATH];
sprintf( tPATH, "%s/data/archive/%s_%s_%s", getcwd(dB, MAX_PATH), tRDI->YEAR, tRDI->MONTH, tRDI->DAY );
if ( fileExist( tB ) ) {
if ( !fileExist( tPATH ) ) {
if ( fileExist( tB ) ) {
if ( !fileExist( tPATH ) ) {
// Try Create Job if sucess then create dir to skip next validation
if( createCronJob( 0, tPATH, cTS ) ){
// Create Backup Dir
@ -1447,7 +1449,7 @@ void mojoKernel::cleanUpReportDir( uint32_t days ){
// Cleanup Current reports no Backup
uint32_t oTS = m_pDBC->getFirstEventTS();
uint32_t cTS = (uint32_t)time(NULL);
cTS -= 86400 * days;
cTS -= 86400 * days;
#ifdef DEBUG_EXTRA
char tB[128];
sprintf( tB, "Oldest %d border %d", oTS, cTS );
@ -1457,6 +1459,7 @@ void mojoKernel::cleanUpReportDir( uint32_t days ){
#ifdef DEBUG_EXTRA
LOG("Deleting Old Reports");
#endif
/// @todo Stephane needs to see when this gets called...
m_pDBC->deleteReportDate( oTS );
};
};

19
lib/alg/generic/md5.cpp

@ -81,24 +81,7 @@ char* PrintMD5(u_char md5Digest[16])
strncat(chBuffer, chEach, sizeof(chEach));
};
#ifdef __linux__
/** @todo Valgrind tells us this @p strdup() called from @ref videoAVLIBSource is never freed.
*
* ~~~~
= =00:00:04:04.006 26021== 33 bytes in 1 blocks are definitely* lost in loss record 2,412 of 3,972
==00:00:04:04.006 26021== at 0x483877F: malloc (vg_replace_malloc.c:307)
==00:00:04:04.006 26021== by 0x7802C3A: strdup (strdup.c:42) [now line 102 since I've inserted this comment]
==00:00:04:04.006 26021== by 0x1D20BD: PrintMD5(unsigned char*) (md5.cpp:84)
==00:00:04:04.006 26021== by 0x1D212A: MD5String(char*) (md5.cpp:100)
==00:00:04:04.006 26021== by 0x2476EA: videoAVLIBSource::_open(char*, bool, float, int, int, int, int, int) (videoAVLIBSource.cpp:388)
==00:00:04:04.006 26021== by 0x1AE949: streamHandler::create(dataBinder*, unsigned int) (kernelModuleEmbedVideo.cpp:1949)
==00:00:04:04.006 26021== by 0x1ADA24: kernelModuleEmbedVideo::registerStream(unsigned int, unsigned char) (kernelModuleEmbedVideo.cpp:1731)
==00:00:04:04.006 26021== by 0x1AC2A9: kernelModuleEmbedVideo::validate() (kernelModuleEmbedVideo.cpp:1347)
==00:00:04:04.006 26021== by 0x1BB1E7: kernelModuleFactory::m_fThreadProc() (kernelModuleFactory.cpp:397)
==00:00:04:04.006 26021== by 0x131B54: basicThread::m_fThreadEntryPoint(void*) (basicThread.cpp:62)
==00:00:04:04.006 26021== by 0x49B7EA6: start_thread (pthread_create.c:477)
==00:00:04:04.006 26021== by 0x7874ADE: clone (clone.S:95)
* ~~~~
*/
/// @todo Valgrind tells us this @p strdup() called from @ref videoAVLIBSource is never freed.
return strdup(chBuffer);
#else
return _strdup(chBuffer);

14
lib/components/base/basicPosition.cpp

@ -217,19 +217,7 @@ void basicPosition::setPositionDeg(float Lat, float Lon, float Alt, float h_lat,
void basicPosition::updateMatrix( void ){
/** @todo Valgrind is showing several memory leaks from this function.
*
* ~~~~
==00:00:04:04.173 26021== 176 bytes in 2 blocks are definitely lost in loss record 3,541 of 3,972
==00:00:04:04.173 26021== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:342)
==00:00:04:04.173 26021== by 0x130F5C: basicPosition::updateMatrix() (basicPosition.cpp:232)
==00:00:04:04.173 26021== by 0x167C58: deviceNodeSensor::reloadDeviceNodeFromDB() (deviceNodeSensor.cpp:298)
==00:00:04:04.173 26021== by 0x169DE2: deviceNodeSensor::m_fThreadProc() (deviceNodeSensor.cpp:1075)
==00:00:04:04.173 26021== by 0x131B54: basicThread::m_fThreadEntryPoint(void*) (basicThread.cpp:62)
==00:00:04:04.173 26021== by 0x49B7EA6: start_thread (pthread_create.c:477)
==00:00:04:04.173 26021== by 0x7874ADE: clone (clone.S:95)
* ~~~~
*/
/// @todo Valgrind is showing several memory leaks from this function.
//Tait-Bryan angles
//X1Y2Z3

3068
lib/data/cortex/base/basicImage.cpp
File diff suppressed because it is too large
View File

4
lib/data/darknet/darknetWraper.cpp

@ -1,9 +1,13 @@
#error "This source file seems to be unused. 2026-02-20"
#include "darknetWraper.h"
#include <experimental/filesystem>
#define DARKNET_INCLUDE_ORIGINAL_API
#include <darknet/darknet.hpp>
//#include <darknet/darknet_image.hpp>
darknetWraper::darknetWraper(){
m_pNET = NULL;
};

26
lib/data/media/video/videoAVLIBSource.cpp

@ -762,33 +762,7 @@ void videoAVLIBSource::m_fThreadProc( void ){
/** @todo Valgrind is reporting several important memory leaks in this method.
*
* The first one has to do with @p av_frame_alloc():
*
* ~~~~
==00:00:04:04.219 26021== 2,074,168 (536 direct, 2,073,632 indirect) bytes in 1 blocks are definitely lost in loss record 3,970 of 3,972
==00:00:04:04.219 26021== at 0x483AEB8: memalign (vg_replace_malloc.c:906)
==00:00:04:04.219 26021== by 0x483AFCE: posix_memalign (vg_replace_malloc.c:1070)
==00:00:04:04.219 26021== by 0x66E2244: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.56.70.100)
==00:00:04:04.219 26021== by 0x66E25FD: av_mallocz (in /usr/lib/x86_64-linux-gnu/libavutil.so.56.70.100)
==00:00:04:04.219 26021== by 0x66BF6BF: av_frame_alloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.56.70.100)
==00:00:04:04.219 26021== by 0x248B0E: videoAVLIBSource::m_fThreadProc() (videoAVLIBSource.cpp:802)
==00:00:04:04.219 26021== by 0x131B54: basicThread::m_fThreadEntryPoint(void*) (basicThread.cpp:62)
==00:00:04:04.219 26021== by 0x49B7EA6: start_thread (pthread_create.c:477)
==00:00:04:04.219 26021== by 0x7874ADE: clone (clone.S:95)
* ~~~~
*
* The next one has to do with @p av_image_alloc():
*
* ~~~~
==00:00:04:04.219 26021== 2,073,632 bytes in 1 blocks are indirectly lost in loss record 3,969 of 3,972
==00:00:04:04.219 26021== at 0x483AEB8: memalign (vg_replace_malloc.c:906)
==00:00:04:04.219 26021== by 0x483AFCE: posix_memalign (vg_replace_malloc.c:1070)
==00:00:04:04.219 26021== by 0x66E2244: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.56.70.100)
==00:00:04:04.219 26021== by 0x66DCEB5: av_image_alloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.56.70.100)
==00:00:04:04.219 26021== by 0x248BCB: videoAVLIBSource::m_fThreadProc() (videoAVLIBSource.cpp:807)
==00:00:04:04.219 26021== by 0x131B54: basicThread::m_fThreadEntryPoint(void*) (basicThread.cpp:62)
==00:00:04:04.219 26021== by 0x49B7EA6: start_thread (pthread_create.c:477)
==00:00:04:04.219 26021== by 0x7874ADE: clone (clone.S:95)
* ~~~~
*/
m_bThreadStatus = TH_WORKING;

Loading…
Cancel
Save