public class ByteGatherAcceptor extends Object implements FFMPGByteAcceptor
| Constructor and Description |
|---|
ByteGatherAcceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(byte[] page,
int linesize,
int width,
int height)
Accept one "page" of data, of width x height given, and with linesize
bytes on each line of the page.
|
void |
accept(org.bytedeco.javacpp.BytePointer data,
int linesize,
int width,
int height)
Accept one "page" of data, of width x height given, and with linesize
bytes on each line of the page.
|
List<byte[]> |
getBytes()
Fetch all pages of data.
|
int |
getHeight() |
int |
getNumPages() |
int |
getPixelBytes() |
long |
getTotalSize() |
int |
getWidth() |
boolean |
isPopulated() |
void |
setFrameNum(int frameNum) |
void |
setHeight(int height) |
void |
setPixelBytes(int pixelBytes) |
void |
setWidth(int width) |
public void accept(org.bytedeco.javacpp.BytePointer data,
int linesize,
int width,
int height)
accept in interface FFMPGByteAcceptordata - pointer to grab the data.linesize - how long is a line (with multiplier justification).width - how wide is a line in elements.height - number of lines in the page.public void accept(byte[] page,
int linesize,
int width,
int height)
accept in interface FFMPGByteAcceptorpage - the data.linesize - how long is a line (with multiplier justification).width - how wide is a line in elements.height - number of lines in the page.public void setFrameNum(int frameNum)
setFrameNum in interface FFMPGByteAcceptorpublic void setPixelBytes(int pixelBytes)
setPixelBytes in interface FFMPGByteAcceptorpixelBytes - the pixelBytes to setpublic boolean isPopulated()
public List<byte[]> getBytes()
public int getNumPages()
public long getTotalSize()
public int getWidth()
public void setWidth(int width)
width - the width to setpublic int getHeight()
public void setHeight(int height)
height - the height to setpublic int getPixelBytes()
Copyright © 2015–2021 Fiji. All rights reserved.