Searched refs:avgBitrate (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 988 uint32_t maxBitrate, avgBitrate; in convertMetaDataToMessage() local 989 if (esds.getBitRate(&maxBitrate, &avgBitrate) == OK) { in convertMetaDataToMessage() 991 && avgBitrate > 0 && avgBitrate <= INT32_MAX) { in convertMetaDataToMessage() 992 msg->setInt32("bitrate", (int32_t)avgBitrate); in convertMetaDataToMessage() 994 (void)msg->findInt32("bitrate", (int32_t*)&avgBitrate); in convertMetaDataToMessage() 997 && maxBitrate > 0 && maxBitrate <= INT32_MAX && maxBitrate >= avgBitrate) { in convertMetaDataToMessage() 1305 int32_t avgBitrate = 0; in convertMessageToMetaData() local 1307 if (msg->findInt32("bitrate", &avgBitrate) && avgBitrate > 0) { in convertMessageToMetaData() 1308 meta->setInt32(kKeyBitRate, avgBitrate); in convertMessageToMetaData() 1310 if (msg->findInt32("max-bitrate", &maxBitrate) && maxBitrate > 0 && maxBitrate >= avgBitrate) { in convertMessageToMetaData()
|
D | MPEG4Writer.cpp | 3812 int32_t avgBitrate = 0; in writeMp4aEsdsBox() local 3813 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4aEsdsBox() 3817 mOwner->writeInt32(avgBitrate); in writeMp4aEsdsBox() 3859 int32_t avgBitrate = 0; in writeMp4vEsdsBox() local 3860 (void)mMeta->findInt32(kKeyBitRate, &avgBitrate); in writeMp4vEsdsBox() 3864 mOwner->writeInt32(avgBitrate); in writeMp4vEsdsBox()
|
/frameworks/av/media/extractors/mp4/ |
D | MPEG4Extractor.cpp | 1954 uint32_t avgBitrate = U32_AT(&buffer[8]); in parseChunk() local 1958 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in parseChunk() 1959 mLastTrack->meta.setInt32(kKeyBitRate, (int32_t)avgBitrate); in parseChunk() 3566 uint32_t avgBitrate = 0; in updateAudioTrackInfoFromESDS_MPEG4Audio() local 3567 esds.getBitRate(&maxBitrate, &avgBitrate); in updateAudioTrackInfoFromESDS_MPEG4Audio() 3571 if (avgBitrate > 0 && avgBitrate < INT32_MAX) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 3572 mLastTrack->meta.setInt32(kKeyBitRate, (int32_t)avgBitrate); in updateAudioTrackInfoFromESDS_MPEG4Audio()
|