public class IVFFileReader extends Object
| Constructor and Description |
|---|
IVFFileReader(String filePath)
Initialize a new instance of IVFFileReader that will read
the IVF file located by filePath.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
changeEndianness(int value)
Change the endianness of a 32bits int.
|
static long |
changeEndianness(long value)
Change the endianness of a 64bits long.
|
static short |
changeEndianness(short value)
Change the endianness of a 16bits short.
|
IVFHeader |
getHeader()
Get the header of the IVF file.
|
VP8Frame |
getNextFrame(boolean loopFile)
Get the next vp8 frame of the IVF file as a byte array.
|
void |
getNextFrame(VP8Frame frame,
boolean loopFile)
Get the next vp8 frame of the IVF file as a byte array.
|
public IVFFileReader(String filePath)
filePath - the location of the IVF file this IVFFileReader
will read.public IVFHeader getHeader()
public VP8Frame getNextFrame(boolean loopFile) throws IOException
loopFile - if true and the end of the file is reached,
this IVFFileReader will go back at the beginning of the file
and start over the reading of the file.IOException - if an error occur during the read, of if EOF is reached.public void getNextFrame(VP8Frame frame, boolean loopFile) throws IOException
frame - the VP8Frame that will be filled with the
next frame from the file.loopFile - if true and the end of the file is reached,
this IVFFileReader will go back at the beginning of the file
and start over the reading of the file.IOException - if an error occur during the read, of if EOF is reached.public static int changeEndianness(int value)
value - the value which you want to change the endianness.public static short changeEndianness(short value)
value - the value which you want to change the endianness.public static long changeEndianness(long value)
value - the value which you want to change the endianness.Copyright © 2022 jitsi.org. All rights reserved.