Home
last modified time | relevance | path

Searched refs:colorFormat (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DEncodeDecodeTest.java373 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer() local
374 if (VERBOSE) Log.d(TAG, "found colorFormat: " + colorFormat); in encodeDecodeVideoFromBuffer()
378 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromBuffer()
392 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
435 int colorFormat = MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface; in encodeDecodeVideoFromSurfaceToSurface() local
439 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromSurfaceToSurface()
498 int colorFormat = capabilities.colorFormats[i]; in selectColorFormat() local
499 if (isRecognizedFormat(colorFormat)) { in selectColorFormat()
500 return colorFormat; in selectColorFormat()
511 private static boolean isRecognizedFormat(int colorFormat) { in isRecognizedFormat() argument
[all …]
DVp8CodecTestBase.java97 CodecProperties(String codecName, int colorFormat) { in CodecProperties() argument
99 this.colorFormat = colorFormat; in CodecProperties()
106 public final int colorFormat; // Color format supported by codec. field in Vp8CodecTestBase.CodecProperties
157 for (int colorFormat: capabilities.colorFormats) { in getVpxCodecProperties()
158 Log.v(TAG, " Color: 0x" + Integer.toHexString(colorFormat)); in getVpxCodecProperties()
538 int frameColorFormat = properties.colorFormat; in decode()
539 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in decode()
761 if (mProperties.colorFormat != CodecCapabilities.COLOR_FormatYUV420Planar) { in getInputFrame()
1292 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in encode()
1300 ". Color format: 0x" + Integer.toHexString(properties.colorFormat)+ " : " + in encode()
[all …]
DImageReaderDecoderTest.java237 int colorFormat = COLOR_FormatYUV420Flexible; in videoDecode() local
238 videoDecode(asset, imageFormat, colorFormat, mode, checkSwirl); in videoDecode()
245 MediaAsset asset, int imageFormat, int colorFormat, int mode, boolean checkSwirl) { in videoDecode() argument
285 mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in videoDecode()
DMediaCodecTest.java310 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors() local
311 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in testCreateInputSurfaceErrors()
1399 int colorFormat = capabilities.colorFormats[i]; in findNonSurfaceColorFormat() local
1400 if (colorFormat != MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface) { in findNonSurfaceColorFormat()
1401 return colorFormat; in findNonSurfaceColorFormat()
DDecoderTest.java1605 int colorFormat = oformat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in decodeWithChecks() local
1608 dochecksum = isRecognizedFormat(colorFormat); // only checksum known raw in decodeWithChecks()
1610 Log.d(TAG, "checksum fmt: " + colorFormat + " dim " + width + "x" + height); in decodeWithChecks()
1674 private static boolean isRecognizedFormat(int colorFormat) { in isRecognizedFormat() argument
1676 switch (colorFormat) { in isRecognizedFormat()
DAdaptivePlaybackTest.java958 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT);
959 mDoChecksum = isRecognizedFormat(colorFormat);
1153 private static boolean isRecognizedFormat(int colorFormat) {
1154 switch (colorFormat) {
DVideoEncoderTest.java211 String videoEncName, String outMime, int width, int height, int colorFormat) in initCodecsAndConfigureEncoder() argument
213 mDecFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()
256 outFmt.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java1045 int colorFormat = mDecOutputFormat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in runDecoder() local
1046 if (colorFormat == CodecCapabilities.COLOR_FormatYUV420SemiPlanar in runDecoder()
1047 || colorFormat == CodecCapabilities.COLOR_FormatYUV420Planar) { in runDecoder()
1048 mDstColorFormat = colorFormat; in runDecoder()
1052 Integer.toHexString(colorFormat) + ", using FlexYUV"); in runDecoder()