SUMO - Simulation of Urban MObility
GUIVideoEncoder Class Reference

#include <GUIVideoEncoder.h>

Collaboration diagram for GUIVideoEncoder:
Collaboration graph

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

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

Detailed Description

Definition at line 53 of file GUIVideoEncoder.h.

Constructor & Destructor Documentation

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

Definition at line 55 of file GUIVideoEncoder.h.

References myFormatContext, myFrame, myFrameIndex, and mySwsContext.

GUIVideoEncoder::~GUIVideoEncoder ( )
inline

Definition at line 145 of file GUIVideoEncoder.h.

References myFormatContext, and myFrame.

Member Function Documentation

void GUIVideoEncoder::writeFrame ( uint8_t *  buffer)
inline

Definition at line 187 of file GUIVideoEncoder.h.

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

Referenced by GUIViewTraffic::saveFrame().

Field Documentation

AVFormatContext* GUIVideoEncoder::myFormatContext
private

Definition at line 216 of file GUIVideoEncoder.h.

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

AVFrame* GUIVideoEncoder::myFrame
private

Definition at line 218 of file GUIVideoEncoder.h.

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

int GUIVideoEncoder::myFrameIndex
private

Definition at line 220 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), and writeFrame().

AVPacket GUIVideoEncoder::myPkt
private

Definition at line 219 of file GUIVideoEncoder.h.

Referenced by writeFrame().

SwsContext* GUIVideoEncoder::mySwsContext
private

Definition at line 217 of file GUIVideoEncoder.h.

Referenced by GUIVideoEncoder(), and writeFrame().


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