|
AndroMeta
2.0.0
|
Encodes a series of frames to an MPEG file. More...
#include <MVideoEncoder.h>
Public Member Functions | |
| MVideoEncoder (int width, int height, const mstr &outPath, double quality, int timeBase) | |
| ~MVideoEncoder () | |
| void | addFrame (unsigned char *data, bool flip=false) |
| void | finalize () |
| mnode | process (mnode n, uint32_t flags=0) |
Encodes a series of frames to an MPEG file.
| Meta::MVideoEncoder::MVideoEncoder | ( | int | width, |
| int | height, | ||
| const mstr & | outPath, | ||
| double | quality, | ||
| int | timeBase | ||
| ) |
Constructor.
| width | The width in pixels of the movie file. Must be a multiple of 4. |
| height | The height in pixels of the movie file. Must be a multiple of 4. |
| quality | Image/video quality 0..100 |
Destructor.
| void Meta::MVideoEncoder::addFrame | ( | unsigned char * | data, |
| bool | flip = false |
||
| ) | [virtual] |
Add a frame to be encoded.
| data | The raw pixel data with 8 bits per pixel in RGB. |
| flip | true to flip the image about the y-axis. |
Implements Meta::MVideoEncoderBase.
| void Meta::MVideoEncoder::finalize | ( | ) | [virtual] |
Finalize the movie. Implicit in the destructor.
Implements Meta::MVideoEncoderBase.
| mnode Meta::MVideoEncoder::process | ( | mnode | n, |
| uint32_t | flags = 0 |
||
| ) | [virtual] |
Process method.
Reimplemented from Meta::MObject.
1.7.6.1