opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

Missing IMWRITE_JPEG_SAMPLING_FACTOR constants

Open zaquest opened this issue 1 year ago • 1 comments

The list of missing constants:

  • IMWRITE_JPEG_SAMPLING_FACTOR
  • IMWRITE_JPEG_SAMPLING_FACTOR_411
  • IMWRITE_JPEG_SAMPLING_FACTOR_420
  • IMWRITE_JPEG_SAMPLING_FACTOR_422
  • IMWRITE_JPEG_SAMPLING_FACTOR_440
  • IMWRITE_JPEG_SAMPLING_FACTOR_444

This makes it impossible to change sampling factor from the default 4:2:0 to turn off chroma down-sampling for example.

zaquest avatar Oct 10 '23 17:10 zaquest

For now, you can define them in your code and use them directly. Constant values are just numbers.

Alternatively, open a PR if you want to share those constants with the community.

UrielCh avatar Oct 12 '23 07:10 UrielCh