Home
last modified time | relevance | path

Searched refs:MediaBufferBase (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferBase.h27 class MediaBufferBase; variable
35 virtual void signalBufferReturned(MediaBufferBase *buffer) = 0;
42 class MediaBufferBase {
44 static MediaBufferBase *Create(size_t size);
78 virtual ~MediaBufferBase() { in ~MediaBufferBase()
91 ((MediaBufferBase*)handle)->release(); in wrap()
95 return ((MediaBufferBase*)handle)->data(); in wrap()
99 return ((MediaBufferBase*)handle)->size(); in wrap()
103 return ((MediaBufferBase*)handle)->range_offset(); in wrap()
107 return ((MediaBufferBase*)handle)->range_length(); in wrap()
[all …]
DMediaBufferGroup.h31 class MediaBufferBase; variable
42 void add_buffer(MediaBufferBase *buffer);
55 MediaBufferBase **buffer, bool nonBlocking = false, size_t requestedSize = 0);
60 virtual void signalBufferReturned(MediaBufferBase *buffer);
71 MediaBufferBase *buf = MediaBufferBase::Create(size); in wrap()
84 MediaBufferBase *acquiredBuf = nullptr; in wrap()
DCameraSourceTimeLapse.h109 MediaBufferBase* mLastReadBufferCopy;
129 virtual void signalBufferReturned(MediaBufferBase* buffer);
132 virtual status_t read(MediaBufferBase **buffer, const ReadOptions *options = NULL);
144 void fillLastReadBufferCopy(MediaBufferBase& sourceBuffer);
DMediaCodecSource.h60 MediaBufferBase **buffer,
66 virtual void signalBufferReturned(MediaBufferBase *buffer);
142 List<MediaBufferBase *> mInputBufferQueue;
155 List<MediaBufferBase*> mBufferQueue;
DMediaAdapter.h43 MediaBufferBase **buffer, const ReadOptions *options = NULL);
49 virtual void signalBufferReturned(MediaBufferBase *buffer);
DNuMediaExtractor.h121 Sample(MediaBufferBase *buffer, int64_t timeUs);
122 MediaBufferBase *mBuffer;
167 status_t appendVorbisNumPageSamples(MediaBufferBase *mbuf, const sp<ABuffer> &buffer);
DSimpleDecodingSource.h68 virtual status_t read(MediaBufferBase **buffer, const ReadOptions *options);
107 Mutexed<ProtectedState>::Locked &me, MediaBufferBase **buffer,
DAudioSource.h74 MediaBufferBase **buffer, const ReadOptions *options = NULL);
78 virtual void signalBufferReturned(MediaBufferBase *buffer);
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.h107 MediaBufferBase *mVPSBuf;
108 MediaBufferBase *mSPSBuf;
109 MediaBufferBase *mPPSBuf;
148 void makeH264SPropParamSets(MediaBufferBase *buffer);
152 void sendVPSSPSPPSIfIFrame(MediaBufferBase *mediaBuf, int64_t timeUs);
153 void sendSPSPPSIfIFrame(MediaBufferBase *mediaBuf, int64_t timeUs);
154 void sendHEVCData(MediaBufferBase *mediaBuf);
155 void sendAVCData(MediaBufferBase *mediaBuf);
156 void sendH263Data(MediaBufferBase *mediaBuf);
157 void sendAMRData(MediaBufferBase *mediaBuf);
DARTPWriter.cpp320 static void StripStartcode(MediaBufferBase *buffer) { in StripStartcode()
337 static void SpsPpsParser(MediaBufferBase *buffer, in SpsPpsParser()
338 MediaBufferBase **spsBuffer, MediaBufferBase **ppsBuffer) { in SpsPpsParser()
344 MediaBufferBase **targetPtr = NULL; in SpsPpsParser()
355 MediaBufferBase *&target = *targetPtr; in SpsPpsParser()
379 target = MediaBufferBase::Create(targetSize); in SpsPpsParser()
387 target = MediaBufferBase::Create(targetSize); in SpsPpsParser()
397 static void VpsSpsPpsParser(MediaBufferBase *buffer, in VpsSpsPpsParser()
398 MediaBufferBase **vpsBuffer, MediaBufferBase **spsBuffer, MediaBufferBase **ppsBuffer) { in VpsSpsPpsParser()
404 MediaBufferBase **targetPtr = NULL; in VpsSpsPpsParser()
[all …]
/frameworks/av/media/libstagefright/tests/fuzzers/
DIMediaSourceFuzzImpl.h32 status_t read(MediaBufferBase**,
34 status_t readMultiple(Vector<MediaBufferBase*>*, uint32_t,
45 std::vector<std::shared_ptr<MediaBufferBase>> buffer_bases;
56 status_t IMediaSourceFuzzImpl::read(MediaBufferBase **buffer, in read()
58 Vector<MediaBufferBase*> buffers; in read()
65 status_t IMediaSourceFuzzImpl::readMultiple(Vector<MediaBufferBase*>* buffers, in readMultiple()
73 std::shared_ptr<MediaBufferBase> mbb( in readMultiple()
/frameworks/av/media/libmedia/include/media/
DMediaBufferHolder.h27 MediaBufferHolder(MediaBufferBase* buffer) in MediaBufferHolder()
40 MediaBufferBase* mediaBuffer() { return mMediaBuffer; } in mediaBuffer()
43 MediaBufferBase* const mMediaBuffer;
DIMediaSource.h67 MediaBufferBase **buffer,
83 Vector<MediaBufferBase *> *buffers, uint32_t maxNumBuffers = 1,
113 Vector<MediaBufferBase *> * /* buffers */, uint32_t /* maxNumBuffers = 1 */, in readMultiple() argument
/frameworks/av/media/libstagefright/foundation/
DMediaBufferGroup.cpp43 std::list<MediaBufferBase *> mBuffers;
105 for (MediaBufferBase *buffer : mInternal->mBuffers) { in ~MediaBufferGroup()
131 void MediaBufferGroup::add_buffer(MediaBufferBase *buffer) { in add_buffer()
156 for (MediaBufferBase *buffer : mInternal->mBuffers) { in has_buffers()
165 MediaBufferBase **out, bool nonBlocking, size_t requestedSize) { in acquire_buffer()
170 MediaBufferBase *buffer = nullptr; in acquire_buffer()
234 void MediaBufferGroup::signalBufferReturned(MediaBufferBase *) { in signalBufferReturned() argument
DMediaBufferBase.cpp26 MediaBufferBase *MediaBufferBase::Create(size_t size) { in Create()
/frameworks/av/include/media/
DMediaTrack.h36 class MediaBufferBase; variable
128 MediaBufferBase **buffer, const ReadOptions *options = NULL) = 0;
150 virtual status_t read(MediaBufferBase **buffer, const ReadOptions *options = NULL);
/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp168 void CameraSourceTimeLapse::signalBufferReturned(MediaBufferBase* buffer) { in signalBufferReturned()
182 const MediaBufferBase& sourceBuffer, in createMediaBufferCopy()
184 MediaBufferBase **newBuffer) { in createMediaBufferCopy()
197 void CameraSourceTimeLapse::fillLastReadBufferCopy(MediaBufferBase& sourceBuffer) { in fillLastReadBufferCopy()
207 MediaBufferBase **buffer, const ReadOptions *options) { in read()
DMediaCodecSource.cpp64 bool readBuffer(MediaBufferBase **buffer);
91 Vector<MediaBufferBase *> mReadBuffers;
96 bool readBuffer(MediaBufferBase **buffer);
98 void pushBuffer(MediaBufferBase *mbuf);
128 void MediaCodecSource::Puller::Queue::pushBuffer(MediaBufferBase *mbuf) { in pushBuffer()
132 bool MediaCodecSource::Puller::Queue::readBuffer(MediaBufferBase **mbuf) { in readBuffer()
143 MediaBufferBase *mbuf; in flush()
150 bool MediaCodecSource::Puller::readBuffer(MediaBufferBase **mbuf) { in readBuffer()
294 MediaBufferBase *mbuf = NULL; in onMessageReceived()
409 MediaBufferBase** buffer, const ReadOptions* /* options */) { in read()
[all …]
DMediaAdapter.cpp75 void MediaAdapter::signalBufferReturned(MediaBufferBase *buffer) { in signalBufferReturned()
85 MediaBufferBase **buffer, const ReadOptions * /* options */) { in read()
DJPEGSource.cpp112 MediaBufferBase **out, const ReadOptions *options) { in read()
121 MediaBufferBase *buffer; in read()
/frameworks/av/media/libstagefright/webm/
DWebmFrame.cpp30 sp<ABuffer> toABuffer(MediaBufferBase *mbuf) { in toABuffer()
49 WebmFrame::WebmFrame(int type, bool key, uint64_t absTimecode, MediaBufferBase *mbuf) in WebmFrame()
DWebmFrame.h33 WebmFrame(int type, bool key, uint64_t absTimecode, MediaBufferBase *buf);
/frameworks/av/cmds/stagefright/
DAudioPlayer.h72 MediaBufferBase *mInputBuffer;
94 MediaBufferBase *mFirstBuffer;
DSineSource.cpp63 MediaBufferBase **out, const ReadOptions * /* options */) { in read()
66 MediaBufferBase *buffer; in read()
/frameworks/av/media/libmedia/
DIMediaSource.cpp117 virtual status_t read(MediaBufferBase **buffer, in read()
119 Vector<MediaBufferBase *> buffers; in read()
128 Vector<MediaBufferBase *> *buffers, uint32_t maxNumBuffers, in readMultiple()
352 ret = read((MediaBufferBase **)&buf, useOptions ? &opts : nullptr); in onTransact()
375 (MediaBufferBase **)&transferBuf, false /* nonBlocking */, length); in onTransact()

123