ark::image::AbstractVideoCompressor
Defined in header “ark/image/abstract_video_compressor.hh”.
This class represents a basic video compressor, which can take input images in and produce compressed (JPEG, H264, etc) output images.
There are several video compressor implementations, depending on what codecs you want to use and your system availability.
Methods
-
~AbstractVideoCompressor()
Destructor, for virtual classes. -
bool write(const Image & image)
Pushes a camera image into the compressor. This is the image that you want to compress. Returns true if the compressor accepted this frame, or false otherwise. -
bool read(Image & image)
Reads a camera image from the compressor. This will return false if there are no camera images left to read. Note that depending on the compressor, there is not a 1:1 relationship between frames written and frames read. -
void flush()
Flushes the compressor, getting back any outstanding frames. For example, this can be used to tell the compressor you are done compressing video.