Home
last modified time | relevance | path

Searched refs:maxBitrate (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libstagefright/
DUtils.cpp959 uint32_t maxBitrate, avgBitrate; in convertMetaDataToMessage() local
960 if (esds.getBitRate(&maxBitrate, &avgBitrate) == OK) { in convertMetaDataToMessage()
968 && maxBitrate > 0 && maxBitrate <= INT32_MAX && maxBitrate >= avgBitrate) { in convertMetaDataToMessage()
969 msg->setInt32("max-bitrate", (int32_t)maxBitrate); in convertMetaDataToMessage()
1267 int32_t maxBitrate; in convertMessageToMetaData() local
1271 if (msg->findInt32("max-bitrate", &maxBitrate) && maxBitrate > 0 && maxBitrate >= avgBitrate) { in convertMessageToMetaData()
1272 meta->setInt32(kKeyMaxBitRate, maxBitrate); in convertMessageToMetaData()
DMediaCodecListOverrides.cpp84 AString maxBitrate; in getMeasureBitrate() local
85 if (!splitString(bitrateRange, "-", &minBitrate, &maxBitrate)) { in getMeasureBitrate()
DMPEG4Writer.cpp3046 int32_t maxBitrate = 0; in writeMp4aEsdsBox() local
3047 (void)mMeta->findInt32(kKeyMaxBitRate, &maxBitrate); in writeMp4aEsdsBox()
3048 mOwner->writeInt32(maxBitrate); in writeMp4aEsdsBox()
3089 int32_t maxBitrate = 0; in writeMp4vEsdsBox() local
3090 (void)mMeta->findInt32(kKeyMaxBitRate, &maxBitrate); in writeMp4vEsdsBox()
3091 mOwner->writeInt32(maxBitrate); in writeMp4vEsdsBox()
DMPEG4Extractor.cpp1781 uint32_t maxBitrate = U32_AT(&buffer[4]); in parseChunk() local
1783 if (maxBitrate > 0 && maxBitrate < INT32_MAX) { in parseChunk()
1784 mLastTrack->meta->setInt32(kKeyMaxBitRate, (int32_t)maxBitrate); in parseChunk()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java686 Integer maxBitrate = (Integer)map.get(MediaFormat.KEY_MAX_BIT_RATE); in supportsBitrate() local
689 bitrate = maxBitrate; in supportsBitrate()
690 } else if (maxBitrate != null) { in supportsBitrate()
691 bitrate = Math.max(bitrate, maxBitrate); in supportsBitrate()