/cts/tests/media/src/android/mediav2/cts/ |
D | CodecEncoderTest.java | 304 int[] list0, int[] list1, int[] list2, int colorFormat); in nativeTestSimpleEncode() argument 309 int colorFormat = -1; in testSimpleEncodeNative() local 312 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testSimpleEncodeNative() 313 assertTrue("no valid color formats received", colorFormat != -1); in testSimpleEncodeNative() 316 mEncParamList1, mEncParamList2, colorFormat)); in testSimpleEncodeNative() 411 int[] list0, int[] list1, int[] list2, int colorFormat); in nativeTestFlush() argument 417 int colorFormat = -1; in testFlushNative() local 420 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testFlushNative() 421 assertTrue("no valid color formats received", colorFormat != -1); in testFlushNative() 424 mEncParamList1, mEncParamList2, colorFormat)); in testFlushNative() [all …]
|
D | CodecTestBase.java | 1438 int colorFormat = -1; in findByteBufferColorFormat() local 1443 colorFormat = c; in findByteBufferColorFormat() 1448 return colorFormat; in findByteBufferColorFormat()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_decoder_source.cpp | 28 int32_t w, int32_t h, int32_t colorFormat, float fps, bool looping, bool regulate); 60 int32_t w, int32_t h, int32_t colorFormat, float fps, bool looping, in createDecoderSource() argument 63 DecoderSource *d = new DecoderSource(w, h, colorFormat, fps, looping, regulateFeedingRate); in createDecoderSource() 70 int32_t w, int32_t h, int32_t colorFormat, float fps, bool looping, bool regulate) in DecoderSource() argument 71 : Source(w, h, colorFormat, fps, looping), in DecoderSource()
|
D | native-media-jni.cpp | 1059 jint colorFormat, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure() argument 1101 jint values[] = {width, height, colorFormat, bitRate, frameRate, iFrameInterval, lowLatency, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncodeDecodeTest.java | 436 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer() local 437 if (VERBOSE) Log.d(TAG, "found colorFormat: " + colorFormat); in encodeDecodeVideoFromBuffer() 441 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromBuffer() 455 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer() 498 int colorFormat = MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface; in encodeDecodeVideoFromSurfaceToSurface() local 502 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromSurfaceToSurface() 576 int colorFormat = capabilities.colorFormats[i]; in selectColorFormat() local 577 if (isRecognizedFormat(colorFormat)) { in selectColorFormat() 578 return colorFormat; in selectColorFormat() 589 private static boolean isRecognizedFormat(int colorFormat) { in isRecognizedFormat() argument [all …]
|
D | NdkMediaCodec.java | 64 int colorFormat, in AMediaCodecConfigure() argument 121 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure() local 156 colorFormat, in configure()
|
D | VideoCodecTestBase.java | 102 CodecProperties(String codecName, int colorFormat) { in CodecProperties() argument 104 this.colorFormat = colorFormat; in CodecProperties() 107 public final int colorFormat; // Color format supported by codec. field in VideoCodecTestBase.CodecProperties 156 for (int colorFormat: capabilities.colorFormats) { in getVideoCodecProperties() 157 Log.v(TAG, " Color: 0x" + Integer.toHexString(colorFormat)); in getVideoCodecProperties() 572 int frameColorFormat = properties.colorFormat; in decode() 573 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in decode() 828 if (mProperties.colorFormat != CodecCapabilities.COLOR_FormatYUV420Planar) { in getInputFrame() 1389 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in encode() 1397 ". Color format: 0x" + Integer.toHexString(properties.colorFormat)+ " : " + in encode() [all …]
|
D | ImageReaderDecoderTest.java | 255 int colorFormat = COLOR_FormatYUV420Flexible; in videoDecode() local 256 videoDecode(asset, imageFormat, colorFormat, mode, checkSwirl); in videoDecode() 263 MediaAsset asset, int imageFormat, int colorFormat, int mode, boolean checkSwirl) { in videoDecode() argument 303 mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in videoDecode()
|
D | AdaptivePlaybackTest.java | 1017 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT); 1018 mDoChecksum = isRecognizedFormat(colorFormat); 1243 private static boolean isRecognizedFormat(int colorFormat) { 1244 switch (colorFormat) {
|
D | MediaCodecTest.java | 550 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors() local 551 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in testCreateInputSurfaceErrors() 1900 int colorFormat = capabilities.colorFormats[i]; in findNonSurfaceColorFormat() local 1901 if (colorFormat != MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface) { in findNonSurfaceColorFormat() 1902 return colorFormat; in findNonSurfaceColorFormat()
|
D | VideoEncoderTest.java | 277 int colorFormat) throws IOException { in initCodecsAndConfigureEncoder() argument 278 mDecFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder() 306 outFmt.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 1242 int colorFormat = mDecOutputFormat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in runDecoder() local 1243 if (colorFormat == CodecCapabilities.COLOR_FormatYUV420SemiPlanar in runDecoder() 1244 || colorFormat == CodecCapabilities.COLOR_FormatYUV420Planar) { in runDecoder() 1245 mDstColorFormat = colorFormat; in runDecoder() 1249 Integer.toHexString(colorFormat) + ", using FlexYUV"); in runDecoder()
|