Home
last modified time | relevance | path

Searched refs:avgBitrate (Results 1 – 3 of 3) 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()
962 && avgBitrate > 0 && avgBitrate <= INT32_MAX) { in convertMetaDataToMessage()
963 msg->setInt32("bitrate", (int32_t)avgBitrate); in convertMetaDataToMessage()
965 (void)msg->findInt32("bitrate", (int32_t*)&avgBitrate); in convertMetaDataToMessage()
968 && maxBitrate > 0 && maxBitrate <= INT32_MAX && maxBitrate >= avgBitrate) { in convertMetaDataToMessage()
1266 int32_t avgBitrate = 0; in convertMessageToMetaData() local
1268 if (msg->findInt32("bitrate", &avgBitrate) && avgBitrate > 0) { in convertMessageToMetaData()
1269 meta->setInt32(kKeyBitRate, avgBitrate); in convertMessageToMetaData()
1271 if (msg->findInt32("max-bitrate", &maxBitrate) && maxBitrate > 0 && maxBitrate >= avgBitrate) { in convertMessageToMetaData()
DMPEG4Writer.cpp3044 int32_t avgBitrate = 0; in writeMp4aEsdsBox() local
3045 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4aEsdsBox()
3049 mOwner->writeInt32(avgBitrate); in writeMp4aEsdsBox()
3087 int32_t avgBitrate = 0; in writeMp4vEsdsBox() local
3088 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4vEsdsBox()
3092 mOwner->writeInt32(avgBitrate); in writeMp4vEsdsBox()
DMPEG4Extractor.cpp1782 uint32_t avgBitrate = U32_AT(&buffer[8]); in parseChunk() local
1786 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in parseChunk()
1787 mLastTrack->meta->setInt32(kKeyBitRate, (int32_t)avgBitrate); in parseChunk()