Searched defs:accessUnit (Results 1 - 24 of 24) sorted by relevance

/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DStreamingSource.cpp133 bool audio, sp<ABuffer> *accessUnit) {
149 status_t err = source->dequeueAccessUnit(accessUnit);
154 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
132 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
H A DHTTPLiveSource.cpp149 bool audio, sp<ABuffer> *accessUnit) {
165 return source->dequeueAccessUnit(accessUnit);
148 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
H A DGenericSource.cpp142 bool audio, sp<ABuffer> *accessUnit) {
154 status_t result = track->mPackets->dequeueAccessUnit(accessUnit);
141 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
H A DRTSPSource.cpp139 bool audio, sp<ABuffer> *accessUnit) {
159 return source->dequeueAccessUnit(accessUnit);
273 sp<ABuffer> accessUnit; local
274 CHECK(msg->findBuffer("accessUnit", &accessUnit));
277 if (accessUnit->meta()->findInt32("damaged", &damaged)
286 while (offset + 188 <= accessUnit->size()) {
288 accessUnit->data() + offset, 188);
296 if (offset < accessUnit->size()) {
319 CHECK(accessUnit
138 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
[all...]
H A DNuPlayer.cpp742 sp<ABuffer> accessUnit; local
746 status_t err = mSource->dequeueAccessUnit(audio, &accessUnit);
753 CHECK(accessUnit->meta()->findInt32("discontinuity", &type));
774 if (accessUnit->meta()->findMessage("extra", &extra)
826 && !IsAVCReferenceFrame(accessUnit)) {
836 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs));
842 reply->setBuffer("buffer", accessUnit);
/frameworks/av/media/libmediaplayerservice/nuplayer/mp4/
H A DMP4Source.cpp132 bool audio, sp<ABuffer> *accessUnit) {
133 return mParser->dequeueAccessUnit(audio, accessUnit);
131 dequeueAccessUnit( bool audio, sp<ABuffer> *accessUnit) argument
/frameworks/av/media/libstagefright/rtsp/
H A DAH263Assembler.cpp142 sp<ABuffer> accessUnit = new ABuffer(totalSize); local
148 memcpy((uint8_t *)accessUnit->data() + offset,
156 CopyTimes(accessUnit, *mPackets.begin());
164 accessUnit->meta()->setInt32("damaged", true);
171 msg->setBuffer("access-unit", accessUnit);
H A DARTPAssembler.cpp84 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 DAAMRAssembler.cpp187 sp<ABuffer> accessUnit = new ABuffer(totalSize); local
188 CopyTimes(accessUnit, buffer);
205 accessUnit->data()[dstOffset++] = toc;
206 memcpy(accessUnit->data() + dstOffset,
214 msg->setBuffer("access-unit", accessUnit);
H A DAAVCAssembler.cpp321 sp<ABuffer> accessUnit = new ABuffer(totalSize); local
325 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4);
329 memcpy(accessUnit->data() + offset, nal->data(), nal->size());
333 CopyTimes(accessUnit, *mNALUnits.begin());
341 accessUnit->meta()->setInt32("damaged", true);
348 msg->setBuffer("access-unit", accessUnit);
H A DARTPSession.cpp148 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 DAMPEG4ElementaryAssembler.cpp347 sp<ABuffer> accessUnit = new ABuffer(header.mSize); local
348 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize);
352 CopyTimes(accessUnit, buffer);
353 mPackets.push_back(accessUnit);
370 sp<ABuffer> accessUnit; local
373 accessUnit = MakeADTSCompoundFromAACFrames(
379 accessUnit = MakeCompoundFromPackets(mPackets);
388 accessUnit->meta()->setInt32("damaged", true);
395 msg->setBuffer("access-unit", accessUnit);
H A DAMPEG4AudioAssembler.cpp537 sp<ABuffer> accessUnit = MakeCompoundFromPackets(mPackets); local
538 accessUnit = removeLATMFraming(accessUnit);
539 CopyTimes(accessUnit, *mPackets.begin());
547 accessUnit->meta()->setInt32("damaged", true);
554 msg->setBuffer("access-unit", accessUnit);
H A DMyHandler.h860 sp<ABuffer> accessUnit; local
861 CHECK(msg->findBuffer("access-unit", &accessUnit));
863 uint32_t seqNum = (uint32_t)accessUnit->int32Data();
880 onAccessUnitComplete(trackIndex, accessUnit);
1408 int32_t trackIndex, const sp<ABuffer> &accessUnit) {
1432 ALOGV("storing accessUnit, no time established yet");
1433 track->mPackets.push_back(accessUnit);
1438 sp<ABuffer> accessUnit = *track->mPackets.begin(); local
1441 if (addMediaTimestamp(trackIndex, track, accessUnit)) {
1442 postQueueAccessUnit(trackIndex, accessUnit);
1407 onAccessUnitComplete( int32_t trackIndex, const sp<ABuffer> &accessUnit) argument
1451 addMediaTimestamp( int32_t trackIndex, const TrackInfo *track, const sp<ABuffer> &accessUnit) argument
1483 postQueueAccessUnit( size_t trackIndex, const sp<ABuffer> &accessUnit) argument
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DMediaPuller.cpp147 sp<ABuffer> accessUnit = new ABuffer(mbuf->range_length()); local
149 memcpy(accessUnit->data(),
153 accessUnit->meta()->setInt64("timeUs", timeUs);
161 accessUnit->meta()->setPointer("mediaBuffer", mbuf);
167 notify->setBuffer("accessUnit", accessUnit);
H A DConverter.cpp198 bool Converter::IsSilence(const sp<ABuffer> &accessUnit) { argument
199 const uint8_t *ptr = accessUnit->data();
200 const uint8_t *end = ptr + accessUnit->size();
223 sp<ABuffer> accessUnit; local
224 CHECK(msg->findBuffer("accessUnit", &accessUnit));
227 if (accessUnit->meta()->findPointer("mediaBuffer", &mbuf)
231 accessUnit->meta()->setPointer("mediaBuffer", NULL);
249 sp<ABuffer> accessUnit; local
250 CHECK(msg->findBuffer("accessUnit",
[all...]
H A DPlaybackSession.cpp78 void queueAccessUnit(const sp<ABuffer> &accessUnit);
82 void queueOutputBuffer(const sp<ABuffer> &accessUnit);
230 const sp<ABuffer> &accessUnit) {
231 mQueuedAccessUnits.push_back(accessUnit);
239 sp<ABuffer> accessUnit = *mQueuedAccessUnits.begin(); local
240 CHECK(accessUnit != NULL);
244 return accessUnit;
280 const sp<ABuffer> &accessUnit) {
281 mQueuedOutputBuffers.push_back(accessUnit);
463 sp<ABuffer> accessUnit; local
229 queueAccessUnit( const sp<ABuffer> &accessUnit) argument
279 queueOutputBuffer( const sp<ABuffer> &accessUnit) argument
566 sp<ABuffer> accessUnit; local
769 packetizeAccessUnit( size_t trackIndex, const sp<ABuffer> &accessUnit, sp<ABuffer> *packets) argument
887 sp<ABuffer> accessUnit = track->dequeueAccessUnit(); local
946 sp<ABuffer> accessUnit = track->dequeueOutputBuffer(); local
[all...]
H A DTSPacketizer.cpp54 sp<ABuffer> prependCSD(const sp<ABuffer> &accessUnit) const;
55 sp<ABuffer> prependADTSHeader(const sp<ABuffer> &accessUnit) const;
166 const sp<ABuffer> &accessUnit) const {
172 sp<ABuffer> dup = new ABuffer(accessUnit->size() + size);
181 memcpy(dup->data() + offset, accessUnit->data(), accessUnit->size());
187 const sp<ABuffer> &accessUnit) const {
192 const uint32_t aac_frame_length = accessUnit->size() + 7;
225 memcpy(ptr, accessUnit->data(), accessUnit
398 sp<ABuffer> accessUnit = _accessUnit; local
[all...]
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp56 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
443 setLastAccessUnit( const sp<ABuffer> &accessUnit) argument
833 writeAccessUnit( int32_t sourceIndex, const sp<ABuffer> &accessUnit) argument
[all...]
H A Davc_utils.cpp247 sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit) { argument
248 const uint8_t *data = accessUnit->data();
249 size_t size = accessUnit->size();
332 bool IsAVCReferenceFrame(const sp<ABuffer> &accessUnit) { argument
333 const uint8_t *data = accessUnit->data();
334 size_t size = accessUnit->size();
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp308 sp<ABuffer> accessUnit = new ABuffer(info.mLength); local
309 memcpy(accessUnit->data(), mBuffer->data(), info.mLength);
310 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs);
319 mFormat = MakeAVCCodecSpecificData(accessUnit);
322 return accessUnit;
374 sp<ABuffer> accessUnit = new ABuffer(payloadSize); local
375 memcpy(accessUnit->data(), mBuffer->data() + 4, payloadSize);
379 accessUnit->meta()->setInt64("timeUs", timeUs);
381 int16_t *ptr = (int16_t *)accessUnit->data();
393 return accessUnit;
472 sp<ABuffer> accessUnit = new ABuffer(offset); local
569 sp<ABuffer> accessUnit = new ABuffer(auSize); local
657 sp<ABuffer> accessUnit = new ABuffer(frameSize); local
814 sp<ABuffer> accessUnit = new ABuffer(offset); local
975 sp<ABuffer> accessUnit = new ABuffer(offset); local
[all...]
H A DMPEG2PSExtractor.cpp647 sp<ABuffer> accessUnit; local
648 while ((accessUnit = mQueue->dequeueAccessUnit()) != NULL) {
656 mSource->queueAccessUnit(accessUnit);
659 mSource->queueAccessUnit(accessUnit);
H A DATSParser.cpp860 sp<ABuffer> accessUnit; local
861 while ((accessUnit = mQueue->dequeueAccessUnit()) != NULL) {
870 mSource->queueAccessUnit(accessUnit);
880 mSource->queueAccessUnit(accessUnit);
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp342 status_t FragmentedMP4Parser::dequeueAccessUnit(bool audio, sp<ABuffer> *accessUnit, argument
368 CHECK(response->findBuffer("accessUnit", accessUnit));
528 sp<ABuffer> accessUnit; local
529 err = onDequeueAccessUnit(trackIndex, &accessUnit);
532 response->setBuffer("accessUnit", accessUnit);
833 size_t trackIndex, sp<ABuffer> *accessUnit) {
863 err = makeAccessUnit(info, sampleInfo, mdatInfo, accessUnit);
943 sp<ABuffer> *accessUnit) {
832 onDequeueAccessUnit( size_t trackIndex, sp<ABuffer> *accessUnit) argument
939 makeAccessUnit( TrackInfo *info, const SampleInfo &sample, const MediaDataInfo &mdatInfo, sp<ABuffer> *accessUnit) argument
[all...]

Completed in 175 milliseconds