Package com.wowza.wms.transcoder.model
Class TranscoderNativeVideoFrame
- Object
- 
- com.wowza.wms.transcoder.model.TranscoderNativeVideoFrame
 
- 
 public class TranscoderNativeVideoFrame extends ObjectNative video frame.
- 
- 
Field SummaryFields Modifier and Type Field Description byte[]bytesstatic intDESTINATION_ALIGN_BOTTOMstatic intDESTINATION_ALIGN_HCENTERstatic intDESTINATION_ALIGN_LEFTstatic intDESTINATION_ALIGN_RIGHTstatic intDESTINATION_ALIGN_TOPstatic intDESTINATION_ALIGN_VCENTERintdstAlignintdstHeightintdstWidthintdstXintdstYlongfourcclongframeStartOffsetintheightlongstridelongtimecodeintwidth
 - 
Constructor SummaryConstructors Constructor Description TranscoderNativeVideoFrame()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()Get the raw image bytes.intgetDstAlign()Get destination origin align (see DESTINATION_ALIGN_*)intgetDstHeight()Get destination heightintgetDstWidth()Get destination widthintgetDstX()Get the destination x offsetintgetDstY()Get the destination y offsetlonggetFourcc()Get the FOURCC format for this image (always BGRA)longgetFrameStartOffset()Get the offset to first image row byte.intgetHeight()Get image heightlonggetStride()Get the number of bytes in each image row.longgetTimecode()Get timecode (milliseconds) of this frame if it is a frame grab.intgetWidth()Get image widthvoidsetBytes(byte[] bytes)Set raw image bytes.voidsetDstAlign(int dstAlign)Set destination origin align (see DESTINATION_ALIGN_*)voidsetDstHeight(int dstHeight)Set destination heightvoidsetDstWidth(int dstWidth)Set destination widthvoidsetDstX(int dstX)Set the destination x offsetvoidsetDstY(int dstY)Set the destination y offsetvoidsetFourcc(long fourcc)Set the FOURCC format for this image (always BGRA)voidsetFrameStartOffset(long frameStartOffset)Set the offset to first image row byte.voidsetHeight(int height)Set image heightvoidsetStride(long stride)Set the number of bytes in each image row.voidsetTimecode(long timecode)Set timecode (milliseconds) of this frame if it is a frame grab.voidsetWidth(int width)Set image width
 
- 
- 
- 
Field Detail- 
DESTINATION_ALIGN_LEFTpublic static final int DESTINATION_ALIGN_LEFT - See Also:
- Constant Field Values
 
 - 
DESTINATION_ALIGN_HCENTERpublic static final int DESTINATION_ALIGN_HCENTER - See Also:
- Constant Field Values
 
 - 
DESTINATION_ALIGN_RIGHTpublic static final int DESTINATION_ALIGN_RIGHT - See Also:
- Constant Field Values
 
 - 
DESTINATION_ALIGN_TOPpublic static final int DESTINATION_ALIGN_TOP - See Also:
- Constant Field Values
 
 - 
DESTINATION_ALIGN_VCENTERpublic static final int DESTINATION_ALIGN_VCENTER - See Also:
- Constant Field Values
 
 - 
DESTINATION_ALIGN_BOTTOMpublic static final int DESTINATION_ALIGN_BOTTOM - See Also:
- Constant Field Values
 
 - 
fourccpublic long fourcc 
 - 
bytespublic byte[] bytes 
 - 
stridepublic long stride 
 - 
frameStartOffsetpublic long frameStartOffset 
 - 
widthpublic int width 
 - 
heightpublic int height 
 - 
timecodepublic long timecode 
 - 
dstXpublic int dstX 
 - 
dstYpublic int dstY 
 - 
dstWidthpublic int dstWidth 
 - 
dstHeightpublic int dstHeight 
 - 
dstAlignpublic int dstAlign 
 
- 
 - 
Method Detail- 
getFourccpublic long getFourcc() Get the FOURCC format for this image (always BGRA)- Returns:
- FOURCC format
 
 - 
setFourccpublic void setFourcc(long fourcc) Set the FOURCC format for this image (always BGRA)- Parameters:
- fourcc- FOURCC format
 
 - 
getBytespublic byte[] getBytes() Get the raw image bytes.- Returns:
- raw image bytes
 
 - 
setBytespublic void setBytes(byte[] bytes) Set raw image bytes.- Parameters:
- bytes- raw image bytes
 
 - 
getStridepublic long getStride() Get the number of bytes in each image row.- Returns:
- number of bytes in each image row
 
 - 
setStridepublic void setStride(long stride) Set the number of bytes in each image row.- Parameters:
- stride- number of bytes in each image row
 
 - 
getFrameStartOffsetpublic long getFrameStartOffset() Get the offset to first image row byte.- Returns:
- offset to first image row byte
 
 - 
setFrameStartOffsetpublic void setFrameStartOffset(long frameStartOffset) Set the offset to first image row byte.- Parameters:
- frameStartOffset- offset to first image row byte
 
 - 
getWidthpublic int getWidth() Get image width- Returns:
- image width
 
 - 
setWidthpublic void setWidth(int width) Set image width- Parameters:
- width- image width
 
 - 
getHeightpublic int getHeight() Get image height- Returns:
- image height
 
 - 
setHeightpublic void setHeight(int height) Set image height- Parameters:
- height- image height
 
 - 
getDstXpublic int getDstX() Get the destination x offset- Returns:
- destination x offset
 
 - 
setDstXpublic void setDstX(int dstX) Set the destination x offset- Parameters:
- dstX- destination x offset
 
 - 
getDstYpublic int getDstY() Get the destination y offset- Returns:
- destination y offset
 
 - 
setDstYpublic void setDstY(int dstY) Set the destination y offset- Parameters:
- dstY- destination y offset
 
 - 
getDstWidthpublic int getDstWidth() Get destination width- Returns:
- destination width
 
 - 
setDstWidthpublic void setDstWidth(int dstWidth) Set destination width- Parameters:
- dstWidth- destination width
 
 - 
getDstHeightpublic int getDstHeight() Get destination height- Returns:
- destination height
 
 - 
setDstHeightpublic void setDstHeight(int dstHeight) Set destination height- Parameters:
- dstHeight- destination height
 
 - 
getDstAlignpublic int getDstAlign() Get destination origin align (see DESTINATION_ALIGN_*)- Returns:
- destination origin align
 
 - 
setDstAlignpublic void setDstAlign(int dstAlign) Set destination origin align (see DESTINATION_ALIGN_*)- Parameters:
- dstAlign- destination origin align
 
 - 
getTimecodepublic long getTimecode() Get timecode (milliseconds) of this frame if it is a frame grab.- Returns:
- timecode (milliseconds)
 
 - 
setTimecodepublic void setTimecode(long timecode) Set timecode (milliseconds) of this frame if it is a frame grab.- Parameters:
- timecode- timecode (milliseconds)
 
 
- 
 
-