Eclipse SUMO - Simulation of Urban MObility
GUIVideoEncoder Class Reference

A simple video encoder from RGBA pics to anything ffmpeg can handle. More...

#include <GUIVideoEncoder.h>

Collaboration diagram for GUIVideoEncoder:

Public Member Functions

 GUIVideoEncoder (const char *const out_file, const int width, const int height, double frameDelay)
 
void writeFrame (uint8_t *buffer)
 
 ~GUIVideoEncoder ()
 

Private Attributes

AVCodecContext * myCodecCtx
 
AVFormatContext * myFormatContext
 
AVFrame * myFrame
 
int myFrameIndex
 
AVPacket * myPkt
 
SwsContext * mySwsContext
 

Detailed Description

A simple video encoder from RGBA pics to anything ffmpeg can handle.

Definition at line 70 of file GUIVideoEncoder.h.

Constructor & Destructor Documentation

◆ GUIVideoEncoder()

GUIVideoEncoder::GUIVideoEncoder ( const char *const  out_file,
const int  width,
const int  height,
double  frameDelay 
)
inline

Definition at line 72 of file GUIVideoEncoder.h.

References myCodecCtx, myFormatContext, myFrame, myFrameIndex, myPkt, and mySwsContext.

◆ ~GUIVideoEncoder()

GUIVideoEncoder::~GUIVideoEncoder ( )
inline

Definition at line 166 of file GUIVideoEncoder.h.

References myCodecCtx, myFormatContext, myFrame, myPkt, and WRITE_WARNING.

Member Function Documentation

◆ writeFrame()

void GUIVideoEncoder::writeFrame ( uint8_t *  buffer)
inline

Definition at line 198 of file GUIVideoEncoder.h.

References myCodecCtx, myFormatContext, myFrame, myFrameIndex, myPkt, and mySwsContext.

Referenced by GUIViewTraffic::saveFrame().

Field Documentation

◆ myCodecCtx

AVCodecContext* GUIVideoEncoder::myCodecCtx
private

Definition at line 233 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), writeFrame(), and ~GUIVideoEncoder().

◆ myFormatContext

AVFormatContext* GUIVideoEncoder::myFormatContext
private

Definition at line 231 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), writeFrame(), and ~GUIVideoEncoder().

◆ myFrame

AVFrame* GUIVideoEncoder::myFrame
private

Definition at line 234 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), writeFrame(), and ~GUIVideoEncoder().

◆ myFrameIndex

int GUIVideoEncoder::myFrameIndex
private

Definition at line 236 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), and writeFrame().

◆ myPkt

AVPacket* GUIVideoEncoder::myPkt
private

Definition at line 235 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), writeFrame(), and ~GUIVideoEncoder().

◆ mySwsContext

SwsContext* GUIVideoEncoder::mySwsContext
private

Definition at line 232 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), and writeFrame().


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