/cts/tests/media/src/android/mediav2/cts/ |
D | CodecEncoderTest.java | 296 int[] list0, int[] list1, int[] list2, int colorFormat); in nativeTestSimpleEncode() argument 301 int colorFormat = -1; in testSimpleEncodeNative() local 304 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testSimpleEncodeNative() 305 assertTrue("no valid color formats received", colorFormat != -1); in testSimpleEncodeNative() 308 mEncParamList1, mEncParamList2, colorFormat)); in testSimpleEncodeNative() 403 int[] list0, int[] list1, int[] list2, int colorFormat); in nativeTestFlush() argument 409 int colorFormat = -1; in testFlushNative() local 412 colorFormat = findByteBufferColorFormat(mCodecName, mMime); in testFlushNative() 413 assertTrue("no valid color formats received", colorFormat != -1); in testFlushNative() 416 mEncParamList1, mEncParamList2, colorFormat)); in testFlushNative() [all …]
|
D | CodecTestBase.java | 1435 int colorFormat = -1; in findByteBufferColorFormat() local 1440 colorFormat = c; in findByteBufferColorFormat() 1445 return colorFormat; in findByteBufferColorFormat()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_source.h | 38 Source(int32_t w, int32_t h, int32_t colorFormat, float fps, bool looping) in Source() argument 41 mColorFormat(colorFormat), in Source() 69 int32_t w, int32_t h, int32_t colorFormat, float fps, bool looping,
|
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()
|
D | DecoderTest.java | 3257 int colorFormat = oformat.getInteger(MediaFormat.KEY_COLOR_FORMAT); 3260 dochecksum = isRecognizedFormat(colorFormat); // only checksum known raw 3262 Log.d(TAG, "checksum fmt: " + colorFormat + " dim " + width + "x" + height); 3340 private static boolean isRecognizedFormat(int colorFormat) { 3342 switch (colorFormat) {
|
/cts/tests/media/jni/ |
D | NativeCodecEncoderTest.cpp | 71 int32_t* list2, int len2, int colorFormat); 83 int len1, int32_t* list2, int len2, int colorFormat) in CodecEncoderTest() argument 91 mColorFormat{colorFormat} { 867 jintArray jList2, jint colorFormat) { in nativeTestSimpleEncode() argument 878 (int)colorFormat); in nativeTestSimpleEncode() 892 jint colorFormat) { in nativeTestFlush() argument 903 (int)colorFormat); in nativeTestFlush() 917 jintArray jList2, jint colorFormat) { in nativeTestReconfigure() argument 929 (int)colorFormat); in nativeTestReconfigure() 943 jintArray jList1, jintArray jList2, jint colorFormat) { in nativeTestSetForceSyncFrame() argument [all …]
|
/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()
|