Home
last modified time | relevance | path

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

1234

/frameworks/av/media/libstagefright/foundation/
DMediaBuffer.cpp33 MediaBuffer::MediaBuffer(void *data, size_t size) in MediaBuffer() function in android::MediaBuffer
46 MediaBuffer::MediaBuffer(size_t size) in MediaBuffer() function in android::MediaBuffer
75 MediaBuffer::MediaBuffer(const sp<GraphicBuffer>& graphicBuffer) in MediaBuffer() function in android::MediaBuffer
89 MediaBuffer::MediaBuffer(const sp<ABuffer> &buffer) in MediaBuffer() function in android::MediaBuffer
103 void MediaBuffer::release() { in release()
122 void MediaBuffer::claim() { in claim()
129 void MediaBuffer::add_ref() { in add_ref()
133 void *MediaBuffer::data() const { in data()
138 size_t MediaBuffer::size() const { in size()
143 size_t MediaBuffer::range_offset() const { in range_offset()
[all …]
DMediaBufferGroup.cpp32 MediaBuffer *next; in ~MediaBufferGroup()
33 for (MediaBuffer *buffer = mFirstBuffer; buffer != NULL; in ~MediaBufferGroup()
44 void MediaBufferGroup::add_buffer(MediaBuffer *buffer) { in add_buffer()
59 MediaBuffer **out, bool nonBlocking, size_t requestedSize) { in acquire_buffer()
63 MediaBuffer *freeBuffer = NULL; in acquire_buffer()
64 MediaBuffer *freeBufferPrevious = NULL; in acquire_buffer()
65 MediaBuffer *buffer = NULL; in acquire_buffer()
66 MediaBuffer *bufferPrevious = NULL; in acquire_buffer()
88 MediaBuffer *newBuffer = new MediaBuffer(allocateSize); in acquire_buffer()
127 void MediaBufferGroup::signalBufferReturned(MediaBuffer *) { in signalBufferReturned() argument
/frameworks/av/include/media/stagefright/
DMediaBuffer.h33 class MediaBuffer; variable
42 virtual void signalBufferReturned(MediaBuffer *buffer) = 0;
49 class MediaBuffer : public MediaBufferBase {
55 MediaBuffer(void *data, size_t size);
57 MediaBuffer(size_t size);
59 MediaBuffer(const sp<GraphicBuffer>& graphicBuffer);
61 MediaBuffer(const sp<ABuffer> &buffer);
90 MediaBuffer *clone();
95 virtual ~MediaBuffer();
108 MediaBuffer *mNextBuffer;
[all …]
DMediaBufferGroup.h27 class MediaBuffer; variable
35 void add_buffer(MediaBuffer *buffer);
46 MediaBuffer **buffer, bool nonBlocking = false, size_t requestedSize = 0);
49 virtual void signalBufferReturned(MediaBuffer *buffer);
52 friend class MediaBuffer;
57 MediaBuffer *mFirstBuffer, *mLastBuffer;
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
64 virtual status_t read(MediaBuffer **buffer, const ReadOptions *options);
68 virtual status_t setBuffers(const Vector<MediaBuffer *> &) { return INVALID_OPERATION; } in setBuffers() argument
103 Mutexed<ProtectedState>::Locked &me, MediaBuffer **buffer, const ReadOptions *options);
DAudioSource.h55 MediaBuffer **buffer, const ReadOptions *options = NULL);
58 virtual void signalBufferReturned(MediaBuffer *buffer);
95 List<MediaBuffer * > mBuffersReceived;
105 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()
DSurfaceMediaSource.h83 virtual status_t read(MediaBuffer **buffer,
94 virtual void signalBufferReturned(MediaBuffer* buffer);
191 Vector<MediaBuffer *> mPendingBuffers;
240 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);
162 void fillLastReadBufferCopy(MediaBuffer& sourceBuffer);
DMPEG4Writer.h31 class MediaBuffer; variable
120 List<MediaBuffer *> mSamples; // Sample data
125 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) in Chunk()
188 off64_t addSample_l(MediaBuffer *buffer);
189 off64_t addLengthPrefixedSample_l(MediaBuffer *buffer);
DMediaCodecSource.h60 MediaBuffer **buffer,
64 virtual void signalBufferReturned(MediaBuffer *buffer);
122 List<MediaBuffer *> mInputBufferQueue;
133 List<MediaBuffer*> mBufferQueue;
/frameworks/av/media/libmedia/
DIMediaSource.cpp52 RemoteMediaBufferReleaser(MediaBuffer *buf, sp<BnMediaSource> owner) { in RemoteMediaBufferReleaser()
75 MediaBuffer *mBuf;
83 class RemoteMediaBufferWrapper : public MediaBuffer {
94 : MediaBuffer(mem->pointer(), mem->size()) { in RemoteMediaBufferWrapper()
153 virtual status_t read(MediaBuffer **buffer, const ReadOptions *options) { in read()
176 MediaBuffer *buf = new RemoteMediaBufferWrapper(mem, remote); in read()
186 *buffer = new MediaBuffer(len); in read()
193 virtual status_t readMultiple(Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers) { in readMultiple()
213 MediaBuffer *buf = new MediaBuffer(len); in readMultiple()
231 virtual status_t setBuffers(const Vector<MediaBuffer *> & buffers __unused) { in setBuffers()
[all …]
/frameworks/av/include/media/
DIMediaSource.h28 class MediaBuffer; variable
102 MediaBuffer **buffer, const ReadOptions *options = NULL) = 0;
115 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers = 1) = 0;
127 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) = 0;
143 virtual status_t setBuffers(const Vector<MediaBuffer *> & /* buffers */) { in setBuffers() argument
148 Vector<MediaBuffer *> * /* buffers */, uint32_t /* maxNumBuffers = 1 */) { in readMultiple() argument
/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.cpp151 List<MediaBuffer *>::iterator it; in releaseQueuedFrames_l()
235 MediaBuffer **out, const ReadOptions * /* options */) { in read()
249 MediaBuffer *buffer = *mBuffersReceived.begin(); in read()
292 void AudioSource::signalBufferReturned(MediaBuffer *buffer) { in signalBufferReturned()
359 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); in dataCallback()
371 MediaBuffer *buffer = new MediaBuffer(bufferSize); in dataCallback()
379 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()
DMediaCodecSource.cpp59 bool readBuffer(MediaBuffer **buffer);
85 Vector<MediaBuffer *> mReadBuffers;
90 bool readBuffer(MediaBuffer **buffer);
92 void pushBuffer(MediaBuffer *mbuf);
122 void MediaCodecSource::Puller::Queue::pushBuffer(MediaBuffer *mbuf) { in pushBuffer()
126 bool MediaCodecSource::Puller::Queue::readBuffer(MediaBuffer **mbuf) { in readBuffer()
137 MediaBuffer *mbuf; in flush()
144 bool MediaCodecSource::Puller::readBuffer(MediaBuffer **mbuf) { in readBuffer()
277 MediaBuffer *mbuf = NULL; in onMessageReceived()
372 MediaBuffer** buffer, const ReadOptions* /* options */) { in read()
[all …]
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()
DFLACExtractor.cpp51 MediaBuffer **buffer, const ReadOptions *options = NULL);
106 MediaBuffer *readBuffer() { in readBuffer()
109 MediaBuffer *readBuffer(FLAC__uint64 sample) { in readBuffer()
148 MediaBuffer *readBuffer(bool doSeek, FLAC__uint64 sample);
638 mGroup->add_buffer(new MediaBuffer(mMaxBufferSize)); in allocateBuffers()
648 MediaBuffer *FLACParser::readBuffer(bool doSeek, FLAC__uint64 sample) in readBuffer()
685 MediaBuffer *buffer; in readBuffer()
756 MediaBuffer **outBuffer, const ReadOptions *options) in read()
758 MediaBuffer *buffer; in read()
/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) {
240 MediaBuffer *buffer;
270 MediaBuffer *buffer;
332 MediaBuffer *buffer; in main()
/frameworks/av/media/libstagefright/wifi-display/source/
DRepeaterSource.h23 MediaBuffer **buffer, const ReadOptions *options);
53 MediaBuffer *mBuffer;

1234