/frameworks/av/media/libstagefright/foundation/ |
D | MediaBuffer.cpp | 34 std::atomic_int_least32_t MediaBuffer::mUseSharedMemory(0); 36 MediaBuffer::MediaBuffer(void *data, size_t size) in MediaBuffer() function in android::MediaBuffer 48 MediaBuffer::MediaBuffer(size_t size) in MediaBuffer() function in android::MediaBuffer 80 MediaBuffer::MediaBuffer(const sp<GraphicBuffer>& graphicBuffer) in MediaBuffer() function in android::MediaBuffer 93 MediaBuffer::MediaBuffer(const sp<ABuffer> &buffer) in MediaBuffer() function in android::MediaBuffer 106 void MediaBuffer::release() { in release() 126 void MediaBuffer::claim() { in claim() 133 void MediaBuffer::add_ref() { in add_ref() 137 void *MediaBuffer::data() const { in data() 142 size_t MediaBuffer::size() const { in size() [all …]
|
D | MediaBufferGroup.cpp | 33 (size_t)MediaBuffer::kSharedMemThreshold, (size_t)(4 * 1024)); 54 size_t augmented_size = buffer_size + sizeof(MediaBuffer::SharedControl); in MediaBufferGroup() 64 MediaBuffer *buffer = new MediaBuffer(mem); in MediaBufferGroup() 73 MediaBuffer *buffer = new MediaBuffer(buffer_size); in MediaBufferGroup() 84 for (MediaBuffer *buffer : mBuffers) { in ~MediaBufferGroup() 108 void MediaBufferGroup::add_buffer(MediaBuffer *buffer) { in add_buffer() 133 for (MediaBuffer *buffer : mBuffers) { in has_buffers() 142 MediaBuffer **out, bool nonBlocking, size_t requestedSize) { in acquire_buffer() 146 MediaBuffer *buffer = nullptr; in acquire_buffer() 166 buffer = new MediaBuffer(allocateSize); in acquire_buffer() [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaBuffer.h | 35 class MediaBuffer; variable 44 virtual void signalBufferReturned(MediaBuffer *buffer) = 0; 51 class MediaBuffer : public MediaBufferBase { 57 MediaBuffer(void *data, size_t size); 59 explicit MediaBuffer(size_t size); 61 explicit MediaBuffer(const sp<GraphicBuffer>& graphicBuffer); 63 explicit MediaBuffer(const sp<ABuffer> &buffer); 65 MediaBuffer(const sp<IMemory> &mem) : in MediaBuffer() function 66 MediaBuffer((uint8_t *)mem->pointer() + sizeof(SharedControl), mem->size()) { in MediaBuffer() 103 MediaBuffer *clone(); [all …]
|
D | MediaBufferGroup.h | 27 class MediaBuffer; variable 39 void add_buffer(MediaBuffer *buffer); 52 MediaBuffer **buffer, bool nonBlocking = false, size_t requestedSize = 0); 57 virtual void signalBufferReturned(MediaBuffer *buffer); 60 friend class MediaBuffer; 65 std::list<MediaBuffer *> mBuffers;
|
D | MediaAdapter.h | 43 MediaBuffer **buffer, const ReadOptions *options = NULL); 49 virtual void signalBufferReturned(MediaBuffer *buffer); 57 status_t pushBuffer(MediaBuffer *buffer); 66 MediaBuffer *mCurrentMediaBuffer;
|
D | SimpleDecodingSource.h | 33 class MediaBuffer; variable 67 virtual status_t read(MediaBuffer **buffer, const ReadOptions *options); 71 virtual status_t setBuffers(const Vector<MediaBuffer *> &) { return INVALID_OPERATION; } in setBuffers() argument 107 Mutexed<ProtectedState>::Locked &me, MediaBuffer **buffer, const ReadOptions *options);
|
D | AudioSource.h | 55 MediaBuffer **buffer, const ReadOptions *options = NULL); 59 virtual void signalBufferReturned(MediaBuffer *buffer); 100 List<MediaBuffer * > mBuffersReceived; 110 void queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs);
|
D | MediaSource.h | 30 class MediaBuffer; variable 59 MediaBuffer **buffer, const ReadOptions *options = NULL) = 0; 74 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) { in setBuffers()
|
D | MPEG4Writer.h | 33 class MediaBuffer; variable 140 List<MediaBuffer *> mSamples; // Sample data 145 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) 213 off64_t addSample_l(MediaBuffer *buffer); 214 off64_t addLengthPrefixedSample_l(MediaBuffer *buffer); 215 off64_t addMultipleLengthPrefixedSamples_l(MediaBuffer *buffer);
|
D | SurfaceMediaSource.h | 82 virtual status_t read(MediaBuffer **buffer, 93 virtual void signalBufferReturned(MediaBuffer* buffer); 190 Vector<MediaBuffer *> mPendingBuffers; 239 void passMetadataBuffer_l(MediaBuffer **buffer, ANativeWindowBuffer *bufferHandle) const;
|
D | CameraSourceTimeLapse.h | 110 MediaBuffer* mLastReadBufferCopy; 131 virtual void signalBufferReturned(MediaBuffer* buffer); 134 virtual status_t read(MediaBuffer **buffer, const ReadOptions *options = NULL); 173 void fillLastReadBufferCopy(MediaBuffer& sourceBuffer);
|
D | MediaCodecSource.h | 61 MediaBuffer **buffer, 67 virtual void signalBufferReturned(MediaBuffer *buffer); 140 List<MediaBuffer *> mInputBufferQueue; 153 List<MediaBuffer*> mBufferQueue;
|
/frameworks/av/media/libmedia/include/media/ |
D | IMediaSource.h | 113 MediaBuffer **buffer, const ReadOptions *options = NULL) = 0; 128 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers = 1, 148 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) = 0; 164 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) { in setBuffers() argument 170 Vector<MediaBuffer *> * /* buffers */, uint32_t /* maxNumBuffers = 1 */, in readMultiple() argument 213 if (MediaBuffer::isDeadObject(p->second.first)) { in lookup() 249 if (MediaBuffer::isDeadObject(it->second.first)) { in gc()
|
/frameworks/av/include/media/ |
D | IMediaSource.h | 113 MediaBuffer **buffer, const ReadOptions *options = NULL) = 0; 128 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers = 1, 148 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) = 0; 164 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) { in setBuffers() argument 170 Vector<MediaBuffer *> * /* buffers */, uint32_t /* maxNumBuffers = 1 */, in readMultiple() argument 213 if (MediaBuffer::isDeadObject(p->second.first)) { in lookup() 249 if (MediaBuffer::isDeadObject(it->second.first)) { in gc()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTPWriter.h | 35 class MediaBuffer; variable 113 void makeH264SPropParamSets(MediaBuffer *buffer); 117 void sendAVCData(MediaBuffer *mediaBuf); 118 void sendH263Data(MediaBuffer *mediaBuf); 119 void sendAMRData(MediaBuffer *mediaBuf);
|
/frameworks/av/media/libstagefright/ |
D | OggExtractor.cpp | 57 MediaBuffer **buffer, const ReadOptions *options = NULL); 85 virtual status_t readNextPacket(MediaBuffer **buffer) = 0; 144 virtual status_t verifyHeader(MediaBuffer *buffer, uint8_t type) = 0; 152 status_t _readNextPacket(MediaBuffer **buffer, bool calcVorbisTimestamp); 154 int32_t getPacketBlockSize(MediaBuffer *buffer); 176 virtual status_t readNextPacket(MediaBuffer **buffer) { in readNextPacket() 188 virtual status_t verifyHeader(MediaBuffer *buffer, uint8_t type); 206 virtual status_t readNextPacket(MediaBuffer **buffer); 210 virtual status_t verifyHeader(MediaBuffer *buffer, uint8_t type); 213 status_t verifyOpusHeader(MediaBuffer *buffer); [all …]
|
D | AudioSource.cpp | 155 List<MediaBuffer *>::iterator it; in releaseQueuedFrames_l() 241 MediaBuffer **out, const ReadOptions * /* options */) { in read() 258 MediaBuffer *buffer = *mBuffersReceived.begin(); in read() 312 void AudioSource::signalBufferReturned(MediaBuffer *buffer) { in signalBufferReturned() 405 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); in dataCallback() 417 MediaBuffer *buffer = new MediaBuffer(bufferSize); in dataCallback() 425 void AudioSource::queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs) { in queueInputBuffer_l()
|
D | MidiExtractor.cpp | 48 MediaBuffer **buffer, const ReadOptions *options = NULL); 117 MediaBuffer **outBuffer, const ReadOptions *options) in read() 120 MediaBuffer *buffer; in read() 210 mGroup->add_buffer(new MediaBuffer(bufsize)); in allocateBuffers() 226 MediaBuffer* MidiEngine::readBuffer() { in readBuffer() 232 MediaBuffer *buffer; in readBuffer()
|
D | CameraSourceTimeLapse.cpp | 171 void CameraSourceTimeLapse::signalBufferReturned(MediaBuffer* buffer) { in signalBufferReturned() 183 const MediaBuffer& sourceBuffer, in createMediaBufferCopy() 185 MediaBuffer **newBuffer) { in createMediaBufferCopy() 191 (*newBuffer) = new MediaBuffer(sourceSize); in createMediaBufferCopy() 197 void CameraSourceTimeLapse::fillLastReadBufferCopy(MediaBuffer& sourceBuffer) { in fillLastReadBufferCopy() 207 MediaBuffer **buffer, const ReadOptions *options) { in read()
|
D | MediaAdapter.cpp | 68 void MediaAdapter::signalBufferReturned(MediaBuffer *buffer) { in signalBufferReturned() 78 MediaBuffer **buffer, const ReadOptions * /* options */) { in read() 105 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { in pushBuffer()
|
D | MediaCodecSource.cpp | 61 bool readBuffer(MediaBuffer **buffer); 88 Vector<MediaBuffer *> mReadBuffers; 93 bool readBuffer(MediaBuffer **buffer); 95 void pushBuffer(MediaBuffer *mbuf); 125 void MediaCodecSource::Puller::Queue::pushBuffer(MediaBuffer *mbuf) { in pushBuffer() 129 bool MediaCodecSource::Puller::Queue::readBuffer(MediaBuffer **mbuf) { in readBuffer() 140 MediaBuffer *mbuf; in flush() 147 bool MediaCodecSource::Puller::readBuffer(MediaBuffer **mbuf) { in readBuffer() 300 MediaBuffer *mbuf = NULL; in onMessageReceived() 415 MediaBuffer** buffer, const ReadOptions* /* options */) { in read() [all …]
|
/frameworks/av/media/libmedia/ |
D | IMediaSource.cpp | 52 class RemoteMediaBufferWrapper : public MediaBuffer { 55 : MediaBuffer(mem) { in RemoteMediaBufferWrapper() 116 virtual status_t read(MediaBuffer **buffer, const ReadOptions *options) { in read() 117 Vector<MediaBuffer *> buffers; in read() 126 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers, const ReadOptions *options) { in readMultiple() 149 MediaBuffer *buf; in readMultiple() 176 buf = new MediaBuffer(len); in readMultiple() 213 virtual status_t setBuffers(const Vector<MediaBuffer *> & buffers __unused) { in setBuffers() 253 if (MediaBuffer::isDeadObject(it->second)) { in gc() 346 MediaBuffer *buf = nullptr; in onTransact() [all …]
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 31 mGroup->add_buffer(new MediaBuffer(kBufferSize)); in start() 62 MediaBuffer **out, const ReadOptions * /* options */) { in read() 65 MediaBuffer *buffer; in read()
|
D | record.cpp | 52 mGroup.add_buffer(new MediaBuffer(mSize)); 80 MediaBuffer **buffer, const MediaSource::ReadOptions *options) { 238 MediaBuffer *buffer; 268 MediaBuffer *buffer; 330 MediaBuffer *buffer; in main()
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
D | RepeaterSource.h | 23 MediaBuffer **buffer, const ReadOptions *options); 53 MediaBuffer *mBuffer;
|