diff --git a/appveyor.yml b/appveyor.yml index 8080f429..5e0f5f9f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -81,7 +81,7 @@ test_script: - python --version - node --version # - choco install python --version=%PYTHON_VERSION% -y - - npm install -g pnpm@9.3.0 + - npm install -g pnpm@9.10.0 # - pnpm install -g node-gyp - cd c:\projects\opencv4nodejs - pnpm install --frozen-lockfile diff --git a/cc/io/io.cc b/cc/io/io.cc index 930f9ef9..01cafdd7 100644 --- a/cc/io/io.cc +++ b/cc/io/io.cc @@ -43,19 +43,19 @@ NAN_MODULE_INIT(Io::Init) { FF_SET_JS_PROP(target, IMWRITE_JPEG_LUMA_QUALITY, Nan::New(cv::IMWRITE_JPEG_LUMA_QUALITY)); FF_SET_JS_PROP(target, IMWRITE_JPEG_CHROMA_QUALITY, Nan::New(cv::IMWRITE_JPEG_CHROMA_QUALITY)); - FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR, Nan::New(cv::IMWRITE_JPEG_SAMPLING_FACTOR)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_EXR_TYPE, Nan::New(cv::IMWRITE_EXR_TYPE)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_HDR_COMPRESSION, Nan::New(cv::IMWRITE_HDR_COMPRESSION)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_TIFF_RESUNIT, Nan::New(cv::IMWRITE_TIFF_RESUNIT)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_TIFF_XDPI, Nan::New(cv::IMWRITE_TIFF_XDPI)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_TIFF_YDPI, Nan::New(cv::IMWRITE_TIFF_YDPI)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_TIFF_COMPRESSION, Nan::New(cv::IMWRITE_TIFF_COMPRESSION)); // added 2024-13-09 - - FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_411, Nan::New(cv::IMWRITE_JPEG_SAMPLING_FACTOR_411)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_420, Nan::New(cv::IMWRITE_JPEG_SAMPLING_FACTOR_420)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_422, Nan::New(cv::IMWRITE_JPEG_SAMPLING_FACTOR_422)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_440, Nan::New(cv::IMWRITE_JPEG_SAMPLING_FACTOR_440)); // added 2024-13-09 - FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_444, Nan::New(cv::IMWRITE_JPEG_SAMPLING_FACTOR_444)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR, Nan::New(7)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_EXR_TYPE, Nan::New((3 << 4) + 0)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_HDR_COMPRESSION, Nan::New((5 << 4) + 0)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_TIFF_RESUNIT, Nan::New(256)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_TIFF_XDPI, Nan::New(257)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_TIFF_YDPI, Nan::New(258)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_TIFF_COMPRESSION, Nan::New(259)); // added 2024-13-09 + + FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_411, Nan::New(0x411111)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_420, Nan::New(0x221111)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_422, Nan::New(0x211111)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_440, Nan::New(0x121111)); // added 2024-13-09 + FF_SET_JS_PROP(target, IMWRITE_JPEG_SAMPLING_FACTOR_444, Nan::New(0x111111)); // added 2024-13-09 FF_SET_JS_PROP(target, IMWRITE_PNG_COMPRESSION, Nan::New(cv::IMWRITE_PNG_COMPRESSION)); FF_SET_JS_PROP(target, IMWRITE_PNG_STRATEGY, Nan::New(cv::IMWRITE_PNG_STRATEGY));