Add toupcam support

This commit is contained in:
2026-02-18 17:15:42 +03:00
parent 7769391186
commit 21ebc6bc61
9 changed files with 384 additions and 12 deletions

View File

@@ -76,7 +76,8 @@ static InputType chk_inp(const char *name){
if(!name) ERRX("Point file or directory name to monitor");
InputType itp = chkinput(name);
if(T_WRONG == itp) return T_WRONG;
green("\n%s is a ", name);
green("\n%s", name);
printf(" is a ");
switch(itp){
case T_DIRECTORY:
printf("directory");
@@ -108,6 +109,9 @@ static InputType chk_inp(const char *name){
case T_CAPT_HIKROBOT:
printf("hikrobot camera capture");
break;
case T_CAPT_TOUPCAM:
printf("toupcam camera capture");
break;
default:
printf("unsupported type\n");
return T_WRONG;