Home
last modified time | relevance | path

Searched refs:maxInputSize (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/codec2/sfplugin/tests/
DMediaCodec_sanity_test.cpp123 int32_t maxInputSize; in TEST_P() local
124 ASSERT_TRUE(ifmt->findInt32("max-input-size", &maxInputSize)); in TEST_P()
126 EXPECT_EQ(maxInputSize, InputSize); in TEST_P()
128 EXPECT_GE(maxInputSize, 1 << 20); // 1 MB in TEST_P()
135 EXPECT_GE(buf->size(), (size_t)maxInputSize); in TEST_P()
136 EXPECT_LE(buf->size(), (size_t)maxInputSize + 4096u); in TEST_P()
152 int32_t maxInputSize; in TEST_P() local
153 ASSERT_TRUE(ifmt->findInt32("max-input-size", &maxInputSize)); in TEST_P()
155 EXPECT_EQ(maxInputSize, InputSize); in TEST_P()
157 EXPECT_GE(maxInputSize, 1 << 20); // 1 MB in TEST_P()
[all …]
/frameworks/av/cmds/stagefright/
Daudioloop.cpp137 int32_t maxInputSize; in main() local
138 if (source->getFormat()->findInt32(kKeyMaxInputSize, &maxInputSize)) { in main()
139 meta->setInt32("max-input-size", maxInputSize); in main()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DEncoder.java139 int maxInputSize = AUDIO_ENCODE_DEFAULT_MAX_INPUT_SIZE; in encode() local
142 maxInputSize = format.getInteger(MediaFormat.KEY_MAX_INPUT_SIZE); in encode()
145 if (mFrameSize > maxInputSize && maxInputSize > 0) { in encode()
146 mFrameSize = maxInputSize; in encode()
/frameworks/av/media/codec2/sfplugin/
DCCodec.cpp932 C2StreamMaxBufferSizeInfo::input maxInputSize(0u, 0u); in configure() local
938 { &usage, &maxInputSize, &prepend }, in configure()
970 if (maxInputSize.value == 0) { in configure()
972 maxInputSize.value = encoder ? 16384 : 4096; in configure()
974 maxInputSize.value = 1048576u; in configure()
979 if ((config->mDomain & Config::IS_DECODER) && maxInputSize.value > 0) { in configure()
982 if (csd && csd->size() > maxInputSize.value) { in configure()
983 maxInputSize.value = csd->size(); in configure()
992 if ((uint32_t)clientInputSize < maxInputSize.value) { in configure()
995 "recommendation.", clientInputSize, maxInputSize.value); in configure()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2ReprocessCaptureTest.java228 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input); in testReprocessingMaxSizes() local
234 testReprocess(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes()
238 testReprocessAbort(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes()
242 testReprocessTimestamps(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes()
246 testReprocessJpegExif(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize); in testReprocessingMaxSizes()
249 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat, in testReprocessingMaxSizes()
/frameworks/av/media/libstagefright/filters/
DMediaFilter.cpp535 int32_t maxInputSize; in onConfigureComponent() local
536 if (msg->findInt32("max-input-size", &maxInputSize) in onConfigureComponent()
537 && (size_t)maxInputSize > mMaxInputSize) { in onConfigureComponent()
538 mMaxInputSize = maxInputSize; in onConfigureComponent()
/frameworks/av/media/libstagefright/
DUtils.cpp1097 int32_t maxInputSize; in convertMetaDataToMessage() local
1098 if (meta->findInt32(kKeyMaxInputSize, &maxInputSize)) { in convertMetaDataToMessage()
1099 msg->setInt32("max-input-size", maxInputSize); in convertMetaDataToMessage()
1852 int32_t maxInputSize; in convertMessageToMetaData() local
1853 if (msg->findInt32("max-input-size", &maxInputSize)) { in convertMessageToMetaData()
1854 meta->setInt32(kKeyMaxInputSize, maxInputSize); in convertMessageToMetaData()
DACodec.cpp2326 int32_t maxInputSize; in configureCodec() local
2327 if (msg->findInt32("max-input-size", &maxInputSize)) { in configureCodec()
2328 err = setMinBufferSize(kPortIndexInput, (size_t)maxInputSize); in configureCodec()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp1631 int32_t maxInputSize = 64 << 10; in addFlacMetadata() local
1636 maxInputSize = streamInfo.max_framesize; in addFlacMetadata()
1637 if (maxInputSize == 0) { in addFlacMetadata()
1647 maxInputSize = ((streamInfo.bits_per_sample + 7) / 8) in addFlacMetadata()
1651 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, maxInputSize); in addFlacMetadata()
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp1194 int32_t maxInputSize; in createAudioSource() local
1196 kKeyMaxInputSize, &maxInputSize)); in createAudioSource()
1198 format->setInt32("max-input-size", maxInputSize); in createAudioSource()
/frameworks/base/apex/media/framework/java/android/media/
DMediaParser.java1901 setOptionalMediaFormatInt(result, MediaFormat.KEY_MAX_INPUT_SIZE, format.maxInputSize); in toMediaFormat()