Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DUtils.cpp994 uint32_t maxBitrate, avgBitrate; in convertMetaDataToMessage() local
995 if (esds.getBitRate(&maxBitrate, &avgBitrate) == OK) { in convertMetaDataToMessage()
1003 && maxBitrate > 0 && maxBitrate <= INT32_MAX && maxBitrate >= avgBitrate) { in convertMetaDataToMessage()
1004 msg->setInt32("max-bitrate", (int32_t)maxBitrate); in convertMetaDataToMessage()
1302 int32_t maxBitrate; in convertMessageToMetaData() local
1306 if (msg->findInt32("max-bitrate", &maxBitrate) && maxBitrate > 0 && maxBitrate >= avgBitrate) { in convertMessageToMetaData()
1307 meta->setInt32(kKeyMaxBitRate, maxBitrate); in convertMessageToMetaData()
DMediaCodecListOverrides.cpp84 AString maxBitrate; in getMeasureBitrate() local
85 if (!splitString(bitrateRange, "-", &minBitrate, &maxBitrate)) { in getMeasureBitrate()
DMPEG4Writer.cpp3387 int32_t maxBitrate = 0; in writeMp4aEsdsBox() local
3388 (void)mMeta->findInt32(kKeyMaxBitRate, &maxBitrate); in writeMp4aEsdsBox()
3389 mOwner->writeInt32(maxBitrate); in writeMp4aEsdsBox()
3434 int32_t maxBitrate = 0; in writeMp4vEsdsBox() local
3435 (void)mMeta->findInt32(kKeyMaxBitRate, &maxBitrate); in writeMp4vEsdsBox()
3436 mOwner->writeInt32(maxBitrate); in writeMp4vEsdsBox()
DMPEG4Extractor.cpp1880 uint32_t maxBitrate = U32_AT(&buffer[4]); in parseChunk() local
1882 if (maxBitrate > 0 && maxBitrate < INT32_MAX) { in parseChunk()
1883 mLastTrack->meta->setInt32(kKeyMaxBitRate, (int32_t)maxBitrate); in parseChunk()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java692 Integer maxBitrate = (Integer)map.get(MediaFormat.KEY_MAX_BIT_RATE); in supportsBitrate() local
695 bitrate = maxBitrate; in supportsBitrate()
696 } else if (maxBitrate != null) { in supportsBitrate()
697 bitrate = Math.max(bitrate, maxBitrate); in supportsBitrate()