Searched defs:buffers (Results 1 - 25 of 31) 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/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/services/camera/libcameraservice/camera2/
H A DBurstCapture.cpp89 Vector<CpuConsumer::LockedBuffer*> buffers; local
90 buffers.push_back(imgBuffer);
91 buffers.push_back(imgEncoded);
94 status_t res = jpeg->start(buffers, 1);
98 return buffers[1];
H A DJpegCompressor.cpp39 status_t JpegCompressor::start(Vector<CpuConsumer::LockedBuffer*> buffers, argument
51 mBuffers = buffers;
/frameworks/av/media/libmedia/
H A DIStreamSource.cpp59 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument
62 data.writeInt32(static_cast<int32_t>(buffers.size()));
63 for (size_t i = 0; i < buffers.size(); ++i) {
64 data.writeStrongBinder(buffers.itemAt(i)->asBinder());
103 Vector<sp<IMemory> > buffers; local
108 buffers.push(mem);
110 setBuffers(buffers);
/frameworks/av/include/private/media/
H A DAudioTrackShared.h67 // next 4 are offsets within "buffers"
73 // if there is a shared buffer, "buffers" is the value of pointer() for the shared
74 // buffer, otherwise "buffers" points immediately after the control block
75 void* buffers; member in struct:android::audio_track_cblk_t
/frameworks/av/media/libstagefright/wifi-display/sink/
H A DTunnelRenderer.cpp55 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
97 const Vector<sp<IMemory> > &buffers) {
98 mBuffers = buffers;
96 setBuffers( const Vector<sp<IMemory> > &buffers) argument
/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.cpp49 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
86 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { argument
87 mBuffers = buffers;
129 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
195 const Vector<sp<IMemory> > &buffers) {
196 mBuffers = buffers;
194 setBuffers( const Vector<sp<IMemory> > &buffers) argument
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c43 short *buffers; variable
44 SLuint32 byteOrder; // desired to use for PCM buffers
80 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
173 fprintf(stderr, " -n# number of buffers (default 2)\n");
237 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers);
375 // loop until EOF or no more buffers
377 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp305 status_t MediaCodec::getInputBuffers(Vector<sp<ABuffer> > *buffers) const {
308 msg->setPointer("buffers", buffers);
314 status_t MediaCodec::getOutputBuffers(Vector<sp<ABuffer> > *buffers) const {
317 msg->setPointer("buffers", buffers);
570 ALOGV("%s buffers allocated",
578 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
599 buffers->push_back(info);
604 // We're always allocating output buffers afte
1256 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
1283 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
[all...]
H A DOMXCodec.cpp50 // buffers after 3 seconds.
248 index, "output-buffers-are-unreadable")) {
1512 ALOGE("protected output buffers must be stent to an ANativeWindow");
1521 ALOGE("Storing meta data in video buffers is not supported");
1537 CODEC_LOGV("allocating %lu buffers of size %lu on %s port",
1643 Vector<MediaBuffer *> buffers; local
1648 buffers.push(mbuf);
1651 status_t err = mSource->setBuffers(buffers);
1655 buffers.editItemAt(i)->release();
1657 buffers
1886 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
2100 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
2151 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
2714 countBuffersWeOwn(const Vector<BufferInfo> &buffers) argument
2727 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
2757 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; local
2880 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
2893 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
2901 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
3222 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; local
3235 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
3906 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; local
[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/base/media/jni/
H A Dandroid_media_MediaCodec.cpp206 Vector<sp<ABuffer> > buffers; local
210 ? mCodec->getInputBuffers(&buffers)
211 : mCodec->getOutputBuffers(&buffers);
239 buffers.size(), byteBufferClass, NULL);
241 for (size_t i = 0; i < buffers.size(); ++i) {
242 const sp<ABuffer> &buffer = buffers.itemAt(i);
697 jobjectArray buffers; local
698 status_t err = codec->getBuffers(env, input, &buffers);
701 return buffers;
/frameworks/av/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp309 virtual status_t registerBuffers(const BufferHeap& buffers);
328 status_t MSurface::registerBuffers(const BufferHeap& buffers) { argument
/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.cpp380 /* void glDeleteBuffers ( GLsizei n, const GLuint *buffers ) */
389 GLuint *buffers = (GLuint *) 0; local
394 _exceptionMessage = "buffers == null";
412 buffers = buffers_base + offset;
416 (GLuint *)buffers
429 /* void glDeleteBuffers ( GLsizei n, const GLuint *buffers ) */
439 GLuint *buffers = (GLuint *) 0; local
441 buffers = (GLuint *)getPointer(_env, buffers_buf, &_array, &_remaining, &_bufferOffset);
448 if (buffers == NULL) {
450 buffers
493 GLuint *buffers = (GLuint *) 0; local
543 GLuint *buffers = (GLuint *) 0; local
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCamera2Device.cpp669 ALOGVV("MetadataQueue: deque (%d buffers)", mCount);
1003 "usage 0x%x, producer wants %d buffers", __FUNCTION__,
1075 ALOGV("%s: Consumer wants %d buffers", __FUNCTION__,
1091 // Register allocated buffers with HAL device
1092 buffer_handle_t *buffers = new buffer_handle_t[mTotalBuffers]; local
1104 buffers[bufferIdx] = anwBuffers[bufferIdx]->handle;
1105 ALOGV("%s: Buffer %p allocated", __FUNCTION__, (void*)buffers[bufferIdx]);
1108 ALOGV("%s: Registering %d buffers with camera HAL", __FUNCTION__, mTotalBuffers);
1112 buffers);
1114 ALOGE("%s: Unable to register buffers wit
[all...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTexture_test.cpp844 // and GPU-read buffers.
1424 // This test requires 3 buffers to avoid deadlock because we're
1476 // This test requires 3 buffers to complete run on a single thread.
1546 sp<GraphicBuffer> buffers[2]; local
1569 buffers[i] = mST->getCurrentBuffer();
1572 // Destroy the GL texture object to release its ref on buffers[2].
1582 EXPECT_EQ(1, buffers[0]->getStrongCount());
1587 EXPECT_EQ(2, buffers[1]->getStrongCount());
1591 sp<GraphicBuffer> buffers[3]; local
1615 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
/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
H A DGLErrorWrapper.java991 public void glDeleteBuffers(int n, int[] buffers, int offset) { argument
993 mgl11.glDeleteBuffers(n, buffers, offset);
997 public void glDeleteBuffers(int n, IntBuffer buffers) { argument
999 mgl11.glDeleteBuffers(n, buffers);
1009 public void glGenBuffers(int n, int[] buffers, int offset) { argument
1011 mgl11.glGenBuffers(n, buffers, offset);
1015 public void glGenBuffers(int n, IntBuffer buffers) { argument
1017 mgl11.glGenBuffers(n, buffers);
/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

Completed in 586 milliseconds

12