Home
last modified time | relevance | path

Searched refs:buffers (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/av/services/camera/libcameraservice/camera2/
DBurstCapture.cpp89 Vector<CpuConsumer::LockedBuffer*> buffers; in jpegEncode() local
90 buffers.push_back(imgBuffer); in jpegEncode()
91 buffers.push_back(imgEncoded); in jpegEncode()
94 status_t res = jpeg->start(buffers, 1); in jpegEncode()
98 return buffers[1]; in jpegEncode()
DJpegCompressor.cpp39 status_t JpegCompressor::start(Vector<CpuConsumer::LockedBuffer*> buffers, in start() argument
51 mBuffers = buffers; in start()
/frameworks/av/media/libmedia/
DIStreamSource.cpp62 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers()
65 data.writeInt32(static_cast<int32_t>(buffers.size())); in setBuffers()
66 for (size_t i = 0; i < buffers.size(); ++i) { in setBuffers()
67 data.writeStrongBinder(buffers.itemAt(i)->asBinder()); in setBuffers()
106 Vector<sp<IMemory> > buffers; in onTransact() local
111 buffers.push(mem); in onTransact()
113 setBuffers(buffers); in onTransact()
/frameworks/native/libs/ui/
DFramebufferNativeWindow.cpp119 buffers[i] = new NativeBuffer( in FramebufferNativeWindow()
127 GRALLOC_USAGE_HW_FB, &buffers[i]->handle, &buffers[i]->stride); in FramebufferNativeWindow()
167 if (buffers[i] != NULL) { in ~FramebufferNativeWindow()
168 grDev->free(grDev, buffers[i]->handle); in ~FramebufferNativeWindow()
250 ALOG_ASSERT(self->buffers[index] != self->front); in dequeueBuffer()
256 *buffer = self->buffers[index].get(); in dequeueBuffer()
/frameworks/av/cmds/stagefright/
Dstream.cpp49 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
86 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers() argument
87 mBuffers = buffers; in setBuffers()
129 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
195 const Vector<sp<IMemory> > &buffers) { in setBuffers()
196 mBuffers = buffers; in setBuffers()
/frameworks/av/media/libstagefright/
DOMXCodec.cpp1643 Vector<MediaBuffer *> buffers; in allocateBuffersOnPort() local
1648 buffers.push(mbuf); in allocateBuffersOnPort()
1651 status_t err = mSource->setBuffers(buffers); in allocateBuffersOnPort()
1655 buffers.editItemAt(i)->release(); in allocateBuffersOnPort()
1657 buffers.clear(); in allocateBuffersOnPort()
1886 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexOutput]; in dequeueBufferFromNativeWindow() local
1888 for (size_t i = 0; i < buffers->size(); i++) { in dequeueBufferFromNativeWindow()
1889 sp<GraphicBuffer> graphicBuffer = buffers->itemAt(i). in dequeueBufferFromNativeWindow()
1892 bufInfo = &buffers->editItemAt(i); in dequeueBufferFromNativeWindow()
2100 Vector<BufferInfo> *buffers = &mPortBuffers[kPortIndexInput]; in on_message() local
[all …]
DMediaCodec.cpp305 status_t MediaCodec::getInputBuffers(Vector<sp<ABuffer> > *buffers) const { in getInputBuffers()
308 msg->setPointer("buffers", buffers); in getInputBuffers()
314 status_t MediaCodec::getOutputBuffers(Vector<sp<ABuffer> > *buffers) const { in getOutputBuffers()
317 msg->setPointer("buffers", buffers); in getOutputBuffers()
578 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; in onMessageReceived() local
599 buffers->push_back(info); in onMessageReceived()
1256 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; in returnBuffersToCodecOnPort() local
1258 for (size_t i = 0; i < buffers->size(); ++i) { in returnBuffersToCodecOnPort()
1259 BufferInfo *info = &buffers->editItemAt(i); in returnBuffersToCodecOnPort()
1283 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; in updateBuffers() local
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_Camera.cpp76 void clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers);
78 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize);
197 JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize) in getCallbackBuffer() argument
202 if (!buffers->isEmpty()) { in getCallbackBuffer()
203 ALOGV("Using callback buffer from queue of length %d", buffers->size()); in getCallbackBuffer()
204 jbyteArray globalBuffer = buffers->itemAt(0); in getCallbackBuffer()
205 buffers->removeAt(0); in getCallbackBuffer()
434 void JNICameraContext::clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers) { in clearCallbackBuffers_l() argument
435 ALOGV("Clearing callback buffers, %d remained", buffers->size()); in clearCallbackBuffers_l()
436 while (!buffers->isEmpty()) { in clearCallbackBuffers_l()
[all …]
Dandroid_opengl_GLES11.cpp389 GLuint *buffers = (GLuint *) 0; in android_glDeleteBuffers__I_3II() local
412 buffers = buffers_base + offset; in android_glDeleteBuffers__I_3II()
416 (GLuint *)buffers in android_glDeleteBuffers__I_3II()
439 GLuint *buffers = (GLuint *) 0; in android_glDeleteBuffers__ILjava_nio_IntBuffer_2() local
441 buffers = (GLuint *)getPointer(_env, buffers_buf, &_array, &_remaining, &_bufferOffset); in android_glDeleteBuffers__ILjava_nio_IntBuffer_2()
448 if (buffers == NULL) { in android_glDeleteBuffers__ILjava_nio_IntBuffer_2()
450 buffers = (GLuint *) (_buffersBase + _bufferOffset); in android_glDeleteBuffers__ILjava_nio_IntBuffer_2()
454 (GLuint *)buffers in android_glDeleteBuffers__ILjava_nio_IntBuffer_2()
459 releasePointer(_env, _array, buffers, JNI_FALSE); in android_glDeleteBuffers__ILjava_nio_IntBuffer_2()
493 GLuint *buffers = (GLuint *) 0; in android_glGenBuffers__I_3II() local
[all …]
/frameworks/native/opengl/libagl/
DBufferObjectManager.cpp85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) in deleteBuffers() argument
89 const GLuint t = *buffers++; in deleteBuffers()
Dstate.cpp370 int index = c->rasterizer.state.buffers.color.format; in glGetIntegerv()
376 int index = c->rasterizer.state.buffers.color.format; in glGetIntegerv()
382 int index = c->rasterizer.state.buffers.color.format; in glGetIntegerv()
388 int index = c->rasterizer.state.buffers.color.format; in glGetIntegerv()
410 params[0] = c->rasterizer.state.buffers.depth.format ? 0 : 16; in glGetIntegerv()
DBufferObjectManager.h64 void deleteBuffers(GLsizei n, const GLuint* buffers);
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp206 Vector<sp<ABuffer> > buffers; in getBuffers() local
210 ? mCodec->getInputBuffers(&buffers) in getBuffers()
211 : mCodec->getOutputBuffers(&buffers); in getBuffers()
239 buffers.size(), byteBufferClass, NULL); in getBuffers()
241 for (size_t i = 0; i < buffers.size(); ++i) { in getBuffers()
242 const sp<ABuffer> &buffer = buffers.itemAt(i); in getBuffers()
697 jobjectArray buffers; in android_media_MediaCodec_getBuffers() local
698 status_t err = codec->getBuffers(env, input, &buffers); in android_media_MediaCodec_getBuffers()
701 return buffers; in android_media_MediaCodec_getBuffers()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL11.java204 int[] buffers, in glDeleteBuffers() argument
210 java.nio.IntBuffer buffers in glDeleteBuffers() argument
222 int[] buffers, in glGenBuffers() argument
228 java.nio.IntBuffer buffers in glGenBuffers() argument
/frameworks/base/opengl/java/android/opengl/
DGLES11.java231 int[] buffers, in glDeleteBuffers() argument
239 java.nio.IntBuffer buffers in glDeleteBuffers() argument
255 int[] buffers, in glGenBuffers() argument
263 java.nio.IntBuffer buffers in glGenBuffers() argument
/frameworks/wilhelm/tests/sandbox/
Dplaybq.c43 short *buffers; variable
80 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; in callback()
237 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers); in main()
377 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; in main()
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES11.spec8 void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
10 void glGenBuffers ( GLsizei n, GLuint *buffers )
Dchecks.spec5 glDeleteBuffers check buffers n
9 glGenBuffers check buffers n
/frameworks/av/media/libstagefright/wifi-display/sink/
DTunnelRenderer.cpp55 virtual void setBuffers(const Vector<sp<IMemory> > &buffers);
97 const Vector<sp<IMemory> > &buffers) { in setBuffers()
98 mBuffers = buffers; in setBuffers()
/frameworks/native/opengl/specs/
DEGL_ANDROID_framebuffer_target.txt43 supports rendering to an ANativeWindow for which the buffers are passed to
83 which the buffers are to be passed to HWComposer as a framebuffer
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.18 void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
10 void glGenBuffers ( GLsizei n, GLuint *buffers )
Dglspec-checks3 glDeleteBuffers check buffers n
7 glGenBuffers check buffers n
/frameworks/av/include/media/stagefright/
DMediaCodec.h106 status_t getInputBuffers(Vector<sp<ABuffer> > *buffers) const;
107 status_t getOutputBuffers(Vector<sp<ABuffer> > *buffers) const;
DMediaSource.h108 virtual status_t setBuffers(const Vector<MediaBuffer *> &buffers) { in setBuffers()
/frameworks/av/include/media/
DIStreamSource.h33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;

1234