DUNE: Uniform Navigational Environment
2017.01.0
|
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) |
|
inline |
Constructor.
[in] | fname | file name. |
[in] | width | video width. |
[in] | height | video height. |
[in] | fps | video 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().
|
inline |
|
inline |
Encode frame in a video chunk.
[in] | data | video data. |
[in] | data_size | size of video data. |
References DUNE::Media::MJPG::TSTP::add(), DUNE::Media::MJPG::IDX1::add(), DUNE::Media::MJPG::Chunk::getDataSize(), DUNE::Media::MJPG::Chunk::getSize(), DUNE::Media::MJPG::Chunk::setData(), DUNE::Media::MJPG::Chunk::setDataSize(), DUNE::Media::MJPG::Properties::total_frames, and DUNE::Media::MJPG::Chunk::write().