• Home
  • Raw
  • Download

Lines Matching refs:ctx

359     sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz));  in ImageWriter_init()  local
362 ctx->setProducer(producer); in ImageWriter_init()
368 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init()
376 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init()
386 ctx->setBufferWidth(width); in ImageWriter_init()
393 ctx->setBufferHeight(height); in ImageWriter_init()
406 ctx->setBufferFormat(surfaceFormat); in ImageWriter_init()
439 if (ctx != 0) { in ImageWriter_init()
440 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init()
447 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_dequeueImage() local
448 if (ctx == NULL || thiz == NULL) { in ImageWriter_dequeueImage()
454 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage()
487 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_close() local
488 if (ctx == NULL || thiz == NULL) { in ImageWriter_close()
493 ANativeWindow* producer = ctx->getProducer(); in ImageWriter_close()
517 ctx->decStrong((void*)ImageWriter_init); in ImageWriter_close()
522 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_cancelImage() local
523 if (ctx == NULL || thiz == NULL) { in ImageWriter_cancelImage()
528 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_cancelImage()
550 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_queueImage() local
551 if (ctx == NULL || thiz == NULL) { in ImageWriter_queueImage()
558 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_queueImage()
628 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_attachAndQueueImage() local
629 if (ctx == NULL || thiz == NULL) { in ImageWriter_attachAndQueueImage()
635 sp<Surface> surface = ctx->getProducer(); in ImageWriter_attachAndQueueImage()
637 if (isFormatOpaque(imageFormat) != isFormatOpaque(ctx->getBufferFormat())) { in ImageWriter_attachAndQueueImage()