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

12

/frameworks/av/include/media/stagefright/
H A DMediaSource.h41 // returns. Any buffers the object may be holding onto at the time of
43 // Also, it is imperative that any buffers output by this object and
58 // but should be prepared for buffers of the new configuration.
103 // The consumer of this media source requests that the given buffers
107 // Callee assumes ownership of the buffers if no error is returned.
108 virtual status_t setBuffers(const Vector<MediaBuffer *> &buffers) { argument
/frameworks/av/services/camera/libcameraservice/camera2/
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.h81 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++;
H A Darray.cpp1447 // buffers
1530 void glDeleteBuffers(GLsizei n, const GLuint* buffers) argument
1539 GLuint name = buffers[i];
1541 // unbind bound deleted buffers...
1576 c->bufferObjectManager->deleteBuffers(n, buffers);
1577 c->bufferObjectManager->recycleTokens(n, buffers);
1580 void glGenBuffers(GLsizei n, GLuint* buffers) argument
1587 c->bufferObjectManager->getToken(n, buffers);
/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp127 void* audio_track_cblk_t::buffer(void *buffers, size_t frameSize, uint32_t offset) const argument
129 return (int8_t *)buffers + (offset - userBase) * frameSize;
H A DIStreamSource.cpp62 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument
65 data.writeInt32(static_cast<int32_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);
/frameworks/av/services/camera/libcameraservice/camera3/
H A DCamera3Stream.cpp100 ALOGE("%s: Cannot configure stream; has outstanding buffers",
167 ALOGE("%s: Unable to register stream buffers with HAL: %s (%d)",
278 Vector<buffer_handle_t*> buffers; local
279 buffers.insertAt(NULL, 0, bufferCount);
284 bufferSet.buffers = buffers.editArray();
289 // Register all buffers with the HAL. This means getting all the buffers
294 // Only registered buffers can be sent to the HAL.
309 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.cpp50 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
87 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { argument
88 mBuffers = buffers;
130 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
196 const Vector<sp<IMemory> > &buffers) {
197 mBuffers = buffers;
195 setBuffers( const Vector<sp<IMemory> > &buffers) argument
/frameworks/av/include/private/media/
H A DAudioTrackShared.h68 // next 4 are offsets within "buffers"
131 // if there is a shared buffer, "buffers" is the value of pointer() for the shared
132 // buffer, otherwise "buffers" points immediately after the control block
133 void* buffer(void *buffers, uint32_t frameSize, size_t offset) const;
152 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize) argument
153 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize) { }
165 void* const mBuffers; // starting address of buffers
180 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize) argument
181 : Proxy(cblk, buffers, frameCount, frameSize) { }
190 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_ argument
239 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize) argument
265 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut) argument
[all...]
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp180 Vector<Buffer> *buffers) {
181 buffers->clear();
197 buffers->push(buffer);
303 // allocating all input and output buffers.
306 "all input and output buffers are allocated.");
308 // Now allocate buffers.
327 "after all input and output buffers were allocated.");
363 "Not all output buffers have been returned to us by the time "
390 "Not all input buffers have been returned to us by the "
397 "Not all output buffers hav
177 allocatePortBuffers( const sp<MemoryDealer> &dealer, IOMX::node_id node, OMX_U32 portIndex, Vector<Buffer> *buffers) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c47 short *buffers; variable
48 SLuint32 byteOrder; // desired to use for PCM buffers
88 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
221 fprintf(stderr, " -n# number of buffers (default 2)\n");
287 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers);
427 // loop until EOF or no more buffers
429 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
H A Dplaybq.cpp47 short *buffers; variable
48 SLuint32 byteOrder; // desired to use for PCM buffers
88 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
221 fprintf(stderr, " -n# number of buffers (default 2)\n");
287 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers);
427 // loop until EOF or no more buffers
429 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp352 status_t MediaCodec::getInputBuffers(Vector<sp<ABuffer> > *buffers) const {
355 msg->setPointer("buffers", buffers);
361 status_t MediaCodec::getOutputBuffers(Vector<sp<ABuffer> > *buffers) const {
364 msg->setPointer("buffers", buffers);
668 ALOGV("%s buffers allocated",
676 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
697 buffers->push_back(info);
702 // We're always allocating output buffers afte
1475 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
1502 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
[all...]
H A DOMXCodec.cpp50 // buffers after 3 seconds.
248 index, "output-buffers-are-unreadable")) {
1518 ALOGE("protected output buffers must be stent to an ANativeWindow");
1527 ALOGE("Storing meta data in video buffers is not supported");
1543 CODEC_LOGV("allocating %lu buffers of size %lu on %s port",
1649 Vector<MediaBuffer *> buffers; local
1654 buffers.push(mbuf);
1657 status_t err = mSource->setBuffers(buffers);
1661 buffers.editItemAt(i)->release();
1663 buffers
1892 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
2106 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
2157 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
2720 countBuffersWeOwn(const Vector<BufferInfo> &buffers) argument
2733 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
2763 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
2886 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
2899 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
2907 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
3228 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
3241 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
3912 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp76 void clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers);
78 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize);
102 bool mManualBufferMode; // Whether to use application managed buffers.
197 JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize)
202 if (!buffers->isEmpty()) {
203 ALOGV("Using callback buffer from queue of length %d", buffers->size());
204 jbyteArray globalBuffer = buffers->itemAt(0);
205 buffers->removeAt(0);
245 ALOGV("Out of buffers, clearing callback!");
372 // of buffers fo
196 getCallbackBuffer( JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize) argument
434 clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers) argument
[all...]
H A Dandroid_opengl_GLES11.cpp578 /* void glDeleteBuffers ( GLsizei n, const GLuint *buffers ) */
587 GLuint *buffers = (GLuint *) 0; local
592 _exceptionMessage = "buffers == null";
610 buffers = buffers_base + offset;
614 (GLuint *)buffers
627 /* void glDeleteBuffers ( GLsizei n, const GLuint *buffers ) */
637 GLuint *buffers = (GLuint *) 0; local
639 buffers = (GLuint *)getPointer(_env, buffers_buf, &_array, &_remaining, &_bufferOffset);
646 if (buffers == NULL) {
648 buffers
691 GLuint *buffers = (GLuint *) 0; local
741 GLuint *buffers = (GLuint *) 0; local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp214 Vector<sp<ABuffer> > buffers; local
218 ? mCodec->getInputBuffers(&buffers)
219 : mCodec->getOutputBuffers(&buffers);
247 buffers.size(), byteBufferClass, NULL);
253 for (size_t i = 0; i < buffers.size(); ++i) {
254 const sp<ABuffer> &buffer = buffers.itemAt(i);
769 jobjectArray buffers; local
770 status_t err = codec->getBuffers(env, input, &buffers);
773 return buffers;
/frameworks/av/services/camera/libcameraservice/
H A DCamera2Device.cpp670 ALOGVV("MetadataQueue: deque (%d buffers)", mCount);
1004 "usage 0x%x, producer wants %d buffers", __FUNCTION__,
1076 ALOGV("%s: Consumer wants %d buffers", __FUNCTION__,
1092 // Register allocated buffers with HAL device
1093 buffer_handle_t *buffers = new buffer_handle_t[mTotalBuffers]; local
1105 buffers[bufferIdx] = anwBuffers[bufferIdx]->handle;
1106 ALOGV("%s: Buffer %p allocated", __FUNCTION__, (void*)buffers[bufferIdx]);
1109 ALOGV("%s: Registering %d buffers with camera HAL", __FUNCTION__, mTotalBuffers);
1113 buffers);
1115 ALOGE("%s: Unable to register buffers wit
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLES11.java227 // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
231 int[] buffers,
235 // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
239 java.nio.IntBuffer buffers
251 // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
255 int[] buffers,
259 // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
263 java.nio.IntBuffer buffers
229 glDeleteBuffers( int n, int[] buffers, int offset ) argument
253 glGenBuffers( int n, int[] buffers, int offset ) argument
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL11.java204 int[] buffers,
210 java.nio.IntBuffer buffers
222 int[] buffers,
228 java.nio.IntBuffer buffers
202 glDeleteBuffers( int n, int[] buffers, int offset ) argument
220 glGenBuffers( int n, int[] buffers, int offset ) argument
/frameworks/native/libs/gui/tests/
H A DSurfaceTexture_test.cpp939 // and GPU-read buffers.
1519 // This test requires 3 buffers to avoid deadlock because we're
1571 // This test requires 3 buffers to complete run on a single thread.
1641 sp<GraphicBuffer> buffers[2]; local
1664 buffers[i] = mST->getCurrentBuffer();
1667 // Destroy the GL texture object to release its ref on buffers[2].
1677 EXPECT_EQ(1, buffers[0]->getStrongCount());
1682 EXPECT_EQ(2, buffers[1]->getStrongCount());
1686 sp<GraphicBuffer> buffers[3]; local
1710 buffers[
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp1401 list<sp<GraphicBuffer> > buffers; local
1413 // and push it onto the buffers list, so that it
1419 buffers.push_back(texture);
1447 // Free the layer list and graphic buffers

Completed in 3014 milliseconds

12