Low-level encoder for multi-frame raw video formats. More...
#include <Media/MrawvEncoder.H>
Public Member Functions | |
MrawvEncoder (const GenericFrameSpec &spec, const std::string &fname, const bool scale255) | |
Constructor. | |
virtual int | close () |
Close any underlying streams; return 0 if OK, non-zero if error. | |
virtual void | writeFrame (const GenericFrame &f) |
Write a frame to the low-level stream. |
Low-level encoder for multi-frame raw video formats.
Definition at line 48 of file MrawvEncoder.H.
MrawvEncoder::MrawvEncoder | ( | const GenericFrameSpec & | spec, | |
const std::string & | fname, | |||
const bool | scale255 | |||
) |
Constructor.
Definition at line 84 of file MrawvEncoder.C.
References GenericFrameSpec::getActualVideoFormat().
int MrawvEncoder::close | ( | ) | [virtual] |
Close any underlying streams; return 0 if OK, non-zero if error.
Implements LowLevelEncoder.
Definition at line 128 of file MrawvEncoder.C.
void MrawvEncoder::writeFrame | ( | const GenericFrame & | f | ) | [virtual] |
Write a frame to the low-level stream.
Implements LowLevelEncoder.
Definition at line 145 of file MrawvEncoder.C.
References GenericFrame::asVideo(), FLOAT_NORM_0_255, GenericFrame::floatFlags(), VideoFrame::getBuffer(), VideoFrame::getBufSize(), and GenericFrame::setFloatFlags().