/frameworks/av/media/libstagefright/rtsp/ |
ARTPSession.cpp | 148 sp<ABuffer> accessUnit; 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->data()[4] [all...] |
ARTPAssembler.cpp | 84 sp<ABuffer> accessUnit = new ABuffer(totalSize); 89 uint8_t *dst = accessUnit->data() + offset; 116 CopyTimes(accessUnit, *frames.begin()); 118 return accessUnit; 130 sp<ABuffer> accessUnit = new ABuffer(totalSize); 135 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); 139 CopyTimes(accessUnit, *packets.begin()); 141 return accessUnit;
|
AH263Assembler.cpp | 168 sp<ABuffer> accessUnit = new ABuffer(totalSize); 174 memcpy((uint8_t *)accessUnit->data() + offset, 182 CopyTimes(accessUnit, *mPackets.begin()); 190 accessUnit->meta()->setInt32("damaged", true); 197 msg->setBuffer("access-unit", accessUnit);
|
AMPEG4ElementaryAssembler.cpp | 347 sp<ABuffer> accessUnit = new ABuffer(header.mSize); 348 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize); 352 CopyTimes(accessUnit, buffer); 353 mPackets.push_back(accessUnit); 370 sp<ABuffer> accessUnit; 373 accessUnit = MakeADTSCompoundFromAACFrames( 379 accessUnit = MakeCompoundFromPackets(mPackets); 388 accessUnit->meta()->setInt32("damaged", true); 395 msg->setBuffer("access-unit", accessUnit);
|
AAMRAssembler.cpp | 186 sp<ABuffer> accessUnit = new ABuffer(totalSize); 187 CopyTimes(accessUnit, buffer); 204 accessUnit->data()[dstOffset++] = toc; 205 memcpy(accessUnit->data() + dstOffset, 213 msg->setBuffer("access-unit", accessUnit);
|
AAVCAssembler.cpp | 328 sp<ABuffer> accessUnit = new ABuffer(totalSize); 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);
|
/frameworks/av/media/libstagefright/wifi-display/ |
MediaSender.cpp | 205 size_t trackIndex, const sp<ABuffer> &accessUnit) { 216 info->mAccessUnits.push_back(accessUnit); 234 const sp<ABuffer> &accessUnit = *info.mAccessUnits.begin(); 235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 248 sp<ABuffer> accessUnit = *info->mAccessUnits.begin(); 253 minTrackIndex, accessUnit, &tsPackets); 261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 279 accessUnit, 390 sp<ABuffer> accessUnit, 403 && IsIDR(accessUnit); [all...] |
MediaSender.h | 71 size_t trackIndex, const sp<ABuffer> &accessUnit); 123 sp<ABuffer> accessUnit,
|
/frameworks/av/media/libmediaplayerservice/nuplayer/mp4/ |
MP4Source.h | 37 bool audio, sp<ABuffer> *accessUnit);
|
MP4Source.cpp | 140 bool audio, sp<ABuffer> *accessUnit) { 141 return mParser->dequeueAccessUnit(audio, accessUnit);
|
/frameworks/av/media/libstagefright/include/ |
avc_utils.h | 53 sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit); 55 bool IsIDR(const sp<ABuffer> &accessUnit); 56 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit);
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
Converter.cpp | 77 static void ReleaseMediaBufferReference(const sp<ABuffer> &accessUnit) { 79 if (accessUnit->meta()->findPointer("mediaBuffer", &mbuf) 83 accessUnit->meta()->setPointer("mediaBuffer", NULL); 99 sp<ABuffer> accessUnit = *mInputBufferQueue.begin(); 102 ReleaseMediaBufferReference(accessUnit); 106 sp<ABuffer> accessUnit = mEncoderInputBuffers.itemAt(i); 107 ReleaseMediaBufferReference(accessUnit); 303 bool Converter::IsSilence(const sp<ABuffer> &accessUnit) { 304 const uint8_t *ptr = accessUnit->data(); 305 const uint8_t *end = ptr + accessUnit->size() [all...] |
Converter.h | 60 void feedAccessUnit(const sp<ABuffer> &accessUnit); 147 static bool IsSilence(const sp<ABuffer> &accessUnit); 149 sp<ABuffer> prependCSD(const sp<ABuffer> &accessUnit) const;
|
TSPacketizer.h | 51 size_t trackIndex, const sp<ABuffer> &accessUnit, 62 size_t trackIndex, const sp<ABuffer> &accessUnit) const;
|
MediaPuller.cpp | 168 sp<ABuffer> accessUnit = new ABuffer(mbuf->range_length()); 170 memcpy(accessUnit->data(), 174 accessUnit->meta()->setInt64("timeUs", timeUs); 182 accessUnit->meta()->setPointer("mediaBuffer", mbuf); 188 notify->setBuffer("accessUnit", accessUnit);
|
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->size()) [all...] |
PlaybackSession.cpp | 81 void queueAccessUnit(const sp<ABuffer> &accessUnit); 85 void queueOutputBuffer(const sp<ABuffer> &accessUnit); 262 const sp<ABuffer> &accessUnit) { 263 mQueuedAccessUnits.push_back(accessUnit); 271 sp<ABuffer> accessUnit = *mQueuedAccessUnits.begin(); 272 CHECK(accessUnit != NULL); 276 return accessUnit; 312 const sp<ABuffer> &accessUnit) { 313 mQueuedOutputBuffers.push_back(accessUnit); 494 sp<ABuffer> accessUnit; [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
StreamingSource.h | 39 virtual status_t dequeueAccessUnit(bool audio, sp<ABuffer> *accessUnit);
|
RTSPSource.cpp | 194 bool audio, sp<ABuffer> *accessUnit) { 260 return source->dequeueAccessUnit(accessUnit); 395 sp<ABuffer> accessUnit; 396 CHECK(msg->findBuffer("accessUnit", &accessUnit)); 399 if (accessUnit->meta()->findInt32("damaged", &damaged) 408 while (offset + 188 <= accessUnit->size()) { 410 accessUnit->data() + offset, 188); 418 if (offset < accessUnit->size()) { 441 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)) [all...] |
StreamingSource.cpp | 156 bool audio, sp<ABuffer> *accessUnit) { 172 status_t err = source->dequeueAccessUnit(accessUnit); 177 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
|
GenericSource.h | 51 virtual status_t dequeueAccessUnit(bool audio, sp<ABuffer> *accessUnit);
|
HTTPLiveSource.h | 39 virtual status_t dequeueAccessUnit(bool audio, sp<ABuffer> *accessUnit);
|
NuPlayerSource.h | 69 bool audio, sp<ABuffer> *accessUnit) = 0;
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
ESQueue.cpp | 309 sp<ABuffer> accessUnit = new ABuffer(info.mLength); 310 memcpy(accessUnit->data(), mBuffer->data(), info.mLength); 311 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs); 320 mFormat = MakeAVCCodecSpecificData(accessUnit); 323 return accessUnit; 375 sp<ABuffer> accessUnit = new ABuffer(payloadSize); 376 memcpy(accessUnit->data(), mBuffer->data() + 4, payloadSize); 380 accessUnit->meta()->setInt64("timeUs", timeUs); 382 int16_t *ptr = (int16_t *)accessUnit->data(); 394 return accessUnit; [all...] |
/frameworks/av/media/libstagefright/ |
MPEG2TSWriter.cpp | 56 void setLastAccessUnit(const sp<ABuffer> &accessUnit); 444 const sp<ABuffer> &accessUnit) { 445 mLastAccessUnit = accessUnit; 834 int32_t sourceIndex, const sp<ABuffer> &accessUnit) { 884 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 888 size_t PES_packet_length = accessUnit->size() + 8; 889 bool padding = (accessUnit->size() < (188 - 18)); 905 int paddingSize = 188 - accessUnit->size() - 18; 928 size_t copy = accessUnit->size(); 933 memcpy(ptr, accessUnit->data(), copy) [all...] |