Class TranscoderNativeVideoFrame

Object
com.wowza.wms.transcoder.model.TranscoderNativeVideoFrame

public class TranscoderNativeVideoFrame extends Object
Native video frame.
  • Field Details

    • DESTINATION_ALIGN_LEFT

      public static final int DESTINATION_ALIGN_LEFT
      See Also:
    • DESTINATION_ALIGN_HCENTER

      public static final int DESTINATION_ALIGN_HCENTER
      See Also:
    • DESTINATION_ALIGN_RIGHT

      public static final int DESTINATION_ALIGN_RIGHT
      See Also:
    • DESTINATION_ALIGN_TOP

      public static final int DESTINATION_ALIGN_TOP
      See Also:
    • DESTINATION_ALIGN_VCENTER

      public static final int DESTINATION_ALIGN_VCENTER
      See Also:
    • DESTINATION_ALIGN_BOTTOM

      public static final int DESTINATION_ALIGN_BOTTOM
      See Also:
    • 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
  • Constructor Details

    • TranscoderNativeVideoFrame

      public TranscoderNativeVideoFrame()
  • Method Details

    • 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)