Searched defs:buffers (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/native/libs/gui/tests/
H A DSurfaceTextureGLToGL_test.cpp31 // This test requires 3 buffers to avoid deadlock because we're
83 // This test requires 3 buffers to complete run on a single thread.
153 sp<GraphicBuffer> buffers[2]; local
176 buffers[i] = mST->getCurrentBuffer();
179 // Destroy the GL texture object to release its ref on buffers[2].
189 EXPECT_EQ(1, buffers[0]->getStrongCount());
194 EXPECT_EQ(3, buffers[1]->getStrongCount());
198 sp<GraphicBuffer> buffers[3]; local
222 buffers[i] = mST->getCurrentBuffer();
226 // on buffers[
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLId.java26 public void glGenBuffers(int n, int[] buffers, int offset); argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); argument
32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); argument
H A DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { argument
20 GLES20.glGenBuffers(n, buffers, offset);
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument
33 GLES20.glDeleteBuffers(n, buffers, offset);
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DBurstCapture.cpp90 Vector<CpuConsumer::LockedBuffer*> buffers; local
91 buffers.push_back(imgBuffer);
92 buffers.push_back(imgEncoded);
95 jpeg->start(buffers, 1);
99 return buffers[1];
H A DJpegCompressor.cpp39 status_t JpegCompressor::start(Vector<CpuConsumer::LockedBuffer*> buffers, argument
51 mBuffers = buffers;
/frameworks/native/include/ui/
H A DFramebufferNativeWindow.h85 sp<NativeBuffer> buffers[MAX_NUM_FRAME_BUFFERS]; member in class:android::FramebufferNativeWindow
/frameworks/native/opengl/libagl/
H A DBufferObjectManager.cpp85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) argument
89 const GLuint t = *buffers++;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
78 ByteBuffer buffer = buffers[bufferIndex];
76 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
H A DCpuVideoTrackDecoder.java81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
84 mDecodedBuffer = buffers[bufferIndex];
80 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
H A DGpuVideoTrackDecoder.java107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
106 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
H A DTrackDecoder.java39 private static final long TIMEOUT_US = 50; // Timeout for en-queueing and de-queueing buffers.
67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info);
66 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
/frameworks/av/media/libmedia/
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
114 buffers.push(mem);
116 setBuffers(buffers);
H A DAudioTrackShared.cpp57 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, argument
59 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize),
67 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
69 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), mEpoch(0)
501 StaticAudioTrackClientProxy::StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, argument
503 : AudioTrackClientProxy(cblk, buffers, frameCount, frameSize),
593 ServerProxy::ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
595 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer),
817 StaticAudioTrackServerProxy::StaticAudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, argument
819 : AudioTrackServerProxy(cblk, buffers, frameCoun
[all...]
H A DAudioRecord.cpp586 // Starting address of buffers in shared memory.
587 // The buffers are either immediately after the control block,
589 void *buffers; local
591 buffers = cblk + 1;
593 buffers = bufferMem->pointer();
594 if (buffers == NULL) {
647 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize);
1030 // The callback is done consuming buffers
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c42 static char* buffers[BUFFER_COUNT]; variable
150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) {
175 err = pcm_write(pcm, buffers[index], BUFFER_SIZE);
200 buffers[i] = malloc(BUFFER_SIZE);
/frameworks/wilhelm/src/android/
H A Dandroid_StreamPlayer.cpp68 void StreamSourceAppProxy::setBuffers(const Vector<sp<IMemory> > &buffers) { argument
71 mBuffers = buffers;
81 // no buffers available to push data to from the buffer queue, bail
90 //SL_LOGD("onBufferAvailable() now %d buffers available in queue",
261 //SL_LOGD("%d buffers available after reading from queue", mAvailableBuffers.size());
/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);
199 const Vector<sp<IMemory> > &buffers) {
200 mBuffers = buffers;
198 setBuffers( const Vector<sp<IMemory> > &buffers) argument
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3Stream.cpp114 ALOGE("%s: Cannot configure stream; has outstanding buffers",
210 ALOGE("%s: Unable to register stream buffers with HAL: %s (%d)",
276 // buffers
284 ALOGE("%s: Stream %d: Can't prepare stream that has outstanding buffers",
329 // Get next buffer - this may allocate, and take a while for large buffers
339 // Check if we still have buffers left to allocate
344 // Done with prepare - mark stream as such, and return all buffers
369 // Return all valid buffers to stream, in ERROR state to indicate
397 // If any buffers have been handed to the HAL, the stream cannot be torn down.
399 ALOGE("%s: Stream %d: Can't tear down a stream that has outstanding buffers",
637 Vector<buffer_handle_t*> buffers; local
[all...]
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp330 Vector<sp<ABuffer> > buffers; local
331 err = encoder->getOutputBuffers(&buffers);
333 fprintf(stderr, "Unable to get output buffers (err=%d)\n", err);
400 fwrite(buffers[bufIndex]->data(), 1, size, rawFp);
416 err = muxer->writeSampleData(buffers[bufIndex], trackIdx,
460 ALOGV("Encoder buffers changed");
461 err = encoder->getOutputBuffers(&buffers);
464 "Unable to get new output buffers (err=%d)\n", err);
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp184 Vector<Buffer> *buffers) {
185 buffers->clear();
201 buffers->push(buffer);
285 // allocating all input and output buffers.
288 "all input and output buffers are allocated.");
290 // Now allocate buffers.
309 "after all input and output buffers were allocated.");
345 "Not all output buffers have been returned to us by the time "
372 "Not all input buffers have been returned to us by the "
379 "Not all output buffers hav
181 allocatePortBuffers( const sp<MemoryDealer> &dealer, IOMX::node_id node, OMX_U32 portIndex, Vector<Buffer> *buffers) argument
[all...]
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp95 // There must be no dequeued buffers when changing the buffer count.
117 // buffers and will release all of its buffer references. We don't
118 // clear the queue, however, so that currently queued buffers still
155 // Free up any buffers that are in slots beyond the max buffer count
182 BQ_LOGE("%s: can't dequeue multiple buffers without setting the "
189 // buffers check below
191 // Make sure the producer is not trying to dequeue more buffers
209 // our slots are empty but we have many buffers in the queue. This can
211 // it looks like we have too many buffers queued up.
232 // If no buffer is found, or if the queue has too many buffers
1014 Vector<sp<GraphicBuffer>> buffers; local
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c44 void *buffers; variable
45 SLuint32 byteOrder; // desired to use for PCM buffers
94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
250 fprintf(stderr, " -n# number of buffers (default 2)\n");
350 buffers = malloc(framesPerBuffer * sfframesize * numBuffers);
495 // loop until EOF or no more buffers
497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
H A Dplaybq.cpp44 void *buffers; variable
45 SLuint32 byteOrder; // desired to use for PCM buffers
94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
250 fprintf(stderr, " -n# number of buffers (default 2)\n");
350 buffers = malloc(framesPerBuffer * sfframesize * numBuffers);
495 // loop until EOF or no more buffers
497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
/frameworks/av/include/private/media/
H A DAudioTrackShared.h195 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
210 void* const mBuffers; // starting address of buffers
226 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
318 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
320 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/,
364 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
414 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
416 : ClientProxy(cblk, buffers, frameCount, frameSize,
426 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
472 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_ argument
558 AudioRecordServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool clientInServer) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp244 // check if the source requires secure buffers
320 bool audio, Vector<MediaBuffer *> &buffers) {
322 return mVideoTrack.mSource->setBuffers(buffers);
1025 // start pulling in more buffers if we only have one (or no) buffer left
1327 // more buffers.
319 setBuffers( bool audio, Vector<MediaBuffer *> &buffers) argument

Completed in 605 milliseconds

12