Video display and composing engine for JUCE
Loading...
Searching...
No Matches
SoftwareVideoMixer Class Reference

This class mixes the individual clips in ComposedClip. More...

#include <foleys_SoftwareVideoMixer.h>

+ Inheritance diagram for SoftwareVideoMixer:

Public Member Functions

 SoftwareVideoMixer ()=default
 
void compose (juce::Image &target, VideoStreamSettings settings, int64_t count, double timeInSeconds, const std::vector< std::shared_ptr< ClipDescriptor > > &clips) override
 The ComposedClip will call this to let you compose the various clips.
 
- Public Member Functions inherited from VideoMixer
 VideoMixer ()=default
 
virtual ~VideoMixer ()=default
 

Detailed Description

This class mixes the individual clips in ComposedClip.

It uses the software backend of JUCE.

Constructor & Destructor Documentation

◆ SoftwareVideoMixer()

SoftwareVideoMixer ( )
default

Member Function Documentation

◆ compose()

void compose ( juce::Image &  target,
VideoStreamSettings  settings,
int64_t  count,
double  timeInSeconds,
const std::vector< std::shared_ptr< ClipDescriptor > > &  clips 
)
overridevirtual

The ComposedClip will call this to let you compose the various clips.

Parameters
targetis the image to render into
settingsare the stream settings of the produced stream
countis the frame counter in settings.timebase
timeInSecondsis the current time in seconds, since the originating stream has not necessarily the same timebase
clipsis a vector of ClipDescriptors. Each ClipDescriptor has it's own list of processors.

Implements VideoMixer.

References foleys::IDs::alpha, VideoStreamSettings::frameSize, Size::height, foleys::IDs::rotation, foleys::IDs::translateX, foleys::IDs::translateY, Size::width, and foleys::IDs::zoom.


The documentation for this class was generated from the following files: