filmstro_ffmpeg
 All Classes Files Functions Friends Macros
Public Member Functions | List of all members
FFmpegVideoComponent Class Reference

Component to display a video read by FFmpegVideoReader More...

#include <filmstro_ffmpeg_FFmpegVideoComponent.h>

Inheritance diagram for FFmpegVideoComponent:
FFmpegVideoListener

Public Member Functions

 FFmpegVideoComponent ()
 
virtual ~FFmpegVideoComponent ()
 
void resized () override
 Callback when the component is resized. More...
 
void paint (juce::Graphics &g) override
 
void timerCallback () override
 triggers repaint on message thread More...
 
void displayNewFrame (const AVFrame *) override
 callback from FFmpegVideoReader to display a new frame More...
 
void videoSizeChanged (const int width, const int height, const AVPixelFormat) override
 This is called whenever the size changed, so a framebuffer can be resized. More...
 
void setVideoReader (FFmpegVideoReader *source)
 Set a video source for the component. More...
 
FFmpegVideoReadergetVideoReader () const
 Get the video source for the component. More...
 
- Public Member Functions inherited from FFmpegVideoListener
 FFmpegVideoListener ()
 
virtual ~FFmpegVideoListener ()
 
virtual void presentationTimestampChanged (const double)
 This will notify about advancing the presentation timestamp. More...
 
virtual void readRawFrame (const AVFrame *)
 This is called when a frame is read from the video stream. More...
 
virtual void videoFileChanged (const juce::File &newSource)
 This is called when the video source file has changed. More...
 

Detailed Description

Component to display a video read by FFmpegVideoReader

Constructor & Destructor Documentation

FFmpegVideoComponent::FFmpegVideoComponent ( )
FFmpegVideoComponent::~FFmpegVideoComponent ( )
virtual

Member Function Documentation

void FFmpegVideoComponent::displayNewFrame ( const AVFrame *  frame)
overridevirtual

callback from FFmpegVideoReader to display a new frame

Reimplemented from FFmpegVideoListener.

FFmpegVideoReader * FFmpegVideoComponent::getVideoReader ( ) const

Get the video source for the component.

void FFmpegVideoComponent::paint ( juce::Graphics &  g)
override
void FFmpegVideoComponent::resized ( )
override

Callback when the component is resized.

void FFmpegVideoComponent::setVideoReader ( FFmpegVideoReader source)

Set a video source for the component.

void FFmpegVideoComponent::timerCallback ( )
override

triggers repaint on message thread

void FFmpegVideoComponent::videoSizeChanged ( const int  width,
const int  height,
const AVPixelFormat  format 
)
overridevirtual

This is called whenever the size changed, so a framebuffer can be resized.

Reimplemented from FFmpegVideoListener.


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