Searched defs:buffers (Results 1 - 25 of 47) 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(2, 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.h83 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.cpp62 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument
65 data.writeInt64(static_cast<int64_t>(buffers.size()));
66 for (size_t i = 0; i < buffers.size(); ++i) {
67 data.writeStrongBinder(buffers.itemAt(i)->asBinder());
106 Vector<sp<IMemory> > buffers; local
111 buffers.push(mem);
113 setBuffers(buffers);
H A DAudioRecord.cpp512 // Starting address of buffers in shared memory.
513 // The buffers are either immediately after the control block,
515 void *buffers; local
517 buffers = cblk + 1;
519 buffers = bufferMem->pointer();
520 if (buffers == NULL) {
573 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize);
942 // The callback is done consuming buffers
H A DAudioTrackShared.cpp43 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, argument
45 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize),
53 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
55 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), mEpoch(0)
485 StaticAudioTrackClientProxy::StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, argument
487 : AudioTrackClientProxy(cblk, buffers, frameCount, frameSize),
532 ServerProxy::ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
534 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer),
739 StaticAudioTrackServerProxy::StaticAudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, argument
741 : AudioTrackServerProxy(cblk, buffers, frameCoun
[all...]
/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/av/services/camera/libcameraservice/device3/
H A DCamera3Stream.cpp110 ALOGE("%s: Cannot configure stream; has outstanding buffers",
201 ALOGE("%s: Unable to register stream buffers with HAL: %s (%d)",
247 ALOGE("%s: Stream %d: Can't get buffers if stream is not in CONFIGURED state %d",
254 ALOGV("%s: Already dequeued max output buffers (%d), wait for next returned one.",
303 ALOGE("%s: Stream %d: Can't get input buffers if stream is not in CONFIGURED state %d",
310 ALOGV("%s: Already dequeued max input buffers (%d), wait for next returned one.",
429 Vector<buffer_handle_t*> buffers; local
430 buffers.insertAt(/*prototype_item*/NULL, /*index*/0, bufferCount);
435 bufferSet.buffers = buffers
[all...]
/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/cmds/screenrecord/
H A Dscreenrecord.cpp327 Vector<sp<ABuffer> > buffers; local
328 err = encoder->getOutputBuffers(&buffers);
330 fprintf(stderr, "Unable to get output buffers (err=%d)\n", err);
397 fwrite(buffers[bufIndex]->data(), 1, size, rawFp);
413 err = muxer->writeSampleData(buffers[bufIndex], trackIdx,
457 ALOGV("Encoder buffers changed");
458 err = encoder->getOutputBuffers(&buffers);
461 "Unable to get new output buffers (err=%d)\n", err);
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp182 Vector<Buffer> *buffers) {
183 buffers->clear();
199 buffers->push(buffer);
306 // allocating all input and output buffers.
309 "all input and output buffers are allocated.");
311 // Now allocate buffers.
330 "after all input and output buffers were allocated.");
366 "Not all output buffers have been returned to us by the time "
393 "Not all input buffers have been returned to us by the "
400 "Not all output buffers hav
179 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
177 // We return the oldest of the free buffers to avoid
179 // may still have pending reads of in-flight buffers
193 BQ_LOGE("%s: can't dequeue multiple buffers without setting the "
200 // buffers check below
202 // Make sure the producer is not trying to dequeue more buffers
218 // our slots are empty but we have many buffers i
953 Vector<sp<GraphicBuffer> > buffers; local
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c48 void *buffers; variable
49 SLuint32 byteOrder; // desired to use for PCM buffers
103 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
265 fprintf(stderr, " -n# number of buffers (default 2)\n");
356 buffers = malloc(framesPerBuffer * sfframesize * numBuffers);
501 // loop until EOF or no more buffers
503 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
H A Dplaybq.cpp48 void *buffers; variable
49 SLuint32 byteOrder; // desired to use for PCM buffers
103 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
265 fprintf(stderr, " -n# number of buffers (default 2)\n");
356 buffers = malloc(framesPerBuffer * sfframesize * numBuffers);
501 // loop until EOF or no more buffers
503 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
/frameworks/av/include/private/media/
H A DAudioTrackShared.h148 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
163 void* const mBuffers; // starting address of buffers
179 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
271 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
273 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/,
309 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
337 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument
339 : ClientProxy(cblk, buffers, frameCount, frameSize,
349 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
395 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_ argument
468 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.cpp235 // check if the source requires secure buffers
311 bool audio, Vector<MediaBuffer *> &buffers) {
313 return mVideoTrack.mSource->setBuffers(buffers);
1364 // more buffers.
310 setBuffers( bool audio, Vector<MediaBuffer *> &buffers) argument

Completed in 448 milliseconds

12