#include <filmstro_ffmpeg_FFmpegVideoScaler.h>
|
| FFmpegVideoScaler () |
| Creates a scaler object. More...
|
|
| ~FFmpegVideoScaler () |
|
void | setupScaler (const int in_width, const int in_height, const AVPixelFormat in_format, const int out_width, const int out_height, const AVPixelFormat out_format) |
| Setup a scaler to scale video frames and to convert pixel formats. More...
|
|
void | convertFrameToImage (juce::Image &image, const AVFrame *frame) |
| takes an AVFrame from ffmpeg and converts it to a JUCE Image. More...
|
|
void | convertImageToFrame (AVFrame *frame, const juce::Image &image) |
| Converts a JUCE Image into a ffmpeg AVFrame to be written into a video stream. More...
|
|
FFmpegVideoScaler::FFmpegVideoScaler |
( |
| ) |
|
|
inline |
Creates a scaler object.
It does nothing before you call setupScaler
FFmpegVideoScaler::~FFmpegVideoScaler |
( |
| ) |
|
|
inline |
void FFmpegVideoScaler::convertFrameToImage |
( |
juce::Image & |
image, |
|
|
const AVFrame * |
frame |
|
) |
| |
|
inline |
takes an AVFrame from ffmpeg and converts it to a JUCE Image.
Image is in a format matching to the platform
void FFmpegVideoScaler::convertImageToFrame |
( |
AVFrame * |
frame, |
|
|
const juce::Image & |
image |
|
) |
| |
|
inline |
Converts a JUCE Image into a ffmpeg AVFrame to be written into a video stream.
void FFmpegVideoScaler::setupScaler |
( |
const int |
in_width, |
|
|
const int |
in_height, |
|
|
const AVPixelFormat |
in_format, |
|
|
const int |
out_width, |
|
|
const int |
out_height, |
|
|
const AVPixelFormat |
out_format |
|
) |
| |
|
inline |
Setup a scaler to scale video frames and to convert pixel formats.
The documentation for this class was generated from the following file: