DUNE: Uniform Navigational Environment
2016.09.0
|
Class representing an RIFF/AVI chunk.
Public Member Functions | |
Chunk (const Properties &properties, const char *id) | |
virtual | ~Chunk (void) |
void | write (std::ostream &os) |
void | setData (const uint8_t *data, uint32_t data_size) |
uint32_t | getSize (void) const |
void | setDataSize (size_t size) |
uint32_t | getDataSize (void) const |
Protected Member Functions | |
void | writeShort (const uint16_t &value, std::ostream &os) |
void | writeWord (const uint32_t &value, std::ostream &os) |
void | writeFourCC (const char *value, std::ostream &os) |
void | writeString (const std::string &value, std::ostream &os) |
virtual void | writeData (std::ostream &os) |
Protected Attributes | |
const Properties & | m_properties |
|
inline |
Constructor.
[in] | properties | stream properties. |
[in] | id | chunk identifier. |
|
inlinevirtual |
Destructor.
|
inline |
Get size of chunk data.
Referenced by DUNE::Media::MJPG::TSTP::add(), DUNE::Media::MJPG::List::add(), DUNE::Media::MJPG::IDX1::add(), DUNE::Media::MJPG::Encoder::encode(), getSize(), write(), DUNE::Media::MJPG::STRF::writeData(), and DUNE::Media::MJPG::Encoder::~Encoder().
|
inline |
Get size of chunk in bytes.
References getDataSize().
Referenced by DUNE::Media::MJPG::List::add(), DUNE::Media::MJPG::Encoder::encode(), and DUNE::Media::MJPG::Encoder::~Encoder().
|
inline |
Set chunk data.
[in] | data | data buffer. |
[in] | data_size | size of data buffer. |
References setDataSize().
Referenced by DUNE::Media::MJPG::Encoder::encode().
|
inline |
Set size of chunk data.
Referenced by DUNE::Media::MJPG::TSTP::add(), DUNE::Media::MJPG::List::add(), DUNE::Media::MJPG::IDX1::add(), DUNE::Media::MJPG::AVIH::AVIH(), DUNE::Media::MJPG::Encoder::encode(), DUNE::Media::MJPG::ISFT::ISFT(), DUNE::Media::MJPG::List::List(), setData(), DUNE::Media::MJPG::STRF::STRF(), DUNE::Media::MJPG::STRH::STRH(), and DUNE::Media::MJPG::Encoder::~Encoder().
|
inline |
Write chunk to output stream.
[in] | os | output stream. |
References getDataSize(), writeData(), writeFourCC(), and writeWord().
Referenced by DUNE::Media::MJPG::Encoder::encode(), DUNE::Media::MJPG::Encoder::Encoder(), DUNE::Media::MJPG::List::writeData(), and DUNE::Media::MJPG::Encoder::~Encoder().
|
inlineprotectedvirtual |
Write chunk data to output stream.
[in] | os | output stream. |
Reimplemented in DUNE::Media::MJPG::IDX1, DUNE::Media::MJPG::List, DUNE::Media::MJPG::TSTP, DUNE::Media::MJPG::ISFT, DUNE::Media::MJPG::AVIH, DUNE::Media::MJPG::STRF, and DUNE::Media::MJPG::STRH.
Referenced by write().
|
inlineprotected |
Write FourCC value to output stream.
[in] | value | value to write. |
[in] | os | output stream. |
Referenced by write(), DUNE::Media::MJPG::STRH::writeData(), and DUNE::Media::MJPG::List::writeData().
|
inlineprotected |
Write 16-bit unsigned value to output stream.
[in] | value | value to write. |
[in] | os | output stream. |
Referenced by DUNE::Media::MJPG::STRF::writeData(), and DUNE::Media::MJPG::STRH::writeData().
|
inlineprotected |
Write string to output stream.
[in] | value | value to write. |
[in] | os | output stream. |
Referenced by DUNE::Media::MJPG::ISFT::writeData().
|
inlineprotected |
Write 32-bit unsigned value to output stream.
[in] | value | value to write. |
[in] | os | output stream. |
Referenced by write(), DUNE::Media::MJPG::STRH::writeData(), DUNE::Media::MJPG::STRF::writeData(), and DUNE::Media::MJPG::AVIH::writeData().
|
protected |