public class TranscoderNativeVideoFrame
extends Object
| 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 | Description |
|---|---|
TranscoderNativeVideoFrame() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
deserialize(TranscoderNativeVideoFrame obj,
byte[] buffer,
int pos,
boolean includeByteArray) |
|
byte[] |
getBytes() |
Get the raw image bytes.
|
int |
getDstAlign() |
Get destination origin align (see DESTINATION_ALIGN_*)
|
int |
getDstHeight() |
Get destination height
|
int |
getDstWidth() |
Get destination width
|
int |
getDstX() |
Get the destination x offset
|
int |
getDstY() |
Get the destination y offset
|
long |
getFourcc() |
Get the FOURCC format for this image (always BGRA)
|
long |
getFrameStartOffset() |
Get the offset to first image row byte.
|
int |
getHeight() |
Get image height
|
int |
getSerializationSize(boolean includeByteArray) |
|
long |
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 width
|
int |
serialize(byte[] buffer,
int pos,
boolean includeByteArray) |
|
void |
setBytes(byte[] bytes) |
Set raw image bytes.
|
void |
setDstAlign(int dstAlign) |
Set destination origin align (see DESTINATION_ALIGN_*)
|
void |
setDstHeight(int dstHeight) |
Set destination height
|
void |
setDstWidth(int dstWidth) |
Set destination width
|
void |
setDstX(int dstX) |
Set the destination x offset
|
void |
setDstY(int dstY) |
Set the destination y offset
|
void |
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 height
|
void |
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
|
public byte[] bytes
public static final int DESTINATION_ALIGN_BOTTOM
public static final int DESTINATION_ALIGN_HCENTER
public static final int DESTINATION_ALIGN_LEFT
public static final int DESTINATION_ALIGN_RIGHT
public static final int DESTINATION_ALIGN_TOP
public static final int DESTINATION_ALIGN_VCENTER
public int dstAlign
public int dstHeight
public int dstWidth
public int dstX
public int dstY
public long fourcc
public long frameStartOffset
public int height
public long stride
public long timecode
public int width
public static int deserialize(TranscoderNativeVideoFrame obj, byte[] buffer, int pos, boolean includeByteArray)
public byte[] getBytes()
public int getDstAlign()
public int getDstHeight()
public int getDstWidth()
public int getDstX()
public int getDstY()
public long getFourcc()
public long getFrameStartOffset()
public int getHeight()
public int getSerializationSize(boolean includeByteArray)
public long getStride()
public long getTimecode()
public int getWidth()
public int serialize(byte[] buffer,
int pos,
boolean includeByteArray)
public void setBytes(byte[] bytes)
bytes - raw image bytespublic void setDstAlign(int dstAlign)
dstAlign - destination origin alignpublic void setDstHeight(int dstHeight)
dstHeight - destination heightpublic void setDstWidth(int dstWidth)
dstWidth - destination widthpublic void setDstX(int dstX)
dstX - destination x offsetpublic void setDstY(int dstY)
dstY - destination y offsetpublic void setFourcc(long fourcc)
fourcc - FOURCC formatpublic void setFrameStartOffset(long frameStartOffset)
frameStartOffset - offset to first image row bytepublic void setHeight(int height)
height - image heightpublic void setStride(long stride)
stride - number of bytes in each image rowpublic void setTimecode(long timecode)
timecode - timecode (milliseconds)public void setWidth(int width)
width - image width