ark::image::AbstractVideoDecompressor

Defined in header “ark/image/abstract_video_decompressor.hh”.


This class represents a basic video decompressor, which can take input images compressed with (JPEG, H264, etc) and then output decompressed images.

There are several video compressor implementations, depending on what codecs you want to use and your system availability.

Methods

  • ~AbstractVideoDecompressor()
    Destructor, for virtual classes.

  • bool write(const Image & image)
    Pushes a camera image into the decompressor. This is the image that you want to decompress. Returns true if the compressor accepted this frame, or false otherwise.

  • bool read(Image & image)
    Reads a camera image from the decompressor. This will return false if there are no camera images left to read. Note that depending on the decompressor, there is not a 1:1 relationship between frames written and frames read.