Lines Matching refs:ctx
244 sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz)); in ImageWriter_init() local
247 ctx->setProducer(producer); in ImageWriter_init()
253 producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init()
254 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init()
264 ctx->setBufferWidth(width); in ImageWriter_init()
271 ctx->setBufferHeight(height); in ImageWriter_init()
278 ctx->setBufferFormat(format); in ImageWriter_init()
311 if (ctx != 0) { in ImageWriter_init()
312 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init()
319 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_dequeueImage() local
320 if (ctx == NULL || thiz == NULL) { in ImageWriter_dequeueImage()
326 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage()
359 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_close() local
360 if (ctx == NULL || thiz == NULL) { in ImageWriter_close()
365 ANativeWindow* producer = ctx->getProducer(); in ImageWriter_close()
389 ctx->decStrong((void*)ImageWriter_init); in ImageWriter_close()
394 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_cancelImage() local
395 if (ctx == NULL || thiz == NULL) { in ImageWriter_cancelImage()
400 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_cancelImage()
421 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_queueImage() local
422 if (ctx == NULL || thiz == NULL) { in ImageWriter_queueImage()
429 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_queueImage()
487 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_attachAndQueueImage() local
488 if (ctx == NULL || thiz == NULL) { in ImageWriter_attachAndQueueImage()
494 sp<Surface> surface = ctx->getProducer(); in ImageWriter_attachAndQueueImage()
503 if (!isFormatOpaque(ctx->getBufferFormat())) { in ImageWriter_attachAndQueueImage()