OpalVideoMixer Class Reference
#include <opalmixer.h>
Detailed Description
Video mixer. This takes raw YUV420P frames with a PluginCodec_Video_FrameHeader in the RTP data frames, scales them and places them in particular positions of the output data frame. A number of different patterns for positioning the sub images are available in the Styles enum.
Member Enumeration Documentation
- Enumerator:
| eSideBySideLetterbox |
Two images side by side with black bars top and bottom. It is expected that the input frames and output are all the same aspect ratio, e.g. 4:3. Works well if inputs are QCIF and output is CIF for example.
|
| eSideBySideScaled |
Two images side by side, scaled to fit halves of output frame. It is expected that the output frame be double the width of the input data to maintain aspect ratio. e.g. for CIF inputs, output would be 704x288.
|
| eStackedPillarbox |
Two images, one on top of the other with black bars down the sides. It is expected that the input frames and output are all the same aspect ratio, e.g. 4:3. Works well if inputs are QCIF and output is CIF for example.
|
| eStackedScaled |
Two images, one on top of the other, scaled to fit halves of output frame. It is expected that the output frame be double the height of the input data to maintain aspect ratio. e.g. for CIF inputs, output would be 352x576.
|
| eGrid |
Standard 2x2, 3x3, 4x4 grid pattern. Size of grid is dependent on the number of video streams.
|
Constructor & Destructor Documentation
| OpalVideoMixer::OpalVideoMixer |
( |
Styles |
style, |
|
|
unsigned |
width, |
|
|
unsigned |
height, |
|
|
unsigned |
rate = 15, |
|
|
bool |
pushThread = true | |
|
) |
| | |
- Parameters:
-
| style | Style for mixing video |
| width | Width of output frame |
| height | Height of output frame |
| rate | Frames per second for output |
| pushThread | A push thread is to be created |
| OpalVideoMixer::~OpalVideoMixer |
( |
|
) |
[inline] |
Member Function Documentation
| virtual Stream* OpalVideoMixer::CreateStream |
( |
|
) |
[protected, virtual] |
| unsigned OpalVideoMixer::GetFrameHeight |
( |
|
) |
const [inline] |
Get output video frame height.
References m_height.
| unsigned OpalVideoMixer::GetFrameRate |
( |
|
) |
const [inline] |
| unsigned OpalVideoMixer::GetFrameWidth |
( |
|
) |
const [inline] |
Get output video frame width.
References m_width.
| virtual size_t OpalVideoMixer::GetOutputSize |
( |
|
) |
const [protected, virtual] |
| virtual bool OpalVideoMixer::MixStreams |
( |
RTP_DataFrame & |
frame |
) |
[protected, virtual] |
| bool OpalVideoMixer::SetFrameRate |
( |
unsigned |
rate |
) |
|
Set output video frame rate. May be dynamically changed at any time.
| bool OpalVideoMixer::SetFrameSize |
( |
unsigned |
width, |
|
|
unsigned |
height | |
|
) |
| | |
Set the output video frame width and height. May be dynamically changed at any time.
- Parameters:
-
| width | New width |
| height | new height |
Friends And Related Function Documentation
Field Documentation
The documentation for this class was generated from the following file: