Skip to content

ImwriteJPEGSamplingFactorParams

Image codecsclassOpenCV 5.0.0
import { ImwriteJPEGSamplingFactorParams } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSImwriteJPEGSamplingFactorParams
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Native enum entries for imwrite jpegsampling factor params. Pass an entry to enum-typed arguments or its .value to numeric arguments.

Constructors and members

static IMWRITE_JPEG_SAMPLING_FACTOR_411

ImwriteJPEGSamplingFactorParams.IMWRITE_JPEG_SAMPLING_FACTOR_411: 4x1,1x1,1x1

IMWRITE_JPEG_SAMPLING_FACTOR_411: ImwriteJPEGSamplingFactorParamsValue<4264209>,

static IMWRITE_JPEG_SAMPLING_FACTOR_420

2x2,1x1,1x1(Default)

IMWRITE_JPEG_SAMPLING_FACTOR_420: ImwriteJPEGSamplingFactorParamsValue<2232593>,

static IMWRITE_JPEG_SAMPLING_FACTOR_422

ImwriteJPEGSamplingFactorParams.IMWRITE_JPEG_SAMPLING_FACTOR_422: 2x1,1x1,1x1

IMWRITE_JPEG_SAMPLING_FACTOR_422: ImwriteJPEGSamplingFactorParamsValue<2167057>,

static IMWRITE_JPEG_SAMPLING_FACTOR_440

ImwriteJPEGSamplingFactorParams.IMWRITE_JPEG_SAMPLING_FACTOR_440: 1x2,1x1,1x1

IMWRITE_JPEG_SAMPLING_FACTOR_440: ImwriteJPEGSamplingFactorParamsValue<1184017>,

static IMWRITE_JPEG_SAMPLING_FACTOR_444

1x1,1x1,1x1(No subsampling)

IMWRITE_JPEG_SAMPLING_FACTOR_444: ImwriteJPEGSamplingFactorParamsValue<1118481>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.