public class BufferHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
ANNEXB_START_MARK
codec specific dataのスタートマーカー
AnnexBのスタートマーカーと同じ
N[00] 00 00 01 (N ≧ 0)
|
| Constructor and Description |
|---|
BufferHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
byteComp(byte[] array,
int offset,
byte[] search,
int len)
byte[]を検索して一致する先頭インデックスを返す
|
static java.nio.FloatBuffer |
createFloatBuffer(float[] coords)
Allocates a direct float buffer, and populates it with the float array data.
|
static void |
dumpByteBuffer(java.lang.String tag,
java.nio.ByteBuffer buffer,
int offset,
int size) |
static void |
dumpByteBuffer(java.lang.String tag,
java.nio.ByteBuffer buffer,
int offset,
int _size,
boolean findAnnexB) |
static int |
findAnnexB(byte[] data,
int offset)
AnnexBのスタートマーカー(N[00] 00 00 01 (N ≧ 0))を探して先頭インデックスを返す
返り値が0以上の場合は、返り値+3がpayloadの先頭位置(nalu headerのはず)
|
public static final byte[] ANNEXB_START_MARK
public static final void dumpByteBuffer(java.lang.String tag,
java.nio.ByteBuffer buffer,
int offset,
int size)
public static final void dumpByteBuffer(java.lang.String tag,
java.nio.ByteBuffer buffer,
int offset,
int _size,
boolean findAnnexB)
public static final int byteComp(byte[] array,
int offset,
byte[] search,
int len)
array - 検索されるbyte[]search - 検索するbyte[]len - 検索するバイト数public static final int findAnnexB(byte[] data,
int offset)
data - offset - public static java.nio.FloatBuffer createFloatBuffer(float[] coords)