Home
last modified time | relevance | path

Searched refs:AMediaFormat_setInt32 (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/av/media/module/libmediaformatshaper/
DVQApply.cpp102 AMediaFormat_setInt32(inFormat, "android._encoding-quality-level", 0); in VQApply()
115 AMediaFormat_setInt32(inFormat, "android._encoding-quality-level", qualityTarget); in VQApply()
120 AMediaFormat_setInt32(inFormat, "android._encoding-quality-level", 0); in VQApply()
198 AMediaFormat_setInt32(inFormat, AMEDIAFORMAT_VIDEO_QP_MAX, qpChosen); in VQApply()
210 AMediaFormat_setInt32(inFormat, AMEDIAFORMAT_KEY_BIT_RATE, (int32_t)bitrateChosen); in VQApply()
271 AMediaFormat_setInt32(format, AMEDIAFORMAT_VIDEO_QP_I_MAX, value); in qpSpreadMaxPerFrameType()
278 AMediaFormat_setInt32(format, AMEDIAFORMAT_VIDEO_QP_P_MAX, value); in qpSpreadMaxPerFrameType()
285 AMediaFormat_setInt32(format, AMEDIAFORMAT_VIDEO_QP_B_MAX, value); in qpSpreadMaxPerFrameType()
300 AMediaFormat_setInt32(format, AMEDIAFORMAT_VIDEO_QP_I_MIN, setI); in qpSpreadMinPerFrameType()
305 AMediaFormat_setInt32(format, AMEDIAFORMAT_VIDEO_QP_P_MIN, setP); in qpSpreadMinPerFrameType()
[all …]
/frameworks/av/media/ndk/fuzzer/
Dndk_mediamuxer_fuzzer.cpp49 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, fdp.ConsumeIntegral<int32_t>()); in getSampleAudioFormat()
50 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, fdp.ConsumeIntegral<int32_t>()); in getSampleAudioFormat()
51 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, fdp.ConsumeIntegral<int32_t>()); in getSampleAudioFormat()
59 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, fdp.ConsumeIntegral<int32_t>()); in getSampleVideoFormat()
60 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_WIDTH, fdp.ConsumeIntegral<int32_t>()); in getSampleVideoFormat()
61 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_HEIGHT, fdp.ConsumeIntegral<int32_t>()); in getSampleVideoFormat()
62 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_FRAME_RATE, fdp.ConsumeIntegral<int32_t>()); in getSampleVideoFormat()
66 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_COLOR_FORMAT, fdp.ConsumeIntegral<int32_t>()); in getSampleVideoFormat()
Dndk_sync_codec_fuzzer.cpp85 AMediaFormat_setInt32( in invokekSyncCodecAPIs()
Dndk_mediaformat_fuzzer.cpp204 AMediaFormat_setInt32(mediaFormat, name, in LLVMFuzzerTestOneInput()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp203 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_WIDTH, mParams.width); in encode()
204 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_HEIGHT, mParams.height); in encode()
205 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_FRAME_RATE, mParams.frameRate); in encode()
206 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_I_FRAME_INTERVAL, mParams.iFrameInterval); in encode()
207 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_BIT_RATE, mParams.bitrate); in encode()
208 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_COLOR_FORMAT, mParams.colorFormat); in encode()
210 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_PROFILE, mParams.profile); in encode()
211 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_LEVEL, mParams.level); in encode()
214 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, mParams.sampleRate); in encode()
215 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, mParams.numChannels); in encode()
[all …]
/frameworks/av/media/module/libmediatranscoding/tests/
DTranscodingLogger_tests.cpp99 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_WIDTH, kDefaultSrcWidth); in CreateSrcFormat()
100 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_HEIGHT, kDefaultSrcHeight); in CreateSrcFormat()
102 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_PROFILE, kDefaultSrcProfile); in CreateSrcFormat()
103 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_LEVEL, kDefaultSrcLevel); in CreateSrcFormat()
104 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_FRAME_RATE, kDefaultSrcFps); in CreateSrcFormat()
105 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_FRAME_COUNT, kDefaultSrcFrameCount); in CreateSrcFormat()
113 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_WIDTH, kDefaultDstWidth); in CreateDstFormat()
114 AMediaFormat_setInt32(fmt, AMEDIAFORMAT_KEY_HEIGHT, kDefaultDstHeight); in CreateDstFormat()
/frameworks/av/media/module/metadatautils/
DMetaDataUtils.cpp75 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_WIDTH, width); in MakeAVCCodecSpecificData()
76 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_HEIGHT, height); in MakeAVCCodecSpecificData()
78 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_SAR_WIDTH, sarWidth); in MakeAVCCodecSpecificData()
79 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_SAR_HEIGHT, sarHeight); in MakeAVCCodecSpecificData()
365 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_SAMPLE_RATE, sampleRate); in MakeAACCodecSpecificData()
366 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, channel_configuration); in MakeAACCodecSpecificData()
516 AMediaFormat_setInt32(fileMeta, AMEDIAFORMAT_KEY_LOOP, 1); in parseVorbisComment()
523 AMediaFormat_setInt32(fileMeta, kMap[j].mKey, hapticChannelCount); in parseVorbisComment()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/fuzzer/
Dmedia_transcoder_fuzzer.cpp126 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_PROFILE, mProfile); in getFormat()
127 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_LEVEL, mLevel); in getFormat()
128 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, mBitrate); in getFormat()
129 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_OPERATING_RATE, INT32_MAX); in getFormat()
130 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_PRIORITY, 1); in getFormat()
/frameworks/av/media/module/libmediatranscoding/transcoder/
DVideoTrackTranscoder.cpp233 AMediaFormat_setInt32(encoderFormat, AMEDIAFORMAT_KEY_BIT_RATE, mConfiguredBitrate); in configureDestinationFormat()
246 AMediaFormat_setInt32(encoderFormat, AMEDIAFORMAT_KEY_OPERATING_RATE, operatingRate); in configureDestinationFormat()
253 AMediaFormat_setInt32(encoderFormat, AMEDIAFORMAT_KEY_COLOR_FORMAT, kColorFormatSurface); in configureDestinationFormat()
257 AMediaFormat_setInt32(encoderFormat, AMEDIAFORMAT_KEY_ROTATION, 0); in configureDestinationFormat()
331 AMediaFormat_setInt32(decoderFormat.get(), in configureDestinationFormat()
337 AMediaFormat_setInt32(decoderFormat.get(), TBD_AMEDIACODEC_PARAMETER_KEY_ALLOW_FRAME_DROP, 0); in configureDestinationFormat()
556 AMediaFormat_setInt32(formatCopy, AMEDIAFORMAT_KEY_SAR_WIDTH, sarWidth); in updateTrackFormat()
557 AMediaFormat_setInt32(formatCopy, AMEDIAFORMAT_KEY_SAR_HEIGHT, sarHeight); in updateTrackFormat()
566 AMediaFormat_setInt32(formatCopy, AMEDIAFORMAT_KEY_DISPLAY_WIDTH, displayWidth); in updateTrackFormat()
567 AMediaFormat_setInt32(formatCopy, AMEDIAFORMAT_KEY_DISPLAY_HEIGHT, displayHeight); in updateTrackFormat()
[all …]
/frameworks/av/media/ndk/tests/
DNdkMediaFormat_test.cpp48 AMediaFormat_setInt32(fmt1, "five", 5); in TEST()
55 AMediaFormat_setInt32(nullptr, "whatever", 6); in TEST()
56 AMediaFormat_setInt32(fmt1, nullptr, 6); in TEST()
169 AMediaFormat_setInt32(fmt1, "five", 5); in TEST()
205 AMediaFormat_setInt32(fmt2, "vanishing", 50); in TEST()
/frameworks/av/media/module/extractors/wav/
DWAVExtractor.cpp155 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_PCM_ENCODING, in getTrackMetaData()
331 AMediaFormat_setInt32(mTrackMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, mNumChannels); in init()
332 AMediaFormat_setInt32(mTrackMeta, AMEDIAFORMAT_KEY_CHANNEL_MASK, mChannelMask); in init()
333 AMediaFormat_setInt32(mTrackMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, mSampleRate); in init()
334 AMediaFormat_setInt32(mTrackMeta, AMEDIAFORMAT_KEY_BITS_PER_SAMPLE, mBitsPerSample); in init()
425 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, kMaxFrameSize); in getFormat()
426 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_PCM_ENCODING, in getFormat()
577 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in read()
/frameworks/av/media/module/extractors/mp3/
DMP3Extractor.cpp289 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_ENCODER_DELAY, encd); in MP3Extractor()
290 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_ENCODER_PADDING, encp); in MP3Extractor()
340 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, sample_rate); in MP3Extractor()
341 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_BIT_RATE, bitrate * 1000); in MP3Extractor()
342 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, num_channels); in MP3Extractor()
390 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_ENCODER_DELAY, delay); in MP3Extractor()
391 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_ENCODER_PADDING, padding); in MP3Extractor()
593 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in read()
/frameworks/av/media/module/extractors/mp4/
DMPEG4Extractor.cpp566 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_ENCODER_DELAY, delay); in getTrackMetaData()
617 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_ENCODER_PADDING, paddingsamples); in getTrackMetaData()
749 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_TRACK_ID, imageIndex); in readMetaData()
1250 AMediaFormat_setInt32(mLastTrack->meta, AMEDIAFORMAT_KEY_CRYPTO_MODE, mode); in parseChunk()
1366 AMediaFormat_setInt32(mLastTrack->meta, in parseChunk()
1368 AMediaFormat_setInt32(mLastTrack->meta, in parseChunk()
1479 AMediaFormat_setInt32(mLastTrack->meta, in parseChunk()
1483 AMediaFormat_setInt32(mLastTrack->meta, in parseChunk()
1487 AMediaFormat_setInt32(mLastTrack->meta, in parseChunk()
1489 AMediaFormat_setInt32(mLastTrack->meta, in parseChunk()
[all …]
DItemTable.cpp1628 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_DEFAULT, 1); in getImageMeta()
1633 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_WIDTH, image->width); in getImageMeta()
1634 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_HEIGHT, image->height); in getImageMeta()
1642 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_ROTATION, 360 - image->rotation); in getImageMeta()
1648 AMediaFormat_setInt32(meta, in getImageMeta()
1662 AMediaFormat_setInt32(meta, in getImageMeta()
1664 AMediaFormat_setInt32(meta, in getImageMeta()
1690 AMediaFormat_setInt32(meta, in getImageMeta()
1692 AMediaFormat_setInt32(meta, in getImageMeta()
1696 AMediaFormat_setInt32(meta, in getImageMeta()
[all …]
/frameworks/av/media/module/extractors/midi/
DMidiExtractor.cpp184 AMediaFormat_setInt32( in MidiEngine()
186 AMediaFormat_setInt32( in MidiEngine()
188 AMediaFormat_setInt32( in MidiEngine()
254 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in readBuffer()
/frameworks/av/media/module/extractors/flac/
DFLACExtractor.cpp546 AMediaFormat_setInt32(mTrackMetadata, in init()
548 AMediaFormat_setInt32(mTrackMetadata, in init()
550 AMediaFormat_setInt32(mTrackMetadata, in init()
565 AMediaFormat_setInt32(mTrackMetadata, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, mMaxBufferSize); in init()
646 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in readBuffer()
701 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_PCM_ENCODING, in getFormat()
782 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_PCM_ENCODING, in getTrackMetaData()
/frameworks/av/media/module/extractors/ogg/
DOggExtractor.cpp300 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in read()
691 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_VALID_SAMPLES, currentPageSamples); in readNextPacket()
892 AMediaFormat_setInt32( in _readNextPacket()
968 AMediaFormat_setInt32( in _readNextPacket()
1147 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, kOpusSampleRate); in verifyOpusHeader()
1148 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, mChannelCount); in verifyOpusHeader()
1290 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, mVi.rate); in verifyHeader()
1291 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, mVi.channels); in verifyHeader()
1292 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_BIT_RATE, mVi.bitrate_nominal); in verifyHeader()
1373 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_MASK, channelMask); in setChannelMask()
[all …]
/frameworks/av/media/module/extractors/amr/
DAMRExtractor.cpp161 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, 1); in AMRExtractor()
162 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_SAMPLE_RATE, mIsWide ? 16000 : 8000); in AMRExtractor()
368 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in read()
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp817 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, block->IsKey()); in readBlock()
837 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_VALID_SAMPLES, validSamples); in readBlock()
1212 AMediaFormat_setInt32(bufMeta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, isSync); in read()
1657 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, maxInputSize); in addFlacMetadata()
1851 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_COLOR_RANGE, range); in getColorInformation()
1854 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_COLOR_STANDARD, standard); in getColorInformation()
1857 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_COLOR_TRANSFER, transfer); in getColorInformation()
2098 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_WIDTH, (int32_t)width); in addTracks()
2099 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_HEIGHT, (int32_t)height); in addTracks()
2109 AMediaFormat_setInt32(meta, in addTracks()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTranscoderBenchmark.cpp94 AMediaFormat_setInt32(videoFormat, AMEDIAFORMAT_KEY_BIT_RATE, kVideoBitRate); in CreateDefaultVideoFormat()
270 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_OPERATING_RATE, INT32_MAX); in SetMaxOperatingRate()
271 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_PRIORITY, 1); in SetMaxOperatingRate()
365 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, bitrate); in SetMimeBitrate()
DMediaTrackTranscoderBenchmark.cpp243 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_BIT_RATE, kVideoBitRate); in GetDefaultTrackFormat()
403 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_OPERATING_RATE, operatingRate); in BenchmarkTranscoderWithOperatingRate()
404 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_PRIORITY, priority); in BenchmarkTranscoderWithOperatingRate()
/frameworks/av/media/module/extractors/aac/
DAACExtractor.cpp156 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_AAC_PROFILE, profile + 1); in AACExtractor()
331 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1); in read()
/frameworks/av/media/module/libmediatranscoding/transcoder/tools/
DTranscode.cpp114 AMediaFormat_setInt32(dstFormat, AMEDIAFORMAT_KEY_BIT_RATE, config.bitrate); in transcode()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DHdrTranscodeTests.cpp129 AMediaFormat_setInt32(format.get(), TBD_AMEDIACODEC_PARAMETER_KEY_COLOR_TRANSFER_REQUEST, in hdrToSdrConversionSupported()
/frameworks/av/media/module/extractors/mpeg2/
DMPEG2TSExtractor.cpp117 AMediaFormat_setInt32(format, name, val32); in copyAMessageToAMediaFormat()
217 AMediaFormat_setInt32(outMeta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, val32); in read()
220 AMediaFormat_setInt32(outMeta, AMEDIAFORMAT_KEY_CRYPTO_MODE, val32); in read()

12