Home
last modified time | relevance | path

Searched refs:ABuffer (Results 1 – 25 of 163) sorted by relevance

1234567

/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.h32 struct ABuffer;
66 sp<ABuffer> clearSizes, sp<ABuffer> encSizes);
71 sp<ABuffer> dequeueAccessUnit();
94 sp<ABuffer> mClearSizes;
95 sp<ABuffer> mEncSizes;
102 sp<ABuffer> mBuffer;
105 sp<ABuffer> mScrambledBuffer;
119 sp<ABuffer> dequeueAccessUnitH264();
120 sp<ABuffer> dequeueAccessUnitAAC();
121 sp<ABuffer> dequeueAccessUnitEAC3();
[all …]
DESQueue.cpp676 sp<ABuffer> buffer = new ABuffer(neededSize); in appendData()
711 sp<ABuffer> clearSizes, sp<ABuffer> encSizes) { in appendScrambledData()
722 sp<ABuffer> buffer = new ABuffer(neededSize); in appendScrambledData()
748 sp<ABuffer> ElementaryStreamQueue::dequeueScrambledAccessUnit() { in dequeueScrambledAccessUnit()
759 sp<ABuffer> clearSizes, encSizes; in dequeueScrambledAccessUnit()
851 sp<ABuffer> scrambledAccessUnit = ABuffer::CreateAsCopy( in dequeueScrambledAccessUnit()
880 sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnit() { in dequeueAccessUnit()
893 sp<ABuffer> accessUnit = new ABuffer(info.mLength); in dequeueAccessUnit()
940 sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnitEAC3() { in dequeueAccessUnitEAC3()
996 sp<ABuffer> accessUnit = new ABuffer(syncStartPos + payloadSize); in dequeueAccessUnitEAC3()
[all …]
DAnotherPacketSource.cpp98 List<sp<ABuffer> >::iterator it = mBuffers.begin(); in getFormat()
100 sp<ABuffer> buffer = *it; in getFormat()
115 status_t AnotherPacketSource::dequeueAccessUnit(sp<ABuffer> *buffer) { in dequeueAccessUnit()
159 void AnotherPacketSource::requeueAccessUnit(const sp<ABuffer> &buffer) { in requeueAccessUnit()
176 const sp<ABuffer> buffer = *mBuffers.begin(); in read()
215 sp<ABuffer> sei; in read()
220 sp<ABuffer> mpegUserData; in read()
226 sp<ABuffer> ap; in read()
236 sp<ABuffer> clearBytesBuffer, encBytesBuffer; in read()
287 void AnotherPacketSource::queueAccessUnit(const sp<ABuffer> &buffer) { in queueAccessUnit()
[all …]
DAnotherPacketSource.h30 struct ABuffer;
65 void queueAccessUnit(const sp<ABuffer> &buffer);
74 status_t dequeueAccessUnit(sp<ABuffer> *buffer);
75 void requeueAccessUnit(const sp<ABuffer> &buffer);
120 List<sp<ABuffer> > mBuffers;
/frameworks/av/media/libstagefright/foundation/
DABuffer.cpp25 ABuffer::ABuffer(size_t capacity) in ABuffer() function in android::ABuffer
39 ABuffer::ABuffer(void *data, size_t capacity) in ABuffer() function in android::ABuffer
49 sp<ABuffer> ABuffer::CreateAsCopy(const void *data, size_t capacity) in CreateAsCopy()
51 sp<ABuffer> res = new ABuffer(capacity); in CreateAsCopy()
59 ABuffer::~ABuffer() { in ~ABuffer()
68 void ABuffer::setRange(size_t offset, size_t size) { in setRange()
76 sp<AMessage> ABuffer::meta() { in meta()
/frameworks/av/media/libstagefright/rtsp/
DARTPAssembler.cpp61 void ARTPAssembler::CopyTimes(const sp<ABuffer> &to, const sp<ABuffer> &from) { in CopyTimes()
72 sp<ABuffer> ARTPAssembler::MakeADTSCompoundFromAACFrames( in MakeADTSCompoundFromAACFrames()
76 const List<sp<ABuffer> > &frames) { in MakeADTSCompoundFromAACFrames()
78 for (List<sp<ABuffer> >::const_iterator it = frames.begin(); in MakeADTSCompoundFromAACFrames()
84 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeADTSCompoundFromAACFrames()
86 for (List<sp<ABuffer> >::const_iterator it = frames.begin(); in MakeADTSCompoundFromAACFrames()
88 sp<ABuffer> nal = *it; in MakeADTSCompoundFromAACFrames()
122 sp<ABuffer> ARTPAssembler::MakeCompoundFromPackets( in MakeCompoundFromPackets()
123 const List<sp<ABuffer> > &packets) { in MakeCompoundFromPackets()
125 for (List<sp<ABuffer> >::const_iterator it = packets.begin(); in MakeCompoundFromPackets()
[all …]
DAAVCAssembler.cpp48 List<sp<ABuffer> > *queue = source->queue(); in addNALUnit()
55 List<sp<ABuffer> >::iterator it = queue->begin(); in addNALUnit()
69 sp<ABuffer> buffer = *queue->begin(); in addNALUnit()
126 void AAVCAssembler::addSingleNALUnit(const sp<ABuffer> &buffer) { in addSingleNALUnit()
143 bool AAVCAssembler::addSingleTimeAggregationPacket(const sp<ABuffer> &buffer) { in addSingleTimeAggregationPacket()
162 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket()
181 List<sp<ABuffer> > *queue) { in addFragmentedNALUnit()
184 sp<ABuffer> buffer = *queue->begin(); in addFragmentedNALUnit()
226 List<sp<ABuffer> >::iterator it = ++queue->begin(); in addFragmentedNALUnit()
230 const sp<ABuffer> &buffer = *it; in addFragmentedNALUnit()
[all …]
DARTPAssembler.h27 struct ABuffer;
47 static void CopyTimes(const sp<ABuffer> &to, const sp<ABuffer> &from);
49 static sp<ABuffer> MakeADTSCompoundFromAACFrames(
53 const List<sp<ABuffer> > &frames);
55 static sp<ABuffer> MakeCompoundFromPackets(
56 const List<sp<ABuffer> > &frames);
DAPacketSource.cpp71 static sp<ABuffer> decodeHex(const AString &s) { in decodeHex()
77 sp<ABuffer> buffer = new ABuffer(outLen); in decodeHex()
106 static sp<ABuffer> MakeAVCCodecSpecificData( in MakeAVCCodecSpecificData()
112 sp<ABuffer> profileLevelID = NULL; in MakeAVCCodecSpecificData()
118 Vector<sp<ABuffer> > paramSets; in MakeAVCCodecSpecificData()
135 sp<ABuffer> nal = decodeBase64(nalString); in MakeAVCCodecSpecificData()
172 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData()
189 sp<ABuffer> nal = paramSets.editItemAt(i); in MakeAVCCodecSpecificData()
207 sp<ABuffer> nal = paramSets.editItemAt(i + numSeqParameterSets); in MakeAVCCodecSpecificData()
222 static sp<ABuffer> MakeAACCodecSpecificData(const char *params) { in MakeAACCodecSpecificData()
[all …]
DARTPSource.h29 struct ABuffer;
40 void processRTPPacket(const sp<ABuffer> &buffer);
44 List<sp<ABuffer> > *queue() { return &mQueue; } in queue()
46 void addReceiverReport(const sp<ABuffer> &buffer);
47 void addFIR(const sp<ABuffer> &buffer);
57 List<sp<ABuffer> > mQueue;
69 bool queuePacket(const sp<ABuffer> &buffer);
DAAVCAssembler.h28 struct ABuffer;
48 List<sp<ABuffer> > mNALUnits;
51 void addSingleNALUnit(const sp<ABuffer> &buffer);
52 AssemblyStatus addFragmentedNALUnit(List<sp<ABuffer> > *queue);
53 bool addSingleTimeAggregationPacket(const sp<ABuffer> &buffer);
DAH263Assembler.cpp54 List<sp<ABuffer> > *queue = source->queue(); in addPacket()
61 List<sp<ABuffer> >::iterator it = queue->begin(); in addPacket()
75 sp<ABuffer> buffer = *queue->begin(); in addPacket()
160 List<sp<ABuffer> >::iterator it = mPackets.begin(); in submitAccessUnit()
162 const sp<ABuffer> &unit = *it; in submitAccessUnit()
168 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit()
172 const sp<ABuffer> &unit = *it; in submitAccessUnit()
DAMPEG4AudioAssembler.cpp63 static sp<ABuffer> decodeHex(const AString &s) { in decodeHex()
69 sp<ABuffer> buffer = new ABuffer(outLen); in decodeHex()
145 static status_t parseAudioSpecificConfig(ABitReader *bits, sp<ABuffer> *asc) { in parseAudioSpecificConfig()
239 *asc = new ABuffer(numBytes); in parseAudioSpecificConfig()
362 sp<ABuffer> AMPEG4AudioAssembler::removeLATMFraming(const sp<ABuffer> &buffer) { in removeLATMFraming()
365 sp<ABuffer> out = new ABuffer(buffer->size()); in removeLATMFraming()
461 sp<ABuffer> config = decodeHex(val); in AMPEG4AudioAssembler()
496 List<sp<ABuffer> > *queue = source->queue(); in addPacket()
503 List<sp<ABuffer> >::iterator it = queue->begin(); in addPacket()
517 sp<ABuffer> buffer = *queue->begin(); in addPacket()
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
Decm.h137 status_t Parse(const sp<ABuffer>& buffer_as_binary);
152 status_t Decrypt(const sp<ABuffer>& buffer_as_binary,
158 const sp<ABuffer> buffer() const { return buffer_; } in buffer()
159 inline void set_buffer(const sp<ABuffer>& buffer) { in set_buffer()
160 buffer_ = ABuffer::CreateAsCopy(buffer->data(), buffer->size()); in set_buffer()
165 inline void set_content_key(const sp<ABuffer>& value) { in set_content_key()
166 content_key_ = ABuffer::CreateAsCopy(value->data(), value->size()); in set_content_key()
168 inline const sp<ABuffer> content_key() const { return content_key_; } in content_key()
189 sp<ABuffer> buffer_;
190 sp<ABuffer> content_key_;
[all …]
Decm.cpp41 status_t Ecm::Parse(const sp<ABuffer>& buffer_as_binary) { in Parse()
65 const sp<ABuffer>& buffer_as_binary, in Decrypt()
73 sp<ABuffer> content_key; in Decrypt()
98 status_t EcmDescriptor::Parse(const sp<ABuffer>& buffer_as_binary) { in Parse()
104 sp<ABuffer> id_buffer = new ABuffer(buffer_as_binary->data(), kIdSizeBytes); in Parse()
110 sp<ABuffer> ecm_buffer = new ABuffer( in Parse()
145 status_t EcmContainer::Parse(const sp<ABuffer>& buffer_as_binary) { in Parse()
154 sp<ABuffer> count_buffer = new ABuffer( in Parse()
178 sp<ABuffer> descriptor_buffer = new ABuffer( in Parse()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DABuffer.h31 struct ABuffer : public RefBase { struct
32 explicit ABuffer(size_t capacity);
33 ABuffer(void *data, size_t capacity);
44 static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity); argument
52 virtual ~ABuffer(); argument
66 DISALLOW_EVIL_CONSTRUCTORS(ABuffer); argument
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.h29 struct ABuffer;
113 static bool bufferStartsWithTsSyncByte(const sp<ABuffer>& buffer);
114 static bool bufferStartsWithWebVTTMagicSequence(const sp<ABuffer>& buffer);
141 KeyedVector<AString, sp<ABuffer> > mAESKeyForURI;
201 size_t playlistIndex, const sp<ABuffer> &buffer,
203 status_t checkDecryptPadding(const sp<ABuffer> &buffer);
238 const sp<ABuffer> &setAccessUnitProperties(
239 const sp<ABuffer> &accessUnit,
243 status_t extractAndQueueAccessUnitsFromTs(const sp<ABuffer> &buffer);
246 const sp<ABuffer> &buffer, const sp<AMessage> &itemMeta);
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.h89 sp<ABuffer> getImageData() const { return mImageData; } in getImageData()
105 void setImageData(const sp<ABuffer> &imageData);
107 sp<ABuffer> mImageData;
227 std::function<sp<ABuffer>(size_t)> alloc);
236 const sp<ABuffer> &buffer,
239 const sp<ABuffer> &imageData,
295 std::function<sp<ABuffer>(size_t)> alloc);
307 std::function<sp<ABuffer>(size_t)> alloc);
318 const sp<ABuffer> &aBuffer,
321 const sp<ABuffer> &imageData,
[all …]
DCodec2Buffer.cpp87 void Codec2Buffer::setImageData(const sp<ABuffer> &imageData) { in setImageData()
107 : Codec2Buffer(format, new ABuffer(sDummyByte, 1)), in DummyContainerBuffer()
154 : Codec2Buffer(format, new ABuffer(writeView.data(), writeView.size())), in LinearBlockBuffer()
180 : Codec2Buffer(format, new ABuffer( in ConstLinearBlockBuffer()
216 mMediaImage(new ABuffer(sizeof(MediaImage2))) { in GraphicView2MediaImageConverter()
292 mWrapped = new ABuffer(const_cast<uint8_t *>(minPtr), in GraphicView2MediaImageConverter()
442 sp<ABuffer> wrap() const { in wrap()
449 bool setBackBuffer(const sp<ABuffer> &backBuffer) { in setBackBuffer()
471 const sp<ABuffer> &imageData() const { return mMediaImage; } in imageData()
480 sp<ABuffer> mWrapped; ///< wrapped buffer (if we can map C2Buffer to an ABuffer)
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoderPassThrough.h59 sp<ABuffer> mPendingAudioAccessUnit;
61 sp<ABuffer> mAggregateBuffer;
72 status_t dequeueAccessUnit(sp<ABuffer> *accessUnit);
73 sp<ABuffer> aggregateBuffer(const sp<ABuffer> &accessUnit);
DNuPlayerCCDecoder.h43 void decode(const sp<ABuffer> &accessUnit);
67 KeyedVector<int64_t, sp<ABuffer> > mCCMap;
76 sp<ABuffer> mDTVCCPacket;
82 bool extractFromSEI(const sp<ABuffer> &accessUnit);
86 bool extractFromMPEGUserData(const sp<ABuffer> &accessUnit);
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp45 sp<ABuffer> mPsshBuf;
48 sp<ABuffer> U32ArrayToSizeBuf(size_t numSubSamples, uint32_t *data) { in U32ArrayToSizeBuf()
52 sp<ABuffer> sizebuf = new ABuffer(numSubSamples * sizeof(size_t)); in U32ArrayToSizeBuf()
181 sp<ABuffer> tmp = new ABuffer(buffer, capacity); in AMediaExtractor_readSampleData()
247 sp<ABuffer> buffer; in AMediaExtractor_getPsshInfo()
305 ex->mPsshBuf = new ABuffer(newsize); in AMediaExtractor_getPsshInfo()
388 sp<ABuffer> clearbuf = U32ArrayToSizeBuf(numSubSamples, (uint32_t *)cleardata); in AMediaExtractor_getSampleCryptoInfo()
389 sp<ABuffer> cryptedbuf = U32ArrayToSizeBuf(numSubSamples, (uint32_t *)crypteddata); in AMediaExtractor_getSampleCryptoInfo()
460 sp<ABuffer> sei = ABuffer::CreateAsCopy(seiData, seiLength);; in AMediaExtractor_getSampleFormat()
468 sp<ABuffer> mpegUserData = ABuffer::CreateAsCopy(mpegUserDataPointer, mpegUserDataLength); in AMediaExtractor_getSampleFormat()
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/tests/
DClearKeyFetcherTest.cpp72 sp<ABuffer> ecm_;
73 sp<ABuffer> content_key_[kTestEcmCount];
79 ecm_ = new ABuffer((void*) (kTestEcmContainer), sizeof(kTestEcmContainer)); in SetUp()
80 content_key_[0] = new ABuffer( in SetUp()
82 content_key_[1] = new ABuffer( in SetUp()
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp54 sp<ABuffer> lastAccessUnit();
56 void setLastAccessUnit(const sp<ABuffer> &accessUnit);
76 sp<ABuffer> mAACCodecSpecificData;
78 sp<ABuffer> mBuffer;
80 sp<ABuffer> mLastAccessUnit;
172 mAACCodecSpecificData = new ABuffer(codec_specific_data_size); in extractCodecSpecificData()
192 sp<ABuffer> out = new ABuffer(1024); in extractCodecSpecificData()
257 mBuffer = new ABuffer(buffer->range_length()); in appendAVCFrame()
287 mBuffer = new ABuffer(7 + buffer->range_length()); in appendAACFrames()
386 mAACCodecSpecificData = new ABuffer(buffer->range_length()); in onMessageReceived()
[all …]
DBufferImpl.cpp35 : MediaCodecBuffer(format, new ABuffer(mem->pointer(), mem->size())), in SharedMemoryBuffer()
40 : MediaCodecBuffer(format, new ABuffer(mem->getPointer(), mem->getSize())), in SharedMemoryBuffer()
47 : MediaCodecBuffer(format, new ABuffer(nullptr, size)), in SecureBuffer()
53 : MediaCodecBuffer(format, new ABuffer(nullptr, size)), in SecureBuffer()

1234567