DUNE: Uniform Navigational Environment  2016.05.0
DUNE::Media::MJPG::Encoder Class Reference

Detailed Description

Encoder for an AVI contained MJPEG stream.

Public Member Functions

 Encoder (const char *fname, uint32_t width, uint32_t height, unsigned fps)
 
 ~Encoder (void)
 
void encode (const uint8_t *data, size_t data_size, double timestamp)
 

Constructor & Destructor Documentation

DUNE::Media::MJPG::Encoder::Encoder ( const char *  fname,
uint32_t  width,
uint32_t  height,
unsigned  fps 
)
inline

Constructor.

Parameters
[in]fnamefile name.
[in]widthvideo width.
[in]heightvideo height.
[in]fpsvideo frames per second.

References DUNE::Media::MJPG::List::add(), DUNE::Media::MJPG::Properties::fps, DUNE::Media::MJPG::Properties::height, DUNE::Media::MJPG::Properties::width, and DUNE::Media::MJPG::Chunk::write().

Member Function Documentation

void DUNE::Media::MJPG::Encoder::encode ( const uint8_t *  data,
size_t  data_size,
double  timestamp 
)
inline
Collaboration diagram for DUNE::Media::MJPG::Encoder:
Collaboration graph