Lines Matching refs:ctx

397     sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz));  in ImageWriter_init()  local
400 ctx->setProducer(producer); in ImageWriter_init()
406 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init()
414 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init()
431 ctx->setBufferWidth(width); in ImageWriter_init()
442 ctx->setBufferHeight(height); in ImageWriter_init()
486 ctx->setBufferDataSpace(nativeDataspace); in ImageWriter_init()
491 ctx->setBufferFormat(surfaceHalFormat); in ImageWriter_init()
492 ctx->setBufferDataSpace(static_cast<android_dataspace>(surfaceDataspace)); in ImageWriter_init()
535 if (ctx != 0) { in ImageWriter_init()
536 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init()
543 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_dequeueImage() local
544 if (ctx == NULL || thiz == NULL) { in ImageWriter_dequeueImage()
550 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage()
578 Image_setNativeContext(env, image, buffer, fenceFd, ctx->getBufferDataSpace()); in ImageWriter_dequeueImage()
583 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_close() local
584 if (ctx == NULL || thiz == NULL) { in ImageWriter_close()
589 ANativeWindow* producer = ctx->getProducer(); in ImageWriter_close()
613 ctx->decStrong((void*)ImageWriter_init); in ImageWriter_close()
618 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_cancelImage() local
619 if (ctx == NULL || thiz == NULL) { in ImageWriter_cancelImage()
624 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_cancelImage()
646 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_queueImage() local
647 if (ctx == NULL || thiz == NULL) { in ImageWriter_queueImage()
654 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_queueImage()
714 ctx->queueAttachedFlag(false); in ImageWriter_queueImage()
718 ctx->dequeueAttachedFlag(); in ImageWriter_queueImage()
735 static status_t attachAndQeueuGraphicBuffer(JNIEnv* env, JNIImageWriterContext *ctx, in attachAndQeueuGraphicBuffer() argument
801 ctx->queueAttachedFlag(true); in attachAndQeueuGraphicBuffer()
806 ctx->dequeueAttachedFlag(); in attachAndQeueuGraphicBuffer()
829 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_attachAndQueueImage() local
830 if (ctx == NULL || thiz == NULL) { in ImageWriter_attachAndQueueImage()
836 sp<Surface> surface = ctx->getProducer(); in ImageWriter_attachAndQueueImage()
837 if (isFormatOpaque(ctx->getBufferFormat()) != isFormatOpaque(nativeHalFormat)) { in ImageWriter_attachAndQueueImage()
852 return attachAndQeueuGraphicBuffer(env, ctx, surface, buffer->mGraphicBuffer, timestampNs, in ImageWriter_attachAndQueueImage()
860 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_attachAndQueueGraphicBuffer() local
861 if (ctx == NULL || thiz == NULL) { in ImageWriter_attachAndQueueGraphicBuffer()
867 sp<Surface> surface = ctx->getProducer(); in ImageWriter_attachAndQueueGraphicBuffer()
868 if (isFormatOpaque(ctx->getBufferFormat()) != isFormatOpaque(nativeHalFormat)) { in ImageWriter_attachAndQueueGraphicBuffer()
881 return attachAndQeueuGraphicBuffer(env, ctx, surface, graphicBuffer, timestampNs, in ImageWriter_attachAndQueueGraphicBuffer()