AVBlocks for C++  2.1
Audio and Video Software Development Kit
primo::avblocks::Param::Video::Overlay Namespace Reference

Parameters specific to the video overlay filter. More...

Variables

static const char BackgroundAlpha [] = "OVERLAY_BACKGROUND_ALPHA"
 Specifies the alpha value for all pixels in the background. More...
 
static const char * BackgroundX = LocationX
 Specifies the X coordinate of the background origin where the overlay must be applied. More...
 
static const char * BackgroundY = LocationX
 Specifies the Y coordinate of the background origin where the overlay must be applied. More...
 
static const char ForegroundAlpha [] = "OVERLAY_FOREGROUND_ALPHA"
 Specifies the alpha value for all pixels in the foreground. More...
 
static const char ForegroundBuffer [] = "OVERLAY_FOREGROUND_BUFFER"
 Specifies the foreground that should be overlaid with the background. More...
 
static const char ForegroundBufferFormat [] = "OVERLAY_FOREGROUND_BUFFER_FORMAT"
 Specifies the format of the foreground buffer. More...
 
static const char LocationX [] = "OVERLAY_LOCATION_X"
 Specifies the X coordinate of the location where the overlay is applied on the frame. More...
 
static const char LocationY [] = "OVERLAY_LOCATION_Y"
 Specifies the Y coordinate of the location where the overlay is applied on the frame. More...
 
static const char Mode [] = "OVERLAY_MODE"
 Specifies an alpha compositing mode - the way a foreground overlay image is combined with the background video. More...
 

Detailed Description

Parameters specific to the video overlay filter.

Variable Documentation

const char BackgroundAlpha[] = "OVERLAY_BACKGROUND_ALPHA"
static

Specifies the alpha value for all pixels in the background.

This is a FloatParameter with range from 0.0 to 1.0. The default value is 1.0.

const char* BackgroundX = LocationX
static

Specifies the X coordinate of the background origin where the overlay must be applied.

This is an IntParameter.

Deprecated:
Please use primo::avblocks::Param::Video::Overlay::LocationX instead.
const char* BackgroundY = LocationX
static

Specifies the Y coordinate of the background origin where the overlay must be applied.

This is an IntParameter.

Deprecated:
Please use primo::avblocks::Param::Video::Overlay::LocationY instead.
const char ForegroundAlpha[] = "OVERLAY_FOREGROUND_ALPHA"
static

Specifies the alpha value for all pixels in the foreground.

This is a FloatParameter with range from 0.0 to 1.0.

The default value is 1.0 which in combination with other overlay parameters results in showing the foreground and hiding the background.

const char ForegroundBuffer[] = "OVERLAY_FOREGROUND_BUFFER"
static

Specifies the foreground that should be overlaid with the background.

This is a MediaBufferParameter.

const char ForegroundBufferFormat[] = "OVERLAY_FOREGROUND_BUFFER_FORMAT"
static

Specifies the format of the foreground buffer.

This is a VideoStreamInfoParameter.

const char LocationX[] = "OVERLAY_LOCATION_X"
static

Specifies the X coordinate of the location where the overlay is applied on the frame.

This is an IntParameter.

X increases from left to right. The top left point in the frame is the origin and has coordinates (0,0).

const char LocationY[] = "OVERLAY_LOCATION_Y"
static

Specifies the Y coordinate of the location where the overlay is applied on the frame.

This is an IntParameter.

Y increases from top to bottom. The top left point in the frame is the origin and has coordinates (0,0).

const char Mode[] = "OVERLAY_MODE"
static

Specifies an alpha compositing mode - the way a foreground overlay image is combined with the background video.

This is an IntParameter. The acceptable values are defined in primo::codecs::AlphaCompositingMode::Enum.

The default value is AlphaCompositingMode::Over (Foreground over Background), in effect, a normal painting operation.