VideoWriter_fourcc
import { VideoWriter_fourcc } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSc1, c2, c3, c4
FUNCTIONVideoWriter_fourcc
RETURN TYPEnumber
Concatenates 4 chars to a fourcc code
VideoWriter_fourcc(c1: number, c2: number, c3: number, c4: number): number;c1c1 argument (number).
c2c2 argument (number).
c3c3 argument (number).
c4c4 argument (number).
Returns
a fourcc code
This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
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.