Searched refs:mediaCodec (Results 1 – 2 of 2) sorted by relevance
77 private MediaCodec mediaCodec; field in MediaCodecVideoEncoder319 mediaCodec = createByCodecName(properties.codecName); in initEncode()321 if (mediaCodec == null) { in initEncode()325 mediaCodec.configure( in initEncode()331 inputSurface = mediaCodec.createInputSurface(); in initEncode()335 mediaCodec.start(); in initEncode()336 outputBuffers = mediaCodec.getOutputBuffers(); in initEncode()347 ByteBuffer[] inputBuffers = mediaCodec.getInputBuffers(); in getInputBuffers()365 mediaCodec.setParameters(b); in encodeBuffer()367 mediaCodec.queueInputBuffer( in encodeBuffer()[all …]
77 private MediaCodec mediaCodec; field in MediaCodecVideoDecoder276 mediaCodec = in initDecode()278 if (mediaCodec == null) { in initDecode()282 mediaCodec.configure(format, surface, null, 0); in initDecode()283 mediaCodec.start(); in initDecode()285 outputBuffers = mediaCodec.getOutputBuffers(); in initDecode()286 inputBuffers = mediaCodec.getInputBuffers(); in initDecode()313 mediaCodec.stop(); in release()314 mediaCodec.release(); in release()333 mediaCodec = null; in release()[all …]