public final class VideoEncoder extends AbstractVideoEncoder
| Modifier and Type | Field and Description |
|---|---|
protected long |
mNativePtr |
mBitRate, mColorFormat, mFramerate, mHeight, mIFrameIntervals, MIME_AVC, mWidth, OMX_COLOR_Format12bitRGB444, OMX_COLOR_Format16bitARGB1555, OMX_COLOR_Format16bitARGB4444, OMX_COLOR_Format16bitBGR565, OMX_COLOR_Format16bitRGB565, OMX_COLOR_Format18bitARGB1665, OMX_COLOR_Format18BitBGR666, OMX_COLOR_Format18bitRGB666, OMX_COLOR_Format19bitARGB1666, OMX_COLOR_Format24BitABGR6666, OMX_COLOR_Format24bitARGB1887, OMX_COLOR_Format24BitARGB6666, OMX_COLOR_Format24bitBGR888, OMX_COLOR_Format24bitRGB888, OMX_COLOR_Format25bitARGB1888, OMX_COLOR_Format32bitARGB8888, OMX_COLOR_Format32bitBGRA8888, OMX_COLOR_Format8bitRGB332, OMX_COLOR_FormatAndroidOpaque, OMX_COLOR_FormatCbYCrY, OMX_COLOR_FormatCrYCbY, OMX_COLOR_FormatKhronosExtensions, OMX_COLOR_FormatL16, OMX_COLOR_FormatL2, OMX_COLOR_FormatL24, OMX_COLOR_FormatL32, OMX_COLOR_FormatL4, OMX_COLOR_FormatL8, OMX_COLOR_FormatMax, OMX_COLOR_FormatMonochrome, OMX_COLOR_FormatRawBayer10bit, OMX_COLOR_FormatRawBayer8bit, OMX_COLOR_FormatRawBayer8bitcompressed, OMX_COLOR_FormatUnused, OMX_COLOR_FormatVendorStartUnused, OMX_COLOR_FormatYCbYCr, OMX_COLOR_FormatYCrYCb, OMX_COLOR_FormatYUV411PackedPlanar, OMX_COLOR_FormatYUV411Planar, OMX_COLOR_FormatYUV420PackedPlanar, OMX_COLOR_FormatYUV420PackedSemiPlanar, OMX_COLOR_FormatYUV420Planar, OMX_COLOR_FormatYUV420SemiPlanar, OMX_COLOR_FormatYUV422PackedPlanar, OMX_COLOR_FormatYUV422PackedSemiPlanar, OMX_COLOR_FormatYUV422Planar, OMX_COLOR_FormatYUV422SemiPlanar, OMX_COLOR_FormatYUV444Interleaved, OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m, OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka, OMX_QCOM_COLOR_FormatYVU420SemiPlanar, OMX_SEC_COLOR_FormatNV12Tiled, OMX_TI_COLOR_FormatYUV420PackedSemiPlanar, recognizedFormats, supportsAdaptiveStreamingMIME_TYPE, mIsCapturing, mIsEOS, mMediaCodec, mRecorderStarted, mRequestStop, mSync, mTrackIndex, START_MARK, TIMEOUT_USEC| Constructor and Description |
|---|
VideoEncoder(Recorder recorder,
EncoderListener listener,
boolean align16) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.nio.ByteBuffer buffer)
nativeから呼び出すので名前を変えちゃダメ
|
int |
getCaptureFormat() |
android.view.Surface |
getInputSurface() |
void |
prepare() |
void |
release()
停止させてから破棄する。
|
boolean |
startRecorder(IRecorder recorder,
android.media.MediaFormat outFormat)
コーデックからの出力フォーマットを取得してnative側へ引き渡してMuxerをスタートさせる
|
void |
stop()
エンコーダ終了要求(Recorderから呼び出される)
|
void |
stopRecorder(IRecorder recorder) |
adjustBitrate, createOutputFormat, dumpVideoCodecEncoders, getHeight, getWidth, isAudio, isSemiPlanarYUV, selectVideoCodec, setVideoConfig, setVideoSizebyteComp, callOnError, callOnStartEncode, checkProfileLevel, dumpProfileLevel, encode, finalize, frameAvailableSoon, getCodecCapabilities, getCodecCount, getCodecInfoAt, getCodecs, getInputPTSUs, getNextOutputPTSUs, getOutputPath, getProfileLevelString, getRecorder, isCapturing, run, signalEndOfInputStream, startpublic VideoEncoder(Recorder recorder, EncoderListener listener, boolean align16)
public void prepare()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
AbstractEncoderstop in interface Encoderstop in class AbstractEncoderpublic void release()
release in interface Encoderrelease in class AbstractEncoderpublic boolean startRecorder(IRecorder recorder, android.media.MediaFormat outFormat)
startRecorder in class AbstractEncoderpublic void stopRecorder(IRecorder recorder)
stopRecorder in class AbstractEncoderpublic void encode(java.nio.ByteBuffer buffer)
encode in interface Encoderencode in class AbstractEncoderpublic int getCaptureFormat()
getCaptureFormat in class AbstractVideoEncoderpublic android.view.Surface getInputSurface()
getInputSurface in class AbstractVideoEncoder