EMIPLIB
|
Convert video frames to a desired width, height and format using libavcodec. More...
#include <mipavcodecframeconverter.h>
Public Member Functions | |
bool | init (int targetWidth, int targetHeight, uint32_t targetSubtype) |
Initializes the component and instructs it to convert messages to a specific width, height and raw video frame subtype. | |
bool | destroy () |
Cleans up the component. | |
Static Public Member Functions | |
static void | initAVCodec () |
Initializes the libavcodec library. |
This component will convert incoming video frames to a specific width, height and format. To do this, the libavcodec library is used.
bool MIPAVCodecFrameConverter::destroy | ( | ) |
bool MIPAVCodecFrameConverter::init | ( | int | targetWidth, |
int | targetHeight, | ||
uint32_t | targetSubtype | ||
) |
Initializes the component and instructs it to convert messages to a specific width, height and raw video frame subtype. Set targetWidth
and targetHeight
to -1 to conserve the original width and height of the frame.
static void MIPAVCodecFrameConverter::initAVCodec | ( | ) | [static] |
This function initializes the libavcodec library. The library should only be initialized once in an application.