Package com.wowza.wms.transcoder.model
Class TranscoderVideoOverlayFrame
- Object
-
- com.wowza.wms.transcoder.model.TranscoderVideoOverlayFrame
-
public class TranscoderVideoOverlayFrame extends Object
TranscoderVideoOverlayFrame: Video overlay frame.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
enabled
String
imagePath
int
index
long
lastModDate
static int
LOADSTATE_FAILURE
static int
LOADSTATE_INIT
static int
LOADSTATE_SUCCESS
int
opacity
TranscoderNativeVideoFrame
videoFrame
-
Constructor Summary
Constructors Constructor Description TranscoderVideoOverlayFrame()
TranscoderVideoOverlayFrame(int width, int height, byte[] buffer)
TranscoderVideoOverlayFrame(String imagePath)
TranscoderVideoOverlayFrame(String imagePath, int opacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDstAlign()
int
getDstHeight()
int
getDstWidth()
int
getDstX()
int
getDstY()
String
getImagePath()
Get the path to the overlay image.int
getIndex()
Get overlay index (z-order)long
getLastModDate()
int
getOpacity()
TranscoderNativeVideoFrame
getVideoFrame()
Get the video frame.boolean
isCheckForUpdates()
boolean
isEnabled()
Is this overlay enabled.boolean
isGood()
boolean
isImageFileUpdated(IApplicationInstance appInstance)
boolean
isTransparent()
boolean
loadImage(IApplicationInstance appInstance, boolean reload)
If you set a path to an image file (JPG, PNG, BMP...) this will load the image into this object.void
setCheckForUpdates(boolean checkForUpdates)
void
setDstAlign(int align)
void
setDstHeight(int height)
void
setDstWidth(int width)
void
setDstX(int x)
void
setDstY(int y)
void
setEnabled(boolean enabled)
Set is this overlay enabled.void
setImagePath(String imagePath)
Set the path to the overlay image.void
setIndex(int index)
Set overlay index (z-order)void
setLastModDate(long lastModDate)
void
setOpacity(int opacity)
-
-
-
Field Detail
-
LOADSTATE_INIT
public static final int LOADSTATE_INIT
- See Also:
- Constant Field Values
-
LOADSTATE_SUCCESS
public static final int LOADSTATE_SUCCESS
- See Also:
- Constant Field Values
-
LOADSTATE_FAILURE
public static final int LOADSTATE_FAILURE
- See Also:
- Constant Field Values
-
videoFrame
public TranscoderNativeVideoFrame videoFrame
-
enabled
public boolean enabled
-
index
public int index
-
imagePath
public String imagePath
-
opacity
public int opacity
-
lastModDate
public long lastModDate
-
-
Constructor Detail
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame()
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame(String imagePath)
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame(String imagePath, int opacity)
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame(int width, int height, byte[] buffer)
-
-
Method Detail
-
isGood
public boolean isGood()
-
isImageFileUpdated
public boolean isImageFileUpdated(IApplicationInstance appInstance)
-
loadImage
public boolean loadImage(IApplicationInstance appInstance, boolean reload)
If you set a path to an image file (JPG, PNG, BMP...) this will load the image into this object.- Parameters:
appInstance
- application instancereload
- is it an image reload- Returns:
- true if successful
-
isEnabled
public boolean isEnabled()
Is this overlay enabled.- Returns:
- overlay enabled
-
setEnabled
public void setEnabled(boolean enabled)
Set is this overlay enabled.- Parameters:
enabled
- overlay enabled
-
getVideoFrame
public TranscoderNativeVideoFrame getVideoFrame()
Get the video frame.- Returns:
- video frame
-
getIndex
public int getIndex()
Get overlay index (z-order)- Returns:
- overlay index (z-order)
-
setIndex
public void setIndex(int index)
Set overlay index (z-order)- Parameters:
index
- overlay index (z-order)
-
getImagePath
public String getImagePath()
Get the path to the overlay image.- Returns:
- path to the overlay image
-
setImagePath
public void setImagePath(String imagePath)
Set the path to the overlay image.- Parameters:
imagePath
- path to the overlay image
-
getOpacity
public int getOpacity()
-
setOpacity
public void setOpacity(int opacity)
-
getDstX
public int getDstX()
-
setDstX
public void setDstX(int x)
-
getDstY
public int getDstY()
-
setDstY
public void setDstY(int y)
-
getDstWidth
public int getDstWidth()
-
setDstWidth
public void setDstWidth(int width)
-
getDstHeight
public int getDstHeight()
-
setDstHeight
public void setDstHeight(int height)
-
getDstAlign
public int getDstAlign()
-
setDstAlign
public void setDstAlign(int align)
-
getLastModDate
public long getLastModDate()
-
setLastModDate
public void setLastModDate(long lastModDate)
-
isCheckForUpdates
public boolean isCheckForUpdates()
-
setCheckForUpdates
public void setCheckForUpdates(boolean checkForUpdates)
-
isTransparent
public boolean isTransparent()
-
-