Skip to content

Commit af204b7

Browse files
test
1 parent 2c4e0b8 commit af204b7

File tree

2 files changed

+52
-52
lines changed

2 files changed

+52
-52
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
os: [macos-12]
13+
os: [ubuntu-20.04, windows-2019, macos-12]
1414
# os: [ubuntu-20.04]
1515

1616
steps:

src/DynamsoftCaptureVisionRouter_wrap.cxx

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -11064,7 +11064,7 @@ extern "C"
1106411064
int alloc4 = 0;
1106511065
dynamsoft::cvr::CCapturedResult *result = 0;
1106611066

11067-
if ((nobjs < 4) || (nobjs > 4))
11067+
if ((nobjs < 3) || (nobjs > 3))
1106811068
SWIG_fail;
1106911069
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_dynamsoft__cvr__CCaptureVisionRouter, 0 | 0);
1107011070
if (!SWIG_IsOK(res1))
@@ -11091,29 +11091,29 @@ extern "C"
1109111091
"'");
1109211092
}
1109311093
// arg2 = reinterpret_cast<unsigned char *>(argp2);
11094-
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11095-
if (!SWIG_IsOK(ecode3))
11096-
{
11097-
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '"
11098-
"CCaptureVisionRouter_Capture"
11099-
"', argument "
11100-
"3"
11101-
" of type '"
11102-
"int"
11103-
"'");
11104-
}
11105-
if (val3 < arg3)
11106-
{
11107-
arg3 = val3;
11108-
}
11094+
// ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11095+
// if (!SWIG_IsOK(ecode3))
11096+
// {
11097+
// SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '"
11098+
// "CCaptureVisionRouter_Capture"
11099+
// "', argument "
11100+
// "3"
11101+
// " of type '"
11102+
// "int"
11103+
// "'");
11104+
// }
11105+
// if (val3 < arg3)
11106+
// {
11107+
// arg3 = val3;
11108+
// }
1110911109
// arg3 = static_cast<int>(val3);
11110-
res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
11110+
res4 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf4, NULL, &alloc4);
1111111111
if (!SWIG_IsOK(res4))
1111211112
{
1111311113
SWIG_exception_fail(SWIG_ArgError(res4), "in method '"
1111411114
"CCaptureVisionRouter_Capture"
1111511115
"', argument "
11116-
"4"
11116+
"3"
1111711117
" of type '"
1111811118
"char const *"
1111911119
"'");
@@ -11144,7 +11144,7 @@ extern "C"
1114411144
int ecode3 = 0;
1114511145
dynamsoft::cvr::CCapturedResult *result = 0;
1114611146

11147-
if ((nobjs < 3) || (nobjs > 3))
11147+
if ((nobjs < 2) || (nobjs > 2))
1114811148
SWIG_fail;
1114911149
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_dynamsoft__cvr__CCaptureVisionRouter, 0 | 0);
1115011150
if (!SWIG_IsOK(res1))
@@ -11171,19 +11171,19 @@ extern "C"
1117111171
"'");
1117211172
}
1117311173
// arg2 = reinterpret_cast<unsigned char *>(argp2);
11174-
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11175-
if (!SWIG_IsOK(ecode3))
11176-
{
11177-
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '"
11178-
"CCaptureVisionRouter_Capture"
11179-
"', argument "
11180-
"3"
11181-
" of type '"
11182-
"int"
11183-
"'");
11184-
}
11185-
if (val3 < arg3)
11186-
arg3 = val3;
11174+
// ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11175+
// if (!SWIG_IsOK(ecode3))
11176+
// {
11177+
// SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '"
11178+
// "CCaptureVisionRouter_Capture"
11179+
// "', argument "
11180+
// "3"
11181+
// " of type '"
11182+
// "int"
11183+
// "'");
11184+
// }
11185+
// if (val3 < arg3)
11186+
// arg3 = val3;
1118711187
// arg3 = static_cast<int>(val3);
1118811188
result = (dynamsoft::cvr::CCapturedResult *)(arg1)->Capture((unsigned char const *)arg2, arg3);
1118911189
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dynamsoft__cvr__CCapturedResult, SWIG_POINTER_OWN | 0);
@@ -11342,7 +11342,7 @@ extern "C"
1134211342
}
1134311343
}
1134411344
}
11345-
if (argc == 3)
11345+
if (argc == 2)
1134611346
{
1134711347
int _v = 0;
1134811348
void *vptr = 0;
@@ -11356,14 +11356,14 @@ extern "C"
1135611356
_v = PyBytes_Check(argv[1]);
1135711357
if (_v)
1135811358
{
11359-
{
11360-
int res = SWIG_AsVal_int(argv[2], NULL);
11361-
_v = SWIG_CheckState(res);
11362-
}
11363-
if (_v)
11364-
{
11359+
// {
11360+
// int res = SWIG_AsVal_int(argv[2], NULL);
11361+
// _v = SWIG_CheckState(res);
11362+
// }
11363+
// if (_v)
11364+
// {
1136511365
return _wrap_CCaptureVisionRouter_Capture__SWIG_3(self, argc, argv);
11366-
}
11366+
// }
1136711367
}
1136811368
}
1136911369
}
@@ -11410,7 +11410,7 @@ extern "C"
1141011410
}
1141111411
}
1141211412
}
11413-
if (argc == 4)
11413+
if (argc == 3)
1141411414
{
1141511415
int _v = 0;
1141611416
void *vptr = 0;
@@ -11424,19 +11424,19 @@ extern "C"
1142411424
_v = PyBytes_Check(argv[1]);
1142511425
if (_v)
1142611426
{
11427-
{
11428-
int res = SWIG_AsVal_int(argv[2], NULL);
11429-
_v = SWIG_CheckState(res);
11430-
}
11431-
if (_v)
11432-
{
11433-
int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
11427+
// {
11428+
// int res = SWIG_AsVal_int(argv[2], NULL);
11429+
// _v = SWIG_CheckState(res);
11430+
// }
11431+
// if (_v)
11432+
// {
11433+
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
1143411434
_v = SWIG_CheckState(res);
1143511435
if (_v)
1143611436
{
1143711437
return _wrap_CCaptureVisionRouter_Capture__SWIG_2(self, argc, argv);
1143811438
}
11439-
}
11439+
// }
1144011440
}
1144111441
}
1144211442
}
@@ -11446,8 +11446,8 @@ extern "C"
1144611446
" Possible C/C++ prototypes are:\n"
1144711447
" dynamsoft::cvr::CCaptureVisionRouter::Capture(char const *,char const *)\n"
1144811448
" dynamsoft::cvr::CCaptureVisionRouter::Capture(char const *)\n"
11449-
" dynamsoft::cvr::CCaptureVisionRouter::Capture(unsigned char const *,int,char const *)\n"
11450-
" dynamsoft::cvr::CCaptureVisionRouter::Capture(unsigned char const *,int)\n"
11449+
" dynamsoft::cvr::CCaptureVisionRouter::Capture(unsigned char const *,char const *)\n"
11450+
" dynamsoft::cvr::CCaptureVisionRouter::Capture(unsigned char const *)\n"
1145111451
" dynamsoft::cvr::CCaptureVisionRouter::Capture(dynamsoft::basic_structures::CImageData const *,char const *)\n"
1145211452
" dynamsoft::cvr::CCaptureVisionRouter::Capture(dynamsoft::basic_structures::CImageData const *)\n");
1145311453
return 0;

0 commit comments

Comments
 (0)