ark::image::V4lVideoCompressor

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


An implementation of the abstract video compressor interface, for V4L devices.

Methods

  • V4lVideoCompressor(const V4lVideoCompressorConfiguration & config)
    Default constructor, for implementation details.

  • ~V4lVideoCompressor()
    Default destructor, for virtual class.

  • 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.