Home
last modified time | relevance | path

Searched refs:trackFormat (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp454 AMediaFormat *trackFormat = AMediaFormat_new(); in TEST_P() local
455 ASSERT_NE(trackFormat, nullptr) << "AMediaFormat_new returned null AMediaformat"; in TEST_P()
471 status = track->getFormat(trackFormat); in TEST_P()
476 AMediaFormat_getString(trackFormat, AMEDIAFORMAT_KEY_MIME, &trackMime); in TEST_P()
487 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, in TEST_P()
489 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, in TEST_P()
498 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_WIDTH, &trackWidth)); in TEST_P()
499 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_HEIGHT, &trackHeight)); in TEST_P()
508 AMediaFormat_delete(trackFormat); in TEST_P()
614 AMediaFormat *trackFormat = AMediaFormat_new(); in TEST_P() local
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DMuxer.java39 public int setUpMuxer(Context context, int outputFormat, MediaFormat trackFormat) { in setUpMuxer() argument
44 int trackIndex = mMuxer.addTrack(trackFormat); in setUpMuxer()
DExtractor.java112 MediaFormat trackFormat = mExtractor.getTrackFormat(trackId); in selectExtractorTrack() local
113 mDurationUs = trackFormat.getLong(MediaFormat.KEY_DURATION); in selectExtractorTrack()
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp441 sp<AMessage> trackFormat; in AMediaExtractor_getSampleFormat() local
443 err = ex->mImpl->getTrackFormat(trackIndex, &trackFormat); in AMediaExtractor_getSampleFormat()
445 && trackFormat != NULL in AMediaExtractor_getSampleFormat()
446 && trackFormat->findString(AMEDIAFORMAT_KEY_MIME, &mime)) { in AMediaExtractor_getSampleFormat()