Home
last modified time | relevance | path

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

12

/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderSurfaceTest.java99 int colorFormat, boolean isOutputToneMapped, boolean usePersistentSurface, in CodecEncoderSurfaceTest() argument
102 colorFormat, isOutputToneMapped, usePersistentSurface, allTestParams); in CodecEncoderSurfaceTest()
179 for (int colorFormat : colorFormats) { in input()
192 testArgs[4] = colorFormat; // color format in input()
196 colorFormatToString(colorFormat, 8), in input()
212 for (int colorFormat : colorFormatsHbd) { in input()
227 if (toneMap && (colorFormat == COLOR_FormatYUVP010)) { in input()
228 colorFormat = COLOR_FormatYUV420Flexible; in input()
230 testArgs[4] = colorFormat; // color format in input()
234 colorFormatToString(colorFormat, toneMap ? 8 : 10), in input()
[all …]
DCodecEncoderTest.java390 int colorFormat = findByteBufferColorFormat(mCodecName, mMediaType); in testSimpleEncodeNative() local
392 colorFormat != -1); in testSimpleEncodeNative()
393 format = mActiveEncCfg.getBuilder().setColorFormat(colorFormat).build().getFormat(); in testSimpleEncodeNative()
535 int colorFormat = findByteBufferColorFormat(mCodecName, mMediaType); in testReconfigureNative() local
537 colorFormat != -1); in testReconfigureNative()
538 format = mEncCfgParams[0].getBuilder().setColorFormat(colorFormat).build().getFormat(); in testReconfigureNative()
540 reconfigFormat = mEncCfgParams[1].getBuilder().setColorFormat(colorFormat).build() in testReconfigureNative()
601 int colorFormat = findByteBufferColorFormat(mCodecName, mMediaType); in testOnlyEosNative() local
603 colorFormat != -1); in testOnlyEosNative()
604 format = mActiveEncCfg.getBuilder().setColorFormat(colorFormat).build().getFormat(); in testOnlyEosNative()
[all …]
DVideoEncoderTest.java76 int width, int height, int frameRate, int colorFormat, int maxBFrames) { in getVideoEncoderCfgParams() argument
83 .setColorFormat(colorFormat) in getVideoEncoderCfgParams()
85 if (colorFormat == COLOR_FormatYUVP010) { in getVideoEncoderCfgParams()
99 int colorFormat = (int) arg[5]; in prepareTestArgs() local
111 colorFormat, maxBframe); in prepareTestArgs()
114 height, colorFormatToString(colorFormat, -1), maxBframe); in prepareTestArgs()
DCodecDecoderTest.java349 String testFile, String refFile, int colorFormat, float rmsError, long checksum, in nativeTestSimpleDecode() argument
432 int colorFormat = mIsAudio ? 0 : format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testSimpleDecode() local
434 mRefFile, colorFormat, mRmsError, ref.getCheckSumBuffer(), mTestConfig); in testSimpleDecode()
564 String testFile, int colorFormat, StringBuilder retMsg); in nativeTestFlush() argument
573 int colorFormat = 0; in testFlushNative() local
577 colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testFlushNative()
580 colorFormat, mTestConfig); in testFlushNative()
774 int colorFormat, StringBuilder retMsg); in nativeTestOnlyEos() argument
783 int colorFormat = 0; in testOnlyEosNative() local
787 colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testOnlyEosNative()
[all …]
DEncoderColorAspectsTest.java107 int[] ranges, int[] standards, int[] transfers, int colorFormat, int bitDepth) { in prepareArgsList() argument
129 .setColorFormat(colorFormat) in prepareArgsList()
131 if ((colorFormat == COLOR_FormatSurface && bitDepth == 10) in prepareArgsList()
132 || colorFormat == COLOR_FormatYUVP010) { in prepareArgsList()
142 colorFormatToString(colorFormat, bitDepth), in prepareArgsList()
DEncoderLevelTest.java73 int width, int height, int frameRate, int colorFormat, int[] profiles, int level) { in getVideoEncoderCfgParams() argument
83 .setColorFormat(colorFormat) in getVideoEncoderCfgParams()
DEncoderProfileLevelTest.java122 private static List<Object[]> prepareTestArgs(Object[] arg, int[] profiles, int colorFormat) { in prepareTestArgs() argument
161 colorFormat, maxBframe, profiles, level); in prepareTestArgs()
163 width, height, fps, colorFormatToString(colorFormat, -1), in prepareTestArgs()
179 int width, int height, int frameRate, int colorFormat, int maxBframe, int[] profiles, in getVideoEncoderCfgParams() argument
198 .setColorFormat(colorFormat) in getVideoEncoderCfgParams()
DEncodeDecodeAccuracyTest.java185 int colorFormat, int bitDepth) { in getVideoEncoderCfgParams() argument
194 .setColorFormat(colorFormat) in getVideoEncoderCfgParams()
196 if (colorFormat == COLOR_FormatSurface && bitDepth == 10) { in getVideoEncoderCfgParams()
DCodecDecoderDetachedSurfaceTest.java158 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in setUp() local
162 colorFormat == COLOR_FormatYUVP010 ? ImageFormat.YCBCR_P010 : in setUp()
DCodecDecoderSurfaceTest.java587 String testFile, String refFile, int colorFormat, float rmsError, long checksum, in nativeTestSimpleDecode() argument
608 String testFile, int colorFormat, StringBuilder retMsg); in nativeTestFlush() argument
/cts/tests/media/jni/
DNativeCodecDecoderTestCommon.cpp48 bool setUpExtractor(const char* srcFile, int colorFormat);
66 int colorFormat, float rmsError, uLong checksum);
67 bool testFlush(const char* decoder, const char* testFile, int colorFormat);
68 bool testOnlyEos(const char* decoder, const char* testFile, int colorFormat);
69 bool testSimpleDecodeQueueCSD(const char* decoder, const char* testFile, int colorFormat);
109 bool CodecDecoderTest::setUpExtractor(const char* srcFile, int colorFormat) { in setUpExtractor() argument
124 mBytesPerSample = (colorFormat == COLOR_FormatYUVP010) ? 2 : 1; in setUpExtractor()
134 colorFormat); in setUpExtractor()
357 const char* refFile, int colorFormat, float rmsError, in testSimpleDecode() argument
359 if (!setUpExtractor(testFile, colorFormat)) return false; in testSimpleDecode()
[all …]
DNativeCodecEncoderSurfaceTest.cpp63 bool setUpExtractor(const char* srcFile, const char* srcMediaType, int colorFormat);
87 const char* srcMediaType, const char* muxOutPath, int colorFormat,
147 int colorFormat) { in setUpExtractor() argument
165 AMediaFormat_setInt32(currFormat, AMEDIAFORMAT_KEY_COLOR_FORMAT, colorFormat); in setUpExtractor()
561 const char* muxOutPath, int colorFormat, in testSimpleEncode() argument
563 RETURN_IF_FALSE(setUpExtractor(srcPath, srcMediaType, colorFormat), in testSimpleEncode()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeDecodeTest.java338 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer() local
339 if (VERBOSE) Log.d(TAG, "found colorFormat: " + colorFormat); in encodeDecodeVideoFromBuffer()
343 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromBuffer()
357 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
392 int colorFormat = MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface; in encodeDecodeVideoFromSurfaceToSurface() local
396 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromSurfaceToSurface()
463 int colorFormat = capabilities.colorFormats[i]; in selectColorFormat() local
464 if (isRecognizedFormat(colorFormat)) { in selectColorFormat()
465 return colorFormat; in selectColorFormat()
476 private static boolean isRecognizedFormat(int colorFormat) { in isRecognizedFormat() argument
[all …]
DVideoCodecTestBase.java99 CodecProperties(String codecName, int colorFormat) { in CodecProperties() argument
101 this.colorFormat = colorFormat; in CodecProperties()
104 public final int colorFormat; // Color format supported by codec. field in VideoCodecTestBase.CodecProperties
140 for (int colorFormat: capabilities.colorFormats) { in getVideoCodecProperties()
141 Log.v(TAG, " Color: 0x" + Integer.toHexString(colorFormat)); in getVideoCodecProperties()
616 int frameColorFormat = properties.colorFormat; in decode()
617 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in decode()
875 if (mProperties.colorFormat != CodecCapabilities.COLOR_FormatYUV420Planar) { in getInputFrame()
1459 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in encode()
1472 ". Color format: 0x" + Integer.toHexString(properties.colorFormat)+ " : " + in encode()
[all …]
DMediaCodecTest.java588 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors() local
589 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in testCreateInputSurfaceErrors()
1986 int colorFormat = capabilities.colorFormats[i]; in findNonSurfaceColorFormat() local
1987 if (colorFormat != MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface) { in findNonSurfaceColorFormat()
1988 return colorFormat; in findNonSurfaceColorFormat()
DDecodeEditEncodeTest.java177 int colorFormat, boolean isEncoder) { in hasSupportForColorFormat() argument
188 if (c == colorFormat) { in hasSupportForColorFormat()
/cts/tests/media/common/src/android/mediav2/common/cts/
DRawResource.java82 public Builder setColorFormat(int colorFormat) { in setColorFormat() argument
83 this.mColorFormat = colorFormat; in setColorFormat()
DCodecEncoderTestBase.java118 int colorFormat = -1; in findByteBufferColorFormat() local
123 colorFormat = c; in findByteBufferColorFormat()
128 return colorFormat; in findByteBufferColorFormat()
282 public static String colorFormatToString(int colorFormat, int bitDepth) { in colorFormatToString() argument
283 switch (colorFormat) { in colorFormatToString()
DEncoderConfigParams.java393 public Builder setColorFormat(int colorFormat) { in setColorFormat() argument
394 this.mColorFormat = colorFormat; in setColorFormat()
/cts/tests/tests/media/common/src/android/media/cts/
DNdkMediaCodec.java68 int colorFormat, in AMediaCodecConfigure() argument
125 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure() local
161 colorFormat, in configure()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DImageReaderDecoderTest.java330 boolean isColorFormatSupported(CodecCapabilities caps, int colorFormat) { in isColorFormatSupported() argument
332 if (c == colorFormat) { in isColorFormatSupported()
342 int colorFormat = COLOR_FormatYUV420Flexible; in decodeTest() local
349 colorFormat = COLOR_FormatYUV420Flexible; in decodeTest()
352 colorFormat = COLOR_FormatYUVP010; in decodeTest()
366 mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in decodeTest()
378 assumeTrue("Color format " + colorFormat + " is not supported by " + mCodecName, in decodeTest()
379 isColorFormatSupported(caps, colorFormat)); in decodeTest()
DAdaptivePlaybackTest.java1055 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT);
1056 mDoChecksum = isRecognizedFormat(colorFormat);
1284 private static boolean isRecognizedFormat(int colorFormat) {
1285 switch (colorFormat) {
/cts/tests/tests/media/common/jni/
DNdkMediaCodec-jni.cpp85 jint colorFormat, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure() argument
127 jint values[] = {width, height, colorFormat, bitRate, frameRate, iFrameInterval, lowLatency, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java978 int colorFormat = mDecOutputFormat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in runDecoder() local
979 if (colorFormat == CodecCapabilities.COLOR_FormatYUV420SemiPlanar in runDecoder()
980 || colorFormat == CodecCapabilities.COLOR_FormatYUV420Planar) { in runDecoder()
981 mDstColorFormat = colorFormat; in runDecoder()
985 Integer.toHexString(colorFormat) + ", using FlexYUV"); in runDecoder()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java336 int colorFormat) throws IOException { in initCodecsAndConfigureEncoder() argument
337 mDecFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()
365 outFmt.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()

12