Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::video::VideoScaler Class Reference

#include <video_scaler.h>

Collaboration diagram for jami::video::VideoScaler:
Collaboration graph

Public Member Functions

std::unique_ptr< VideoFrameconvertFormat (const VideoFrame &input, AVPixelFormat pix)
 
void reset ()
 
void scale (const AVFrame *input, AVFrame *output)
 
void scale (const VideoFrame &input, VideoFrame &output)
 
void scale_and_pad (const VideoFrame &input, VideoFrame &output, unsigned xoff, unsigned yoff, unsigned dest_width, unsigned dest_height, bool keep_aspect)
 
void scale_with_aspect (const VideoFrame &input, VideoFrame &output)
 
 VideoScaler ()
 
 ~VideoScaler ()
 

Detailed Description

Definition at line 33 of file video_scaler.h.

Constructor & Destructor Documentation

◆ VideoScaler()

jami::video::VideoScaler::VideoScaler ( )

Definition at line 29 of file video_scaler.cpp.

◆ ~VideoScaler()

jami::video::VideoScaler::~VideoScaler ( )

Definition at line 35 of file video_scaler.cpp.

References jami::emitSignal().

Here is the call graph for this function:

Member Function Documentation

◆ convertFormat()

std::unique_ptr< VideoFrame > jami::video::VideoScaler::convertFormat ( const VideoFrame input,
AVPixelFormat  pix 
)

Definition at line 166 of file video_scaler.cpp.

References jami::emitSignal(), libjami::VideoFrame::height(), libjami::MediaFrame::pointer(), scale(), and libjami::VideoFrame::width().

Referenced by scale_with_aspect().

Here is the call graph for this function:

◆ reset()

void jami::video::VideoScaler::reset ( )

Definition at line 176 of file video_scaler.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ scale() [1/2]

void jami::video::VideoScaler::scale ( const AVFrame input,
AVFrame output 
)

Definition at line 46 of file video_scaler.cpp.

References jami::emitSignal(), and JAMI_ERR.

Referenced by convertFormat(), and scale().

Here is the call graph for this function:

◆ scale() [2/2]

void jami::video::VideoScaler::scale ( const VideoFrame input,
VideoFrame output 
)

Definition at line 41 of file video_scaler.cpp.

References jami::emitSignal(), libjami::MediaFrame::pointer(), and scale().

Here is the call graph for this function:

◆ scale_and_pad()

void jami::video::VideoScaler::scale_and_pad ( const VideoFrame input,
VideoFrame output,
unsigned  xoff,
unsigned  yoff,
unsigned  dest_width,
unsigned  dest_height,
bool  keep_aspect 
)

Definition at line 90 of file video_scaler.cpp.

References jami::emitSignal(), JAMI_ERR, and libjami::MediaFrame::pointer().

Referenced by scale_with_aspect().

Here is the call graph for this function:

◆ scale_with_aspect()

void jami::video::VideoScaler::scale_with_aspect ( const VideoFrame input,
VideoFrame output 
)

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