public class SurfaceEncoder extends AbstractVideoEncoder
| Modifier and Type | Field and Description |
|---|---|
protected android.view.Surface |
mInputSurface |
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 |
|---|
SurfaceEncoder(IRecorder recorder,
EncoderListener listener) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCaptureFormat() |
android.view.Surface |
getInputSurface()
Returns the encoder's input surface.
|
void |
prepare() |
void |
release()
Releases encoder resources.
|
void |
signalEndOfInputStream()
ストリーミング終了指示を送る
|
adjustBitrate, createOutputFormat, dumpVideoCodecEncoders, getHeight, getWidth, isAudio, isSemiPlanarYUV, selectVideoCodec, setVideoConfig, setVideoSizebyteComp, callOnError, callOnStartEncode, checkProfileLevel, dumpProfileLevel, encode, encode, finalize, frameAvailableSoon, getCodecCapabilities, getCodecCount, getCodecInfoAt, getCodecs, getInputPTSUs, getNextOutputPTSUs, getOutputPath, getProfileLevelString, getRecorder, isCapturing, run, start, startRecorder, stop, stopRecorderpublic SurfaceEncoder(IRecorder recorder, EncoderListener listener)
public android.view.Surface getInputSurface()
getInputSurface in class AbstractVideoEncoderpublic int getCaptureFormat()
getCaptureFormat in class AbstractVideoEncoderpublic void prepare()
throws java.lang.Exception
java.lang.Exceptionpublic void release()
release in interface Encoderrelease in class AbstractEncoderpublic void signalEndOfInputStream()
AbstractEncodersignalEndOfInputStream in interface EncodersignalEndOfInputStream in class AbstractEncoder