Home
last modified time | relevance | path

Searched refs:MediaBuffer (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/av/media/libstagefright/foundation/
DMediaBuffer.cpp34 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 …]
DMediaBufferGroup.cpp33 (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/
DMediaBuffer.h35 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 …]
DMediaBufferGroup.h27 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;
DMediaAdapter.h43 MediaBuffer **buffer, const ReadOptions *options = NULL);
49 virtual void signalBufferReturned(MediaBuffer *buffer);
57 status_t pushBuffer(MediaBuffer *buffer);
66 MediaBuffer *mCurrentMediaBuffer;
DSimpleDecodingSource.h33 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);
DAudioSource.h55 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);
DMediaSource.h30 class MediaBuffer; variable
59 MediaBuffer **buffer, const ReadOptions *options = NULL) = 0;
74 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) { in setBuffers()
DMPEG4Writer.h33 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);
DSurfaceMediaSource.h82 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;
DCameraSourceTimeLapse.h110 MediaBuffer* mLastReadBufferCopy;
131 virtual void signalBufferReturned(MediaBuffer* buffer);
134 virtual status_t read(MediaBuffer **buffer, const ReadOptions *options = NULL);
173 void fillLastReadBufferCopy(MediaBuffer& sourceBuffer);
DMediaCodecSource.h61 MediaBuffer **buffer,
67 virtual void signalBufferReturned(MediaBuffer *buffer);
140 List<MediaBuffer *> mInputBufferQueue;
153 List<MediaBuffer*> mBufferQueue;
/frameworks/av/media/libmedia/include/media/
DIMediaSource.h113 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/
DIMediaSource.h113 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/
DARTPWriter.h35 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/
DOggExtractor.cpp57 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 …]
DAudioSource.cpp155 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()
DMidiExtractor.cpp48 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()
DCameraSourceTimeLapse.cpp171 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()
DMediaAdapter.cpp68 void MediaAdapter::signalBufferReturned(MediaBuffer *buffer) { in signalBufferReturned()
78 MediaBuffer **buffer, const ReadOptions * /* options */) { in read()
105 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { in pushBuffer()
DMediaCodecSource.cpp61 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/
DIMediaSource.cpp52 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/
DSineSource.cpp31 mGroup->add_buffer(new MediaBuffer(kBufferSize)); in start()
62 MediaBuffer **out, const ReadOptions * /* options */) { in read()
65 MediaBuffer *buffer; in read()
Drecord.cpp52 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/
DRepeaterSource.h23 MediaBuffer **buffer, const ReadOptions *options);
53 MediaBuffer *mBuffer;

1234