Home
last modified time | relevance | path

Searched refs:encoder (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaCodecTest.java307 MediaCodec encoder = null; in testCreateInputSurfaceErrors() local
317 encoder = MediaCodec.createByCodecName(codecInfo.getName()); in testCreateInputSurfaceErrors()
322 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
327 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testCreateInputSurfaceErrors()
330 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
336 encoder.start(); in testCreateInputSurfaceErrors()
339 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
345 if (encoder != null) { in testCreateInputSurfaceErrors()
346 encoder.stop(); in testCreateInputSurfaceErrors()
347 encoder.release(); in testCreateInputSurfaceErrors()
[all …]
DDecodeEditEncodeTest.java190 MediaCodec encoder = null; in generateVideoFile() local
218 encoder = MediaCodec.createByCodecName(codecName); in generateVideoFile()
219 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in generateVideoFile()
220 inputSurface = new InputSurface(encoder.createInputSurface()); in generateVideoFile()
222 encoder.start(); in generateVideoFile()
224 generateVideoData(encoder, inputSurface, output); in generateVideoFile()
226 if (encoder != null) { in generateVideoFile()
228 encoder.stop(); in generateVideoFile()
229 encoder.release(); in generateVideoFile()
253 private void generateVideoData(MediaCodec encoder, InputSurface inputSurface, in generateVideoData() argument
[all …]
DEncodeDecodeTest.java376 MediaCodec encoder = null; in encodeDecodeVideoFromBuffer() local
402 encoder = MediaCodec.createByCodecName(codec); in encodeDecodeVideoFromBuffer()
404 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer()
415 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeDecodeVideoFromBuffer()
416 encoder.start(); in encodeDecodeVideoFromBuffer()
423 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
426 if (encoder != null) { in encodeDecodeVideoFromBuffer()
427 encoder.stop(); in encodeDecodeVideoFromBuffer()
428 encoder.release(); in encodeDecodeVideoFromBuffer()
446 MediaCodec encoder = null; in encodeDecodeVideoFromSurfaceToSurface() local
[all …]
DEncodeVirtualDisplayTest.java204 MediaCodec encoder = null; in encodeVirtualDisplayTest() local
226 encoder = MediaCodec.createByCodecName(codec); in encodeVirtualDisplayTest()
227 encoder.configure(encoderFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeVirtualDisplayTest()
228 Surface inputSurface = encoder.createInputSurface(); in encodeVirtualDisplayTest()
229 encoder.start(); in encodeVirtualDisplayTest()
247 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest()
257 if (encoder != null) { in encodeVirtualDisplayTest()
258 encoder.stop(); in encodeVirtualDisplayTest()
259 encoder.release(); in encodeVirtualDisplayTest()
271 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument
[all …]
DExtractDecodeEditEncodeMuxTest.java621 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createVideoEncoder() local
622 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createVideoEncoder()
624 surfaceReference.set(encoder.createInputSurface()); in createVideoEncoder()
625 encoder.start(); in createVideoEncoder()
626 return encoder; in createVideoEncoder()
650 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createAudioEncoder() local
651 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createAudioEncoder()
652 encoder.start(); in createAudioEncoder()
653 return encoder; in createAudioEncoder()
DVideoEncoderTest.java1702 for (Encoder encoder: encoders) { in extreme()
1703 if (encoder.testExtreme(x, y, flexYUV, near)) { in extreme()
1718 for (Encoder encoder: encoders) { in arbitrary()
1719 if (encoder.testArbitrary(flexYUV, widths)) { in arbitrary()
1743 for (Encoder encoder : encoders) { in specific()
1744 if (encoder.testSpecific(width, height, flexYUV)) { in specific()
1760 for (Encoder encoder : encoders) { in intraRefresh()
1761 if (encoder.testIntraRefresh(width, height)) { in intraRefresh()
1779 for (Encoder encoder : encoders) { in detailed()
1780 if (encoder.testSupport(width, height, frameRate, bitRate)) { in detailed()
[all …]
DEncodeVirtualDisplayWithCompositionTest.java1382 MediaCodec encoder = null; in isConcurrentEncodingDecodingSupported() local
1398 encoder = MediaCodec.createEncoderByType(MIME_TYPE);; in isConcurrentEncodingDecodingSupported()
1399 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in isConcurrentEncodingDecodingSupported()
1400 encodingSurface = encoder.createInputSurface(); in isConcurrentEncodingDecodingSupported()
1401 encoder.start(); in isConcurrentEncodingDecodingSupported()
1403 encoder.stop(); in isConcurrentEncodingDecodingSupported()
1413 if (encoder != null) { in isConcurrentEncodingDecodingSupported()
1414 encoder.release(); in isConcurrentEncodingDecodingSupported()
DMediaCodecCapabilitiesTest.java432 CodecCapabilities caps, String mime, boolean encoder, int width, int height) { in createReasonableVideoFormat() argument
435 if (encoder) { in createReasonableVideoFormat()
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java450 public static boolean hasCodecForDomain(boolean encoder, String domain) { in hasCodecForDomain() argument
452 if (encoder != info.isEncoder()) { in hasCodecForDomain()
466 public static boolean checkCodecForDomain(boolean encoder, String domain) { in checkCodecForDomain() argument
467 return check(hasCodecForDomain(encoder, domain), in checkCodecForDomain()
468 "no " + domain + (encoder ? " encoder" : " decoder") + " found"); in checkCodecForDomain()
471 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument
473 if (encoder != info.isEncoder()) { in hasCodecForMime()
487 private static boolean hasCodecForMimes(boolean encoder, String[] mimes) { in hasCodecForMimes() argument
489 if (!hasCodecForMime(encoder, mime)) { in hasCodecForMimes()
490 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder") + " for mime " + mime); in hasCodecForMimes()
[all …]
/cts/tools/dex-tools/dex/
Dclasses0.out.dex11348 private java.nio.charset.CharsetEncoder encoder
29621 private java.nio.charset.CharsetEncoder encoder
106405 private static final org.bouncycastle.util.encoders.Encoder encoder
106580 private static final org.bouncycastle.util.encoders.Encoder encoder
106715 private static final org.bouncycastle.util.encoders.Encoder encoder