Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DUtils.cpp1392 uint32_t maxBitrate, avgBitrate; in convertMetaDataToMessage() local
1393 if (esds.getBitRate(&maxBitrate, &avgBitrate) == OK) { in convertMetaDataToMessage()
1395 && avgBitrate > 0 && avgBitrate <= INT32_MAX) { in convertMetaDataToMessage()
1396 msg->setInt32("bitrate", (int32_t)avgBitrate); in convertMetaDataToMessage()
1398 (void)msg->findInt32("bitrate", (int32_t*)&avgBitrate); in convertMetaDataToMessage()
1401 && maxBitrate > 0 && maxBitrate <= INT32_MAX && maxBitrate >= avgBitrate) { in convertMetaDataToMessage()
1700 int32_t avgBitrate = 0; in convertMessageToMetaData() local
1702 if (msg->findInt32("bitrate", &avgBitrate) && avgBitrate > 0) { in convertMessageToMetaData()
1703 meta->setInt32(kKeyBitRate, avgBitrate); in convertMessageToMetaData()
1705 if (msg->findInt32("max-bitrate", &maxBitrate) && maxBitrate > 0 && maxBitrate >= avgBitrate) { in convertMessageToMetaData()
DMPEG4Writer.cpp4327 int32_t avgBitrate = 0; in writeMp4aEsdsBox() local
4328 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4aEsdsBox()
4332 mOwner->writeInt32(avgBitrate); in writeMp4aEsdsBox()
4381 int32_t avgBitrate = 0; in writeMp4vEsdsBox() local
4382 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4vEsdsBox()
4386 mOwner->writeInt32(avgBitrate); in writeMp4vEsdsBox()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp2378 uint32_t avgBitrate = U32_AT(&buffer[8]); in parseChunk() local
2383 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in parseChunk()
2385 AMEDIAFORMAT_KEY_BIT_RATE, (int32_t)avgBitrate); in parseChunk()
4494 uint32_t avgBitrate = 0; in updateAudioTrackInfoFromESDS_MPEG4Audio() local
4495 esds.getBitRate(&maxBitrate, &avgBitrate); in updateAudioTrackInfoFromESDS_MPEG4Audio()
4500 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
4502 AMEDIAFORMAT_KEY_BIT_RATE, (int32_t)avgBitrate); in updateAudioTrackInfoFromESDS_MPEG4Audio()