Home
last modified time | relevance | path

Searched refs:AMediaFormat_getInt32 (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/av/media/module/libmediaformatshaper/
DVQApply.cpp60 if (AMediaFormat_getInt32(inFormat, AMEDIAFORMAT_KEY_BITRATE_MODE, &bitRateMode) in VQApply()
87 (void) AMediaFormat_getInt32(inFormat, AMEDIAFORMAT_KEY_WIDTH, &width); in VQApply()
89 (void) AMediaFormat_getInt32(inFormat, AMEDIAFORMAT_KEY_HEIGHT, &height); in VQApply()
132 (void) AMediaFormat_getInt32(inFormat, AMEDIAFORMAT_KEY_BIT_RATE, &bitrateConfiguredTmp); in VQApply()
174 AMediaFormat_getInt32(inFormat, AMEDIAFORMAT_VIDEO_QP_MAX, &qpChosen); in VQApply()
178 AMediaFormat_getInt32(inFormat, AMEDIAFORMAT_VIDEO_QP_MAX, &value); in VQApply()
220 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_I_MAX, &value) in hasQpMaxPerFrameType()
221 || AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_I_MIN, &value)) { in hasQpMaxPerFrameType()
224 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_P_MAX, &value) in hasQpMaxPerFrameType()
225 || AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_P_MIN, &value)) { in hasQpMaxPerFrameType()
[all …]
/frameworks/av/media/tests/benchmark/tests/
DEncoderTest.cpp110 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_WIDTH, &encParams.width)); in TEST_P()
111 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_HEIGHT, &encParams.height)); in TEST_P()
112 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_FRAME_RATE, &encParams.frameRate); in TEST_P()
113 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, &encParams.bitrate); in TEST_P()
122 AMediaFormat_getInt32(decoderFormat, AMEDIAFORMAT_KEY_COLOR_FORMAT, in TEST_P()
124 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_PROFILE, &encParams.profile); in TEST_P()
125 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_LEVEL, &encParams.level); in TEST_P()
127 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, in TEST_P()
129 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, in TEST_P()
/frameworks/av/media/ndk/tests/
DNdkMediaFormat_test.cpp50 EXPECT_TRUE(AMediaFormat_getInt32(fmt1, "five", &i32)); in TEST()
58 EXPECT_FALSE(AMediaFormat_getInt32(nullptr, "whatever", &i32)); in TEST()
59 EXPECT_FALSE(AMediaFormat_getInt32(fmt1, nullptr, &i32)); in TEST()
176 EXPECT_FALSE(AMediaFormat_getInt32(fmt1, "five", &i32)); in TEST()
206 EXPECT_FALSE(AMediaFormat_getInt32(fmt1, "vanishing", &i32)); in TEST()
207 EXPECT_TRUE(AMediaFormat_getInt32(fmt2, "vanishing", &i32)); in TEST()
209 EXPECT_FALSE(AMediaFormat_getInt32(fmt2, "vanishing", &i32)); in TEST()
/frameworks/av/media/module/extractors/tests/
DExtractorUnitTest.cpp367 AMediaFormat_getInt32(metaData, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, &isSync); in getSeekablePoints()
498 ASSERT_TRUE(AMediaFormat_getInt32(extractorFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, in TEST_P()
500 ASSERT_TRUE(AMediaFormat_getInt32(extractorFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, in TEST_P()
502 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, in TEST_P()
504 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, in TEST_P()
511 ASSERT_TRUE(AMediaFormat_getInt32(extractorFormat, AMEDIAFORMAT_KEY_WIDTH, &exWidth)); in TEST_P()
512 ASSERT_TRUE(AMediaFormat_getInt32(extractorFormat, AMEDIAFORMAT_KEY_HEIGHT, &exHeight)); in TEST_P()
513 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_WIDTH, &trackWidth)); in TEST_P()
514 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_HEIGHT, &trackHeight)); in TEST_P()
915 ASSERT_TRUE(AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, in TEST_P()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/
DNdkCommon.cpp99 if (AMediaFormat_getInt32(format, "android._is-hdr", &isHdr)) { in VideoIsHdr()
108 !AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_COLOR_TRANSFER, &transfer)) { in VideoIsHdr()
113 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_COLOR_TRANSFER, &transfer)) { in VideoIsHdr()
DVideoTrackTranscoder.cpp193 if (AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_WIDTH, &width) && (width > 0) && in getDefaultOperatingRate()
194 AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_HEIGHT, &height) && (height > 0)) { in getDefaultOperatingRate()
225 if (!AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_BIT_RATE, &mConfiguredBitrate)) { in configureDestinationFormat()
245 !AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_OPERATING_RATE, &tmpi)) { in configureDestinationFormat()
361 supported = AMediaFormat_getInt32(inputFormat, in configureDestinationFormat()
552 if (AMediaFormat_getInt32(mSourceFormat.get(), AMEDIAFORMAT_KEY_SAR_WIDTH, &sarWidth) && in updateTrackFormat()
554 AMediaFormat_getInt32(mSourceFormat.get(), AMEDIAFORMAT_KEY_SAR_HEIGHT, &sarHeight) && in updateTrackFormat()
561 if (AMediaFormat_getInt32(mSourceFormat.get(), AMEDIAFORMAT_KEY_DISPLAY_WIDTH, &displayWidth) && in updateTrackFormat()
563 AMediaFormat_getInt32(mSourceFormat.get(), AMEDIAFORMAT_KEY_DISPLAY_HEIGHT, in updateTrackFormat()
576 if (AMediaFormat_getInt32(mSourceFormat.get(), AMEDIAFORMAT_KEY_ROTATION, &rotation) && in updateTrackFormat()
DMediaSampleWriter.cpp39 if (AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_ROTATION, &rotation) && in addTrack()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp40 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &sampleRate); in createCodec2Component()
41 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &numChannels); in createCodec2Component()
49 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_WIDTH, &width); in createCodec2Component()
50 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_HEIGHT, &height); in createCodec2Component()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DC2Encoder.cpp41 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &mSampleRate)) { in createCodec2Component()
45 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &numChannels)) { in createCodec2Component()
55 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_WIDTH, &mWidth)) { in createCodec2Component()
59 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_HEIGHT, &mHeight)) { in createCodec2Component()
66 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_FRAME_RATE, &mFrameRate) || in createCodec2Component()
DEncoder.cpp233 AMediaFormat_getInt32(inputFormat, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, &mParams.maxFrameSize); in encode()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DHdrTranscodeTests.cpp108 EXPECT_TRUE(AMediaFormat_getInt32(format.get(), AMEDIAFORMAT_KEY_COLOR_STANDARD, &value)); in validateOutput()
111 EXPECT_TRUE(AMediaFormat_getInt32(format.get(), AMEDIAFORMAT_KEY_COLOR_TRANSFER, &value)); in validateOutput()
141 AMediaFormat_getInt32(inputFormat, in hdrToSdrConversionSupported()
/frameworks/av/media/module/metadatautils/test/
DMetaDataUtilsTest.cpp218 status = AMediaFormat_getInt32(csdData, AMEDIAFORMAT_KEY_WIDTH, &avcWidth); in TEST_P()
223 status = AMediaFormat_getInt32(csdData, AMEDIAFORMAT_KEY_HEIGHT, &avcHeight); in TEST_P()
296 status = AMediaFormat_getInt32(csdData, AMEDIAFORMAT_KEY_SAMPLE_RATE, &sampleRate); in TEST_P()
301 status = AMediaFormat_getInt32(csdData, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &channelCount); in TEST_P()
424 status = AMediaFormat_getInt32(fileMeta, key.c_str(), &numChannelFound); in TEST_P()
431 status = AMediaFormat_getInt32(fileMeta, "loop", &loopFound); in TEST_P()
/frameworks/base/media/jni/soundpool/
DSound.cpp178 if (!AMediaFormat_getInt32( in decode()
180 !AMediaFormat_getInt32( in decode()
185 if (AMediaFormat_getInt32(format.get(), AMEDIAFORMAT_KEY_CHANNEL_MASK, in decode()
/frameworks/av/media/libmediaplayerservice/tests/stagefrightRecorder/
DStagefrightRecorderTest.cpp228 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &channelCount); in validateOutput()
230 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &sampleRate); in validateOutput()
232 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, &bitRate); in validateOutput()
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTranscoderBenchmark.cpp172 if (AMediaFormat_getInt32(srcFormat, AMEDIAFORMAT_KEY_FRAME_COUNT, &frameCount)) { in TranscodeMediaFile()
176 if (!AMediaFormat_getInt32(srcFormat, AMEDIAFORMAT_KEY_WIDTH, &width)) { in TranscodeMediaFile()
180 if (!AMediaFormat_getInt32(srcFormat, AMEDIAFORMAT_KEY_HEIGHT, &height)) { in TranscodeMediaFile()
195 AMediaFormat_getInt32(dstFormat, AMEDIAFORMAT_KEY_BIT_RATE, &targetBitrate); in TranscodeMediaFile()
DMediaSampleReaderBenchmark.cpp75 if (AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_FRAME_COUNT, &frameCount)) { in ReadMediaSamples()
/frameworks/av/media/module/extractors/wav/
DWAVExtractor.cpp382 CHECK(AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, (int32_t*) &mSampleRate)); in WAVSource()
383 CHECK(AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, (int32_t*) &mNumChannels)); in WAVSource()
384 … CHECK(AMediaFormat_getInt32(mMeta, AMEDIAFORMAT_KEY_BITS_PER_SAMPLE, (int32_t*) &mBitsPerSample)); in WAVSource()
/frameworks/av/media/module/extractors/mp4/
DMPEG4Extractor.cpp531 AMediaFormat_getInt32(track->meta, AMEDIAFORMAT_KEY_SAMPLE_RATE, &samplerate)) { in getTrackMetaData()
1085 if (!AMediaFormat_getInt32(mLastTrack->meta, in parseChunk()
1477 if (!AMediaFormat_getInt32(mLastTrack->meta, in parseChunk()
2236 if (!AMediaFormat_getInt32(mLastTrack->meta, in parseChunk()
2238 !AMediaFormat_getInt32(mLastTrack->meta, in parseChunk()
2284 if (AMediaFormat_getInt32(mLastTrack->meta, in parseChunk()
4206 if (!AMediaFormat_getInt32(mLastTrack->meta, in parseColorInfo()
4473 if (AMediaFormat_getInt32(track->meta, AMEDIAFORMAT_KEY_TRACK_ID, &trackId)) { in getTrack()
5040 CHECK(AMediaFormat_getInt32(mLastTrack->meta, AMEDIAFORMAT_KEY_SAMPLE_RATE, &prevSampleRate)); in updateAudioTrackInfoFromESDS_MPEG4Audio()
5050 CHECK(AMediaFormat_getInt32(mLastTrack->meta, in updateAudioTrackInfoFromESDS_MPEG4Audio()
[all …]
/frameworks/av/media/module/libmediatranscoding/
DTranscodingLogger.cpp80 if (fmt == nullptr || !AMediaFormat_getInt32(fmt, key, &value)) { in getInt32()
/frameworks/av/media/ndk/include/media/
DNdkMediaFormat.h75 bool AMediaFormat_getInt32(AMediaFormat*, const char *name, int32_t *out) __INTRODUCED_IN(21);
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp368 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &params.channelCount)) in extract()
370 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &params.sampleRate)) in extract()
373 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_WIDTH, &params.width)) in extract()
375 ASSERT_TRUE(AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_HEIGHT, &params.height)) in extract()
/frameworks/libs/native_bridge_support/android_api/libmediandk/
Dstubs_arm64.cc159 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getInt32);
469 INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getInt32); in init_stub_library()
Dstubs_riscv64.cc159 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getInt32);
469 INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getInt32); in init_stub_library()
Dstubs_arm.cc159 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getInt32);
469 INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getInt32); in init_stub_library()
/frameworks/av/media/ndk/
Dlibmediandk.map.txt285 AMediaFormat_getInt32;

12