-
- All Implemented Interfaces:
-
com.serenegiant.encoder.IVideoEncoder,java.lang.Runnable
public class MediaVideoEncoder extends MediaEncoder implements IVideoEncoder
Encode texture images as H.264 video using MediaCodec. This class render texture images into recording surface camera from MediaCodec encoder using Open GL|ES
-
-
Constructor Summary
Constructors Constructor Description MediaVideoEncoder(MediaMuxerWrapper muxer, int width, int height, MediaEncoder.MediaEncoderListener listener)
-
Method Summary
Modifier and Type Method Description booleanframeAvailableSoon(Array<float> tex_matrix)booleanframeAvailableSoon()This method does not work correctly on this class,use #frameAvailableSoon(final float[]) instead voidsetEglContext(EGLBase.IContext sharedContext, int tex_id)-
Methods inherited from class com.serenegiant.encoder.MediaEncoder
getInputSurface, getOutputUri, run -
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MediaVideoEncoder
MediaVideoEncoder(MediaMuxerWrapper muxer, int width, int height, MediaEncoder.MediaEncoderListener listener)
-
-
Method Detail
-
frameAvailableSoon
boolean frameAvailableSoon(Array<float> tex_matrix)
-
frameAvailableSoon
boolean frameAvailableSoon()
This method does not work correctly on this class,use #frameAvailableSoon(final float[]) instead
-
setEglContext
void setEglContext(EGLBase.IContext sharedContext, int tex_id)
-
-
-
-