Package com.wowza.wms.transcoder.model
Class TranscoderVideoOverlayFrame
Object
com.wowza.wms.transcoder.model.TranscoderVideoOverlayFrame
TranscoderVideoOverlayFrame: Video overlay frame.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
int
long
static final int
static final int
static final int
int
-
Constructor Summary
ConstructorsConstructorDescriptionTranscoderVideoOverlayFrame
(int width, int height, byte[] buffer) TranscoderVideoOverlayFrame
(String imagePath) TranscoderVideoOverlayFrame
(String imagePath, int opacity) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
getDstX()
int
getDstY()
Get the path to the overlay image.int
getIndex()
Get overlay index (z-order)long
int
Get the video frame.boolean
boolean
Is this overlay enabled.boolean
isGood()
boolean
isImageFileUpdated
(IApplicationInstance appInstance) boolean
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 Details
-
LOADSTATE_INIT
public static final int LOADSTATE_INIT- See Also:
-
LOADSTATE_SUCCESS
public static final int LOADSTATE_SUCCESS- See Also:
-
LOADSTATE_FAILURE
public static final int LOADSTATE_FAILURE- See Also:
-
videoFrame
-
enabled
public boolean enabled -
index
public int index -
imagePath
-
opacity
public int opacity -
lastModDate
public long lastModDate
-
-
Constructor Details
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame() -
TranscoderVideoOverlayFrame
-
TranscoderVideoOverlayFrame
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame(int width, int height, byte[] buffer)
-
-
Method Details
-
isGood
public boolean isGood() -
isImageFileUpdated
-
loadImage
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
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
Get the path to the overlay image.- Returns:
- path to the overlay image
-
setImagePath
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()
-