public abstract class MediaReaper
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
static interface |
MediaReaper.ReaperListener |
static class |
MediaReaper.VideoReaper |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
mSync |
static int |
REAPER_AUDIO |
static int |
REAPER_VIDEO |
static int |
TIMEOUT_USEC |
| Constructor and Description |
|---|
MediaReaper(int trackIndex,
android.media.MediaCodec encoder,
MediaReaper.ReaperListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract android.media.MediaFormat |
createOutputFormat(byte[] csd,
int size,
int ix0,
int ix1) |
void |
frameAvailableSoon() |
protected long |
getNextOutputPTSUs(long presentationTimeUs)
Muxerの今回の書き込み用のpresentationTimeUs値を取得
|
void |
release() |
void |
run() |
public static final int REAPER_VIDEO
public static final int REAPER_AUDIO
public static final int TIMEOUT_USEC
protected final java.lang.Object mSync
public MediaReaper(int trackIndex,
android.media.MediaCodec encoder,
MediaReaper.ReaperListener listener)
public void release()
public void frameAvailableSoon()
public void run()
run in interface java.lang.Runnableprotected abstract android.media.MediaFormat createOutputFormat(byte[] csd,
int size,
int ix0,
int ix1)
protected long getNextOutputPTSUs(long presentationTimeUs)