Lines Matching refs:CpuConsumer

26 #include <gui/CpuConsumer.h>
76 class JNIImageReaderContext : public CpuConsumer::FrameAvailableListener
85 CpuConsumer::LockedBuffer* getLockedBuffer();
87 void returnLockedBuffer(CpuConsumer::LockedBuffer* buffer);
89 void setCpuConsumer(const sp<CpuConsumer>& consumer) { mConsumer = consumer; }
90 CpuConsumer* getCpuConsumer() { return mConsumer.get(); }
108 List<CpuConsumer::LockedBuffer*> mBuffers;
109 sp<CpuConsumer> mConsumer;
123 CpuConsumer::LockedBuffer *buffer = new CpuConsumer::LockedBuffer;
153 CpuConsumer::LockedBuffer* JNIImageReaderContext::getLockedBuffer() {
158 List<CpuConsumer::LockedBuffer*>::iterator it = mBuffers.begin();
159 CpuConsumer::LockedBuffer* buffer = *it;
164 void JNIImageReaderContext::returnLockedBuffer(CpuConsumer::LockedBuffer* buffer) {
182 for (List<CpuConsumer::LockedBuffer *>::iterator it = mBuffers.begin();
217 static CpuConsumer* ImageReader_getCpuConsumer(JNIEnv* env, jobject thiz)
254 static CpuConsumer::LockedBuffer* Image_getLockedBuffer(JNIEnv* env, jobject image)
256 return reinterpret_cast<CpuConsumer::LockedBuffer*>(
261 const CpuConsumer::LockedBuffer* buffer)
289 static uint32_t Image_getJpegSize(CpuConsumer::LockedBuffer* buffer, bool usingRGBAOverride)
338 static void Image_getLockedBufferInfo(JNIEnv* env, CpuConsumer::LockedBuffer* buffer, int idx,
485 static jint Image_imageGetPixelStride(JNIEnv* env, CpuConsumer::LockedBuffer* buffer, int idx,
546 static jint Image_imageGetRowStride(JNIEnv* env, CpuConsumer::LockedBuffer* buffer, int idx,
621 static int Image_getBufferWidth(CpuConsumer::LockedBuffer* buffer) {
630 static int Image_getBufferHeight(CpuConsumer::LockedBuffer* buffer) {
695 sp<CpuConsumer> consumer = new CpuConsumer(gbConsumer, maxImages,
699 jniThrowRuntimeException(env, "Failed to allocate native CpuConsumer");
717 // Set the width/height/format to the CpuConsumer
721 "Failed to set CpuConsumer buffer size");
727 "Failed to set CpuConsumer buffer format");
741 CpuConsumer* consumer = ImageReader_getCpuConsumer(env, thiz);
758 CpuConsumer* consumer = ctx->getCpuConsumer();
759 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, image);
779 CpuConsumer* consumer = ctx->getCpuConsumer();
780 CpuConsumer::LockedBuffer* buffer = ctx->getLockedBuffer();
877 jniThrowRuntimeException(env, "CpuConsumer is uninitialized");
890 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz);
916 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz);
945 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz);
951 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz);