/frameworks/av/media/libstagefright/rtsp/ |
H A D | AH263Assembler.cpp | 168 sp<ABuffer> accessUnit = new ABuffer(totalSize); local 174 memcpy((uint8_t *)accessUnit->data() + offset, 182 CopyTimes(accessUnit, *mPackets.begin()); 190 accessUnit->meta()->setInt32("damaged", true); 197 msg->setBuffer("access-unit", accessUnit);
|
H A D | ARTPAssembler.cpp | 84 sp<ABuffer> accessUnit = new ABuffer(totalSize); local 89 uint8_t *dst = accessUnit->data() + offset; 116 CopyTimes(accessUnit, *frames.begin()); 118 return accessUnit; 130 sp<ABuffer> accessUnit = new ABuffer(totalSize); local 135 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); 139 CopyTimes(accessUnit, *packets.begin()); 141 return accessUnit;
|
H A D | AAMRAssembler.cpp | 186 sp<ABuffer> accessUnit = new ABuffer(totalSize); local 187 CopyTimes(accessUnit, buffer); 204 accessUnit->data()[dstOffset++] = toc; 205 memcpy(accessUnit->data() + dstOffset, 213 msg->setBuffer("access-unit", accessUnit);
|
H A D | AAVCAssembler.cpp | 328 sp<ABuffer> accessUnit = new ABuffer(totalSize); local 332 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4); 336 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); 340 CopyTimes(accessUnit, *mNALUnits.begin()); 348 accessUnit->meta()->setInt32("damaged", true); 355 msg->setBuffer("access-unit", accessUnit);
|
H A D | ARTPSession.cpp | 148 sp<ABuffer> accessUnit; local 149 CHECK(msg->findBuffer("access-unit", &accessUnit)); 152 CHECK(accessUnit->meta()->findInt64( 158 accessUnit->size(), ntpTime); 161 accessUnit->size(), ntpTime); 162 hexdump(accessUnit->data(), accessUnit->size()); 167 CHECK_GE(accessUnit->size(), 5u); 168 CHECK(!memcmp("\x00\x00\x00\x01", accessUnit->data(), 4)); 169 unsigned x = accessUnit [all...] |
H A D | AMPEG4ElementaryAssembler.cpp | 353 sp<ABuffer> accessUnit = new ABuffer(header.mSize); local 354 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize); 358 CopyTimes(accessUnit, buffer); 359 mPackets.push_back(accessUnit); 379 sp<ABuffer> accessUnit; local 382 accessUnit = MakeADTSCompoundFromAACFrames( 388 accessUnit = MakeCompoundFromPackets(mPackets); 397 accessUnit->meta()->setInt32("damaged", true); 404 msg->setBuffer("access-unit", accessUnit);
|
H A D | AMPEG4AudioAssembler.cpp | 548 sp<ABuffer> accessUnit = MakeCompoundFromPackets(mPackets); local 549 accessUnit = removeLATMFraming(accessUnit); 550 CopyTimes(accessUnit, *mPackets.begin()); 558 accessUnit->meta()->setInt32("damaged", true); 565 msg->setBuffer("access-unit", accessUnit);
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | MediaPuller.cpp | 168 sp<ABuffer> accessUnit = new ABuffer(mbuf->range_length()); local 170 memcpy(accessUnit->data(), 174 accessUnit->meta()->setInt64("timeUs", timeUs); 182 accessUnit->setMediaBufferBase(mbuf); 188 notify->setBuffer("accessUnit", accessUnit);
|
H A D | Converter.cpp | 279 bool Converter::IsSilence(const sp<ABuffer> &accessUnit) { argument 280 const uint8_t *ptr = accessUnit->data(); 281 const uint8_t *end = ptr + accessUnit->size(); 304 sp<ABuffer> accessUnit; local 305 CHECK(msg->findBuffer("accessUnit", &accessUnit)); 307 accessUnit->setMediaBufferBase(NULL); 321 sp<ABuffer> accessUnit; local 322 CHECK(msg->findBuffer("accessUnit", &accessUnit)); [all...] |
H A D | TSPacketizer.cpp | 54 sp<ABuffer> prependCSD(const sp<ABuffer> &accessUnit) const; 55 sp<ABuffer> prependADTSHeader(const sp<ABuffer> &accessUnit) const; 177 const sp<ABuffer> &accessUnit) const { 183 sp<ABuffer> dup = new ABuffer(accessUnit->size() + size); 192 memcpy(dup->data() + offset, accessUnit->data(), accessUnit->size()); 198 const sp<ABuffer> &accessUnit) const { 203 const uint32_t aac_frame_length = accessUnit->size() + 7; 236 memcpy(ptr, accessUnit->data(), accessUnit 460 sp<ABuffer> accessUnit = _accessUnit; local [all...] |
H A D | PlaybackSession.cpp | 82 void queueAccessUnit(const sp<ABuffer> &accessUnit); 86 void queueOutputBuffer(const sp<ABuffer> &accessUnit); 263 const sp<ABuffer> &accessUnit) { 264 mQueuedAccessUnits.push_back(accessUnit); 272 sp<ABuffer> accessUnit = *mQueuedAccessUnits.begin(); local 273 CHECK(accessUnit != NULL); 277 return accessUnit; 313 const sp<ABuffer> &accessUnit) { 314 mQueuedOutputBuffers.push_back(accessUnit); 497 sp<ABuffer> accessUnit; local 262 queueAccessUnit( const sp<ABuffer> &accessUnit) argument 312 queueOutputBuffer( const sp<ABuffer> &accessUnit) argument 852 sp<ABuffer> accessUnit = new ABuffer(1024 * 1024); local [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | HTTPLiveSource.cpp | 131 bool audio, sp<ABuffer> *accessUnit) { 135 accessUnit); 130 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
|
H A D | NuPlayerDecoderPassThrough.cpp | 133 status_t NuPlayer::DecoderPassThrough::dequeueAccessUnit(sp<ABuffer> *accessUnit) { argument 136 // Did we save an accessUnit earlier because of a discontinuity? 138 *accessUnit = mPendingAudioAccessUnit; 143 err = mSource->dequeueAccessUnit(true /* audio */, accessUnit); 150 mPendingAudioAccessUnit = *accessUnit; 151 (*accessUnit).clear(); 161 const sp<ABuffer> &accessUnit) { 164 if (accessUnit == NULL) { 165 // accessUnit is saved to mPendingAudioAccessUnit 172 size_t smallSize = accessUnit 160 aggregateBuffer( const sp<ABuffer> &accessUnit) argument 220 sp<ABuffer> accessUnit; local [all...] |
H A D | StreamingSource.cpp | 239 bool audio, sp<ABuffer> *accessUnit) { 255 status_t err = source->dequeueAccessUnit(accessUnit); 260 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); 238 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
|
H A D | NuPlayerCCDecoder.cpp | 210 bool NuPlayer::CCDecoder::extractFromSEI(const sp<ABuffer> &accessUnit) { argument 212 if (!accessUnit->meta()->findBuffer("sei", &sei) || sei == NULL) { 217 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 225 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); 296 bool NuPlayer::CCDecoder::extractFromMPEGUserData(const sp<ABuffer> &accessUnit) { argument 298 if (!accessUnit->meta()->findBuffer("mpegUserData", &mpegUserData) 304 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 312 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); 489 void NuPlayer::CCDecoder::decode(const sp<ABuffer> &accessUnit) { argument [all...] |
H A D | NuPlayerDecoder.cpp | 685 sp<ABuffer> accessUnit; local 688 status_t err = mSource->dequeueAccessUnit(mIsAudio, &accessUnit); 695 CHECK(accessUnit->meta()->findInt32("discontinuity", &type)); 749 && !IsAVCReferenceFrame(accessUnit)) { 758 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); 765 mCCDecoder->decode(accessUnit); 768 reply->setBuffer("buffer", accessUnit);
|
H A D | RTSPSource.cpp | 189 bool audio, sp<ABuffer> *accessUnit) { 243 return source->dequeueAccessUnit(accessUnit); 486 sp<ABuffer> accessUnit; local 487 CHECK(msg->findBuffer("accessUnit", &accessUnit)); 490 if (accessUnit->meta()->findInt32("damaged", &damaged) 499 while (offset + 188 <= accessUnit->size()) { 501 accessUnit->data() + offset, 188); 509 if (offset < accessUnit->size()) { 532 CHECK(accessUnit 188 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument [all...] |
H A D | GenericSource.cpp | 878 bool audio, sp<ABuffer> *accessUnit) { 904 status_t result = track->mPackets->dequeueAccessUnit(accessUnit); 926 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); 877 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
|
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | MediaSender.cpp | 205 size_t trackIndex, const sp<ABuffer> &accessUnit) { 216 info->mAccessUnits.push_back(accessUnit); 234 const sp<ABuffer> &accessUnit = *info.mAccessUnits.begin(); local 235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 248 sp<ABuffer> accessUnit = *info->mAccessUnits.begin(); local 253 minTrackIndex, accessUnit, &tsPackets); 261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 279 accessUnit, 390 sp<ABuffer> accessUnit, 403 && IsIDR(accessUnit); 204 queueAccessUnit( size_t trackIndex, const sp<ABuffer> &accessUnit) argument 388 packetizeAccessUnit( size_t trackIndex, sp<ABuffer> accessUnit, sp<ABuffer> *tsPackets) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MPEG2TSWriter.cpp | 56 void setLastAccessUnit(const sp<ABuffer> &accessUnit); 444 const sp<ABuffer> &accessUnit) { 445 mLastAccessUnit = accessUnit; 822 int32_t sourceIndex, const sp<ABuffer> &accessUnit) { 872 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 876 size_t PES_packet_length = accessUnit->size() + 8; 877 bool padding = (accessUnit->size() < (188 - 18)); 893 int paddingSize = 188 - accessUnit->size() - 18; 916 size_t copy = accessUnit->size(); 921 memcpy(ptr, accessUnit 443 setLastAccessUnit( const sp<ABuffer> &accessUnit) argument 821 writeAccessUnit( int32_t sourceIndex, const sp<ABuffer> &accessUnit) argument [all...] |
H A D | avc_utils.cpp | 365 sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit) { argument 366 const uint8_t *data = accessUnit->data(); 367 size_t size = accessUnit->size(); 472 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit) { argument 473 const uint8_t *data = accessUnit->data(); 474 size_t size = accessUnit->size();
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | MPEG2PSExtractor.cpp | 704 sp<ABuffer> accessUnit; local 705 while ((accessUnit = mQueue->dequeueAccessUnit()) != NULL) { 713 mSource->queueAccessUnit(accessUnit); 716 mSource->queueAccessUnit(accessUnit);
|
H A D | ESQueue.cpp | 475 sp<ABuffer> accessUnit = new ABuffer(info.mLength); local 476 memcpy(accessUnit->data(), mBuffer->data(), info.mLength); 477 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs); 486 mFormat = MakeAVCCodecSpecificData(accessUnit); 489 return accessUnit; 544 sp<ABuffer> accessUnit = new ABuffer(syncStartPos + payloadSize); local 545 memcpy(accessUnit->data(), mBuffer->data(), syncStartPos + payloadSize); 552 accessUnit->meta()->setInt64("timeUs", timeUs); 553 accessUnit->meta()->setInt32("isSync", 1); 562 return accessUnit; 607 sp<ABuffer> accessUnit = new ABuffer(payloadSize); local 741 sp<ABuffer> accessUnit = new ABuffer(offset); local 840 sp<ABuffer> accessUnit = new ABuffer(auSize); local 959 sp<ABuffer> accessUnit = new ABuffer(frameSize); local 1146 sp<ABuffer> accessUnit = new ABuffer(offset); local 1340 sp<ABuffer> accessUnit = new ABuffer(offset); local 1411 sp<ABuffer> accessUnit = new ABuffer(size); local [all...] |
/frameworks/av/media/libstagefright/wifi-display/rtp/ |
H A D | RTPSender.cpp | 310 const sp<ABuffer> &accessUnit, uint8_t packetType) { 312 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 321 const uint8_t *data = accessUnit->data(); 322 size_t size = accessUnit->size(); 309 queueAVCBuffer( const sp<ABuffer> &accessUnit, uint8_t packetType) argument
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 340 StreamType stream, sp<ABuffer> *accessUnit) { 369 status_t err = packetSource->dequeueAccessUnit(accessUnit); 374 CHECK((*accessUnit)->meta()->findInt32("discontinuity", &type)); 377 if (!(*accessUnit)->meta()->findMessage("extra", &extra)) { 391 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); 393 (*accessUnit)->meta()->findInt32("discontinuitySeq", &discontinuitySeq); 427 } else if ((*accessUnit)->meta()->findInt32("discard", &discard) && discard) { 439 (*accessUnit)->meta()->setInt64("timeUs", timeUs); 444 if ((*accessUnit)->meta()->findInt32("subtitleGeneration", &subtitleGeneration) 448 (*accessUnit) 339 dequeueAccessUnit( StreamType stream, sp<ABuffer> *accessUnit) argument 1962 sp<ABuffer> accessUnit; local [all...] |