Package com.wowza.wms.transcoder.model
Class TranscoderNativeVideoFrame
- Object
-
- com.wowza.wms.transcoder.model.TranscoderNativeVideoFrame
-
public class TranscoderNativeVideoFrame extends Object
Native video frame.
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
bytes
static int
DESTINATION_ALIGN_BOTTOM
static int
DESTINATION_ALIGN_HCENTER
static int
DESTINATION_ALIGN_LEFT
static int
DESTINATION_ALIGN_RIGHT
static int
DESTINATION_ALIGN_TOP
static int
DESTINATION_ALIGN_VCENTER
int
dstAlign
int
dstHeight
int
dstWidth
int
dstX
int
dstY
long
fourcc
long
frameStartOffset
int
height
long
stride
long
timecode
int
width
-
Constructor Summary
Constructors Constructor Description TranscoderNativeVideoFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
Get the raw image bytes.int
getDstAlign()
Get destination origin align (see DESTINATION_ALIGN_*)int
getDstHeight()
Get destination heightint
getDstWidth()
Get destination widthint
getDstX()
Get the destination x offsetint
getDstY()
Get the destination y offsetlong
getFourcc()
Get the FOURCC format for this image (always BGRA)long
getFrameStartOffset()
Get the offset to first image row byte.int
getHeight()
Get image heightlong
getStride()
Get the number of bytes in each image row.long
getTimecode()
Get timecode (milliseconds) of this frame if it is a frame grab.int
getWidth()
Get image widthvoid
setBytes(byte[] bytes)
Set raw image bytes.void
setDstAlign(int dstAlign)
Set destination origin align (see DESTINATION_ALIGN_*)void
setDstHeight(int dstHeight)
Set destination heightvoid
setDstWidth(int dstWidth)
Set destination widthvoid
setDstX(int dstX)
Set the destination x offsetvoid
setDstY(int dstY)
Set the destination y offsetvoid
setFourcc(long fourcc)
Set the FOURCC format for this image (always BGRA)void
setFrameStartOffset(long frameStartOffset)
Set the offset to first image row byte.void
setHeight(int height)
Set image heightvoid
setStride(long stride)
Set the number of bytes in each image row.void
setTimecode(long timecode)
Set timecode (milliseconds) of this frame if it is a frame grab.void
setWidth(int width)
Set image width
-
-
-
Field Detail
-
DESTINATION_ALIGN_LEFT
public static final int DESTINATION_ALIGN_LEFT
- See Also:
- Constant Field Values
-
DESTINATION_ALIGN_HCENTER
public static final int DESTINATION_ALIGN_HCENTER
- See Also:
- Constant Field Values
-
DESTINATION_ALIGN_RIGHT
public static final int DESTINATION_ALIGN_RIGHT
- See Also:
- Constant Field Values
-
DESTINATION_ALIGN_TOP
public static final int DESTINATION_ALIGN_TOP
- See Also:
- Constant Field Values
-
DESTINATION_ALIGN_VCENTER
public static final int DESTINATION_ALIGN_VCENTER
- See Also:
- Constant Field Values
-
DESTINATION_ALIGN_BOTTOM
public static final int DESTINATION_ALIGN_BOTTOM
- See Also:
- Constant Field Values
-
fourcc
public long fourcc
-
bytes
public byte[] bytes
-
stride
public long stride
-
frameStartOffset
public long frameStartOffset
-
width
public int width
-
height
public int height
-
timecode
public long timecode
-
dstX
public int dstX
-
dstY
public int dstY
-
dstWidth
public int dstWidth
-
dstHeight
public int dstHeight
-
dstAlign
public int dstAlign
-
-
Method Detail
-
getFourcc
public long getFourcc()
Get the FOURCC format for this image (always BGRA)- Returns:
- FOURCC format
-
setFourcc
public void setFourcc(long fourcc)
Set the FOURCC format for this image (always BGRA)- Parameters:
fourcc
- FOURCC format
-
getBytes
public byte[] getBytes()
Get the raw image bytes.- Returns:
- raw image bytes
-
setBytes
public void setBytes(byte[] bytes)
Set raw image bytes.- Parameters:
bytes
- raw image bytes
-
getStride
public long getStride()
Get the number of bytes in each image row.- Returns:
- number of bytes in each image row
-
setStride
public void setStride(long stride)
Set the number of bytes in each image row.- Parameters:
stride
- number of bytes in each image row
-
getFrameStartOffset
public long getFrameStartOffset()
Get the offset to first image row byte.- Returns:
- offset to first image row byte
-
setFrameStartOffset
public void setFrameStartOffset(long frameStartOffset)
Set the offset to first image row byte.- Parameters:
frameStartOffset
- offset to first image row byte
-
getWidth
public int getWidth()
Get image width- Returns:
- image width
-
setWidth
public void setWidth(int width)
Set image width- Parameters:
width
- image width
-
getHeight
public int getHeight()
Get image height- Returns:
- image height
-
setHeight
public void setHeight(int height)
Set image height- Parameters:
height
- image height
-
getDstX
public int getDstX()
Get the destination x offset- Returns:
- destination x offset
-
setDstX
public void setDstX(int dstX)
Set the destination x offset- Parameters:
dstX
- destination x offset
-
getDstY
public int getDstY()
Get the destination y offset- Returns:
- destination y offset
-
setDstY
public void setDstY(int dstY)
Set the destination y offset- Parameters:
dstY
- destination y offset
-
getDstWidth
public int getDstWidth()
Get destination width- Returns:
- destination width
-
setDstWidth
public void setDstWidth(int dstWidth)
Set destination width- Parameters:
dstWidth
- destination width
-
getDstHeight
public int getDstHeight()
Get destination height- Returns:
- destination height
-
setDstHeight
public void setDstHeight(int dstHeight)
Set destination height- Parameters:
dstHeight
- destination height
-
getDstAlign
public int getDstAlign()
Get destination origin align (see DESTINATION_ALIGN_*)- Returns:
- destination origin align
-
setDstAlign
public void setDstAlign(int dstAlign)
Set destination origin align (see DESTINATION_ALIGN_*)- Parameters:
dstAlign
- destination origin align
-
getTimecode
public long getTimecode()
Get timecode (milliseconds) of this frame if it is a frame grab.- Returns:
- timecode (milliseconds)
-
setTimecode
public void setTimecode(long timecode)
Set timecode (milliseconds) of this frame if it is a frame grab.- Parameters:
timecode
- timecode (milliseconds)
-
-