Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIVideoEncoder Class Reference

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

#include <GUIVideoEncoder.h>

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 68 of file GUIVideoEncoder.h.

Constructor & Destructor Documentation

◆ GUIVideoEncoder()

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

◆ ~GUIVideoEncoder()

GUIVideoEncoder::~GUIVideoEncoder ( )
inline

Definition at line 169 of file GUIVideoEncoder.h.

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

Member Function Documentation

◆ writeFrame()

void GUIVideoEncoder::writeFrame ( uint8_t *  buffer)
inline

Definition at line 201 of file GUIVideoEncoder.h.

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

Field Documentation

◆ myCodecCtx

AVCodecContext* GUIVideoEncoder::myCodecCtx
private

Definition at line 236 of file GUIVideoEncoder.h.

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

◆ myFormatContext

AVFormatContext* GUIVideoEncoder::myFormatContext
private

Definition at line 234 of file GUIVideoEncoder.h.

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

◆ myFrame

AVFrame* GUIVideoEncoder::myFrame
private

Definition at line 237 of file GUIVideoEncoder.h.

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

◆ myFrameIndex

int GUIVideoEncoder::myFrameIndex
private

Definition at line 239 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), and writeFrame().

◆ myPkt

AVPacket* GUIVideoEncoder::myPkt
private

Definition at line 238 of file GUIVideoEncoder.h.

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

◆ mySwsContext

SwsContext* GUIVideoEncoder::mySwsContext
private

Definition at line 235 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), and writeFrame().


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