Home
last modified time | relevance | path

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

/cts/tests/tests/media/libmediandkjni/
Dnative_media_source.h38 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,
Dnative_media_decoder_source.cpp28 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()
Dnative_media_encoder_jni.cpp262 int32_t w, int32_t h, int32_t colorFormat, in createMediaFormat() argument
274 AMediaFormat_setInt32(config.get(), AMEDIAFORMAT_KEY_COLOR_FORMAT, colorFormat); in createMediaFormat()
Dnative-media-jni.cpp1059 jint colorFormat, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure() argument
1089 jint values[] = {width, height, colorFormat, bitRate, frameRate, iFrameInterval}; in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure()
/cts/tests/tests/media/src/android/media/cts/
DEncodeDecodeTest.java431 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer() local
432 if (VERBOSE) Log.d(TAG, "found colorFormat: " + colorFormat); in encodeDecodeVideoFromBuffer()
436 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromBuffer()
450 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
493 int colorFormat = MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface; in encodeDecodeVideoFromSurfaceToSurface() local
497 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromSurfaceToSurface()
565 int colorFormat = capabilities.colorFormats[i]; in selectColorFormat() local
566 if (isRecognizedFormat(colorFormat)) { in selectColorFormat()
567 return colorFormat; in selectColorFormat()
578 private static boolean isRecognizedFormat(int colorFormat) { in isRecognizedFormat() argument
[all …]
DNdkMediaCodec.java62 int colorFormat, in AMediaCodecConfigure() argument
108 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure() local
126 colorFormat, in configure()
DVpxCodecTestBase.java98 CodecProperties(String codecName, int colorFormat) { in CodecProperties() argument
100 this.colorFormat = colorFormat; in CodecProperties()
103 public final int colorFormat; // Color format supported by codec. field in VpxCodecTestBase.CodecProperties
152 for (int colorFormat: capabilities.colorFormats) { in getVpxCodecProperties()
153 Log.v(TAG, " Color: 0x" + Integer.toHexString(colorFormat)); in getVpxCodecProperties()
550 int frameColorFormat = properties.colorFormat; in decode()
551 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in decode()
795 if (mProperties.colorFormat != CodecCapabilities.COLOR_FormatYUV420Planar) { in getInputFrame()
1331 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); in encode()
1339 ". Color format: 0x" + Integer.toHexString(properties.colorFormat)+ " : " + in encode()
[all …]
DImageReaderDecoderTest.java241 int colorFormat = COLOR_FormatYUV420Flexible; in videoDecode() local
242 videoDecode(asset, imageFormat, colorFormat, mode, checkSwirl); in videoDecode()
249 MediaAsset asset, int imageFormat, int colorFormat, int mode, boolean checkSwirl) { in videoDecode() argument
289 mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in videoDecode()
DMediaCodecTest.java366 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors() local
367 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in testCreateInputSurfaceErrors()
1716 int colorFormat = capabilities.colorFormats[i]; in findNonSurfaceColorFormat() local
1717 if (colorFormat != MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface) { in findNonSurfaceColorFormat()
1718 return colorFormat; in findNonSurfaceColorFormat()
DAdaptivePlaybackTest.java997 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT);
998 mDoChecksum = isRecognizedFormat(colorFormat);
1194 private static boolean isRecognizedFormat(int colorFormat) {
1195 switch (colorFormat) {
DVideoEncoderTest.java250 int colorFormat) throws IOException { in initCodecsAndConfigureEncoder() argument
251 mDecFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()
279 outFmt.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in initCodecsAndConfigureEncoder()
DDecoderTest.java2777 int colorFormat = oformat.getInteger(MediaFormat.KEY_COLOR_FORMAT);
2780 dochecksum = isRecognizedFormat(colorFormat); // only checksum known raw
2782 Log.d(TAG, "checksum fmt: " + colorFormat + " dim " + width + "x" + height);
2864 private static boolean isRecognizedFormat(int colorFormat) {
2866 switch (colorFormat) {
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1268 int colorFormat = mDecOutputFormat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in runDecoder() local
1269 if (colorFormat == CodecCapabilities.COLOR_FormatYUV420SemiPlanar in runDecoder()
1270 || colorFormat == CodecCapabilities.COLOR_FormatYUV420Planar) { in runDecoder()
1271 mDstColorFormat = colorFormat; in runDecoder()
1275 Integer.toHexString(colorFormat) + ", using FlexYUV"); in runDecoder()