init: 64 bits version of the webcam

This commit is contained in:
2026-07-13 16:31:52 +02:00
parent c0f3eeb00d
commit 07e526544d
381 changed files with 43996 additions and 9097 deletions

View File

@ -224,8 +224,10 @@ bool Webcam::Open(int width_, int height_) {
CoUninitialize();
}
if (id_devices.size() == 0)
if (id_devices.size() == 0) {
__LOG_CAM__ << "No camera found (devices empty)\n";
return false;
}
InputVideo = new VideoCapture();
@ -241,7 +243,10 @@ bool Webcam::Open(int width_, int height_) {
if(device_id == -1)
{
__LOG_CAM__ << "No valid camera found.\n";
return false;
}
__LOG_CAM__ << "OPEN CAM ID "<<device_id <<"\n";
@ -470,7 +475,7 @@ uchar *Webcam::SetFrame(float clock, GS::String record_name , int record_index)
if (!ReplayInputVideo->read(*ReplayImframe))
{
__LOG_CAM__ << "Failed to read frame at index " << index << "\n";
__LOG_CAM__ << "Failed to read frame at index " << (int)index << "\n";
return NULL;
}

View File

@ -34,7 +34,7 @@ SQInteger WebcamSetFrame(HSQUIRRELVM vm)
__SQ_GETSTRING(path)
__SQ_GETEND
__SQ_RETURNINT((int)(w->SetFrame(c,path)))
__SQ_RETURNINT((SQInteger)(w->SetFrame(c,path)))
}
//----------------------------------------------