Searched refs:buffers (Results 1 - 25 of 94) sorted by path

1234

/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp331 Vector<sp<MediaCodecBuffer> > buffers; local
332 err = encoder->getOutputBuffers(&buffers);
334 fprintf(stderr, "Unable to get output buffers (err=%d)\n", err);
398 fwrite(buffers[bufIndex]->data(), 1, size, rawFp);
416 buffers[bufIndex]->data(), buffers[bufIndex]->size());
461 ALOGV("Encoder buffers changed");
462 err = encoder->getOutputBuffers(&buffers);
465 "Unable to get new output buffers (err=%d)\n", err);
/frameworks/av/cmds/stagefright/
H A Dstream.cpp51 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
88 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { argument
89 mBuffers = buffers;
131 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
205 const Vector<sp<IMemory> > &buffers) {
206 mBuffers = buffers;
204 setBuffers( const Vector<sp<IMemory> > &buffers) argument
/frameworks/av/include/media/
H A DIAudioFlinger.h89 sp<IMemory>& buffers, // return value 0 means it follows cblk
263 // Requests media.log to start merging log buffers
H A DIMediaSource.h39 // Maximum number of buffers would be read in readMultiple.
49 // returns. Any buffers the object may be holding onto at the time of
51 // Also, it is imperative that any buffers output by this object and
109 // but should be prepared for buffers of the new configuration.
115 // Returns a vector of new buffers of data, where the new buffers are added
118 // reached, or format change is hit, or |kMaxNumReadMultiple| buffers have
123 // but should be prepared for buffers of the new configuration.
128 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers = 1,
143 // The consumer of this media source requests that the given buffers
[all...]
H A DIStreamSource.h33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;
/frameworks/av/include/media/stagefright/
H A DMediaBufferGroup.h34 // create a media buffer group with preallocated buffers
35 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
54 size_t buffers() const { return mBuffers.size(); } function in class:android::MediaBufferGroup
H A DMediaCodec.h171 status_t getInputBuffers(Vector<sp<MediaCodecBuffer> > *buffers) const;
172 status_t getOutputBuffers(Vector<sp<MediaCodecBuffer> > *buffers) const;
/frameworks/av/include/private/media/
H A DAudioTrackShared.h205 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
222 void* const mBuffers; // starting address of buffers
238 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
356 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
358 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/,
407 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
457 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
459 : ClientProxy(cblk, buffers, frameCount, frameSize,
479 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
550 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_ argument
652 AudioRecordServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool clientInServer) argument
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioRecord.cpp679 // Starting address of buffers in shared memory.
680 // The buffers are either immediately after the control block,
682 void *buffers; local
684 buffers = cblk + 1;
686 buffers = bufferMem->pointer();
687 if (buffers == NULL) {
730 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize);
1123 // The callback is done consuming buffers
H A DAudioTrack.cpp1363 // FIXME: Ensure client side memory buffers need
1499 // The client can divide the AudioTrack buffer into sub-buffers,
1528 // Starting address of buffers in shared memory. If there is a shared buffer, buffers
1529 // is the value of pointer() for the shared buffer, otherwise buffers points
1532 void* buffers; local
1534 buffers = cblk + 1;
1536 buffers = mSharedBuffer->pointer();
1537 if (buffers == NULL) {
1561 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCoun
[all...]
H A DAudioTrackShared.cpp59 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, argument
61 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize),
69 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
71 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer)
523 StaticAudioTrackClientProxy::StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, argument
525 : AudioTrackClientProxy(cblk, buffers, frameCount, frameSize),
615 ServerProxy::ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
617 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer),
878 StaticAudioTrackServerProxy::StaticAudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, argument
880 : AudioTrackServerProxy(cblk, buffers, frameCoun
[all...]
H A DIAudioFlinger.cpp192 sp<IMemory>& buffers,
219 buffers.clear();
246 buffers = interface_cast<IMemory>(reply.readStrongBinder());
247 if (buffers != 0 && buffers->pointer() == NULL) {
248 buffers.clear();
258 // buffers is permitted to be 0
260 if (record != 0 || cblk != 0 || buffers != 0) {
262 "or buffers but with status %d", lStatus);
268 buffers
178 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *pFrameCount, audio_input_flags_t *flags, pid_t pid, pid_t tid, int clientUid, audio_session_t *sessionId, size_t *notificationFrames, sp<IMemory>& cblk, sp<IMemory>& buffers, status_t *status, audio_port_handle_t portId) argument
1026 sp<IMemory> buffers; local
[all...]
/frameworks/av/media/libaudioclient/include/media/
H A DIAudioFlinger.h89 sp<IMemory>& buffers, // return value 0 means it follows cblk
263 // Requests media.log to start merging log buffers
/frameworks/av/media/libmedia/
H A DIMediaSource.cpp117 Vector<MediaBuffer *> buffers; local
118 status_t ret = readMultiple(&buffers, 1 /* maxNumBuffers */, options);
119 *buffer = buffers.size() == 0 ? nullptr : buffers[0];
126 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers, const ReadOptions *options) {
128 if (buffers == NULL || !buffers->isEmpty()) {
147 "Received %u+ buffers and requested %u buffers",
180 buffers
125 readMultiple( Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers, const ReadOptions *options) argument
[all...]
H A DIStreamSource.cpp65 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument
68 data.writeInt64(static_cast<int64_t>(buffers.size()));
69 for (size_t i = 0; i < buffers.size(); ++i) {
70 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i)));
109 Vector<sp<IMemory> > buffers; local
115 buffers.push(mem);
120 setBuffers(buffers);
/frameworks/av/media/libmedia/include/media/
H A DIMediaSource.h39 // Maximum number of buffers would be read in readMultiple.
49 // returns. Any buffers the object may be holding onto at the time of
51 // Also, it is imperative that any buffers output by this object and
109 // but should be prepared for buffers of the new configuration.
115 // Returns a vector of new buffers of data, where the new buffers are added
118 // reached, or format change is hit, or |kMaxNumReadMultiple| buffers have
123 // but should be prepared for buffers of the new configuration.
128 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers = 1,
143 // The consumer of this media source requests that the given buffers
[all...]
H A DIStreamSource.h33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp304 bool audio, Vector<MediaBuffer *> &buffers) {
306 return mVideoTrack.mSource->setBuffers(buffers);
879 // start pulling in more buffers if we only have one (or no) buffer left
1223 // more buffers.
303 setBuffers( bool audio, Vector<MediaBuffer *> &buffers) argument
H A DGenericSource.h82 virtual status_t setBuffers(bool audio, Vector<MediaBuffer *> &buffers);
300 // include an item indicating skipping rendering all buffers with timestamp
/frameworks/av/media/libstagefright/
H A DACodec.cpp396 // Submit output buffers to the decoder, submit input buffers to client
400 // Returns true iff input and output buffers are in play.
677 // Some codecs may return input buffers before having them processed.
718 // no need to reconnect as we will not dequeue all buffers
744 ALOGE("new surface holds onto more buffers (%d) than planned for (%zu)",
749 // we cannot change the number of output buffers while OMX is running
751 Vector<BufferInfo> &buffers = mBuffers[kPortIndexOutput]; local
752 ALOGV("setting up surface for %zu buffers", buffers
[all...]
H A DMPEG4Extractor.cpp3844 const size_t buffers = min(kMaxBufferSize / max_size, kMaxBuffers); local
3845 mGroup = new MediaBufferGroup(buffers, max_size);
H A DMediaCodec.cpp1193 status_t MediaCodec::getInputBuffers(Vector<sp<MediaCodecBuffer> > *buffers) const {
1196 msg->setPointer("buffers", buffers);
1202 status_t MediaCodec::getOutputBuffers(Vector<sp<MediaCodecBuffer> > *buffers) const {
1205 msg->setPointer("buffers", buffers);
1261 std::vector<BufferInfo> &buffers = mPortBuffers[portIndex]; local
1262 if (index >= buffers.size()) {
1264 "bad index (index=%zu buffer_size=%zu)", index, buffers.size());
1268 const BufferInfo &info = buffers[inde
[all...]
/frameworks/av/media/libstagefright/codec2/include/
H A DC2Work.h87 std::vector<std::shared_ptr<C2Buffer>> buffers; member in struct:android::C2BufferPack
89 //< for output buffers, these are the responses to requestedInfos
103 //< output.buffers.
124 * the work is submitted. Allocating the output buffers in the worklets is the responsibility
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP_s.s43 ; * [in] pSrcMVLeftMB pointers to the motion vector buffers of the
46 ; * [in] pSrcMVUpperMB pointers to the motion vector buffers of the
49 ; * [in] pSrcMVUpperRightMB pointers to the motion vector buffers of the
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP_s.s43 ; * [in] pSrcMVLeftMB pointers to the motion vector buffers of the
46 ; * [in] pSrcMVUpperMB pointers to the motion vector buffers of the
49 ; * [in] pSrcMVUpperRightMB pointers to the motion vector buffers of the

Completed in 1879 milliseconds

1234