Lines Matching refs:mCodec
38 MediaCodec mCodec; field in AmrInputStream
72 mCodec = MediaCodec.createByCodecName(name); in AmrInputStream()
73 mCodec.configure(format, in AmrInputStream()
77 mCodec.start(); in AmrInputStream()
79 if (mCodec != null) { in AmrInputStream()
80 mCodec.release(); in AmrInputStream()
82 mCodec = null; in AmrInputStream()
110 if (mCodec == null) { in read()
121 int index = mCodec.dequeueInputBuffer(0); in read()
135 ByteBuffer buf = mCodec.getInputBuffer(index); in read()
137 mCodec.queueInputBuffer(index, in read()
146 int index = mCodec.dequeueOutputBuffer(mInfo, 0); in read()
149 ByteBuffer out = mCodec.getOutputBuffer(index); in read()
151 mCodec.releaseOutputBuffer(index, false /* render */); in read()
186 if (mCodec != null) { in close()
187 mCodec.release(); in close()
190 mCodec = null; in close()
197 if (mCodec != null) { in finalize()
199 mCodec.release(); in finalize()