Home
last modified time | relevance | path

Searched refs:avgBitrate (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libstagefright/
DUtils.cpp1335 uint32_t maxBitrate, avgBitrate; in convertMetaDataToMessage() local
1336 if (esds.getBitRate(&maxBitrate, &avgBitrate) == OK) { in convertMetaDataToMessage()
1338 && avgBitrate > 0 && avgBitrate <= INT32_MAX) { in convertMetaDataToMessage()
1339 msg->setInt32("bitrate", (int32_t)avgBitrate); in convertMetaDataToMessage()
1341 (void)msg->findInt32("bitrate", (int32_t*)&avgBitrate); in convertMetaDataToMessage()
1344 && maxBitrate > 0 && maxBitrate <= INT32_MAX && maxBitrate >= avgBitrate) { in convertMetaDataToMessage()
1637 int32_t avgBitrate = 0; in convertMessageToMetaData() local
1639 if (msg->findInt32("bitrate", &avgBitrate) && avgBitrate > 0) { in convertMessageToMetaData()
1640 meta->setInt32(kKeyBitRate, avgBitrate); in convertMessageToMetaData()
1642 if (msg->findInt32("max-bitrate", &maxBitrate) && maxBitrate > 0 && maxBitrate >= avgBitrate) { in convertMessageToMetaData()
DMPEG4Writer.cpp3938 int32_t avgBitrate = 0; in writeMp4aEsdsBox() local
3939 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4aEsdsBox()
3943 mOwner->writeInt32(avgBitrate); in writeMp4aEsdsBox()
3992 int32_t avgBitrate = 0; in writeMp4vEsdsBox() local
3993 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4vEsdsBox()
3997 mOwner->writeInt32(avgBitrate); in writeMp4vEsdsBox()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp2236 uint32_t avgBitrate = U32_AT(&buffer[8]); in parseChunk() local
2241 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in parseChunk()
2243 AMEDIAFORMAT_KEY_BIT_RATE, (int32_t)avgBitrate); in parseChunk()
4279 uint32_t avgBitrate = 0; in updateAudioTrackInfoFromESDS_MPEG4Audio() local
4280 esds.getBitRate(&maxBitrate, &avgBitrate); in updateAudioTrackInfoFromESDS_MPEG4Audio()
4285 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
4287 AMEDIAFORMAT_KEY_BIT_RATE, (int32_t)avgBitrate); in updateAudioTrackInfoFromESDS_MPEG4Audio()