GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • FAST | Documentation
  • Get started
  • Install FAST
  • C++ Introduction Tutorial
  • Python Introduction Tutorial
  • Text Pipelines
  • Learn FAST
  • C++ Tutorials
  • C++ Examples
  • Python Tutorials
  • Python Examples
  • API Reference
  • API Index
  • Building FAST

This view

  • Original page
  • New address

GeezerVison is showing fast-imaging.github.io — fast::MovieStreamer class | FAST | Documentation

fast::MovieStreamer class
#include <FAST/Streamers/MovieStreamer.hpp>

Stream movie files.

Contents

  • Reference
    • Base classes
    • Constructors, destructors, conversion operators
    • Public functions
    • Private functions

This streamer uses Qt 5 to streams every frame in a movie as an Image.

Output ports

  • 0: Image - Movie frame

Base classes

class Streamer
Abstract base class for all Streamers.

Constructors, destructors, conversion operators

~MovieStreamer()

Public functions

auto create(std::string filename, bool grayscale, bool loop) -> std::shared_ptr<MovieStreamer>
Create instance.
void setFilename(std::string filename)
auto getFilename() const -> std::string
auto hasReachedEnd() -> bool
void addNewImageFrame(const uchar* data, int width, int height)
void setGrayscale(bool grayscale)
auto getGrayscale() const -> bool
void setFinished(bool finished)
void setLoop(bool loop)
auto getLoop() const -> bool
auto getFramesAdded() const -> int
void loadAttributes() override
void addLastFrame()

Private functions

void execute() virtual
void generateStream() override

Function documentation

std::shared_ptr<MovieStreamer> fast::MovieStreamer::create(std::string filename, bool grayscale, bool loop)

Create instance.

Parameters
filename Movie file to stream from
grayscale Whether to convert to grayscale or not
loop Whether to loop the video or not
Returns instance

void fast::MovieStreamer::generateStream() override private

The function producing the data stream

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.