• Home
  • Raw
  • Download

Lines Matching refs:ctrls

491 		effect->pat_cb = ctx->ctrls.colorfx_cbcr->val >> 8;  in fimc_set_color_effect()
492 effect->pat_cr = ctx->ctrls.colorfx_cbcr->val & 0xff; in fimc_set_color_effect()
505 container_of((__ctrl)->handler, struct fimc_ctx, ctrls.handler)
576 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_create() local
577 struct v4l2_ctrl_handler *handler = &ctrls->handler; in fimc_ctrls_create()
579 if (ctx->ctrls.ready) in fimc_ctrls_create()
584 ctrls->rotate = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
586 ctrls->hflip = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
588 ctrls->vflip = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
592 ctrls->alpha = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
596 ctrls->alpha = NULL; in fimc_ctrls_create()
598 ctrls->colorfx = v4l2_ctrl_new_std_menu(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
602 ctrls->colorfx_cbcr = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
608 v4l2_ctrl_cluster(2, &ctrls->colorfx); in fimc_ctrls_create()
609 ctrls->ready = true; in fimc_ctrls_create()
617 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_delete() local
619 if (ctrls->ready) { in fimc_ctrls_delete()
620 v4l2_ctrl_handler_free(&ctrls->handler); in fimc_ctrls_delete()
621 ctrls->ready = false; in fimc_ctrls_delete()
622 ctrls->alpha = NULL; in fimc_ctrls_delete()
629 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_activate() local
631 if (!ctrls->ready) in fimc_ctrls_activate()
634 mutex_lock(ctrls->handler.lock); in fimc_ctrls_activate()
635 v4l2_ctrl_activate(ctrls->rotate, active); in fimc_ctrls_activate()
636 v4l2_ctrl_activate(ctrls->hflip, active); in fimc_ctrls_activate()
637 v4l2_ctrl_activate(ctrls->vflip, active); in fimc_ctrls_activate()
638 v4l2_ctrl_activate(ctrls->colorfx, active); in fimc_ctrls_activate()
639 if (ctrls->alpha) in fimc_ctrls_activate()
640 v4l2_ctrl_activate(ctrls->alpha, active && has_alpha); in fimc_ctrls_activate()
643 fimc_set_color_effect(ctx, ctrls->colorfx->cur.val); in fimc_ctrls_activate()
644 ctx->rotation = ctrls->rotate->val; in fimc_ctrls_activate()
645 ctx->hflip = ctrls->hflip->val; in fimc_ctrls_activate()
646 ctx->vflip = ctrls->vflip->val; in fimc_ctrls_activate()
653 mutex_unlock(ctrls->handler.lock); in fimc_ctrls_activate()
660 struct v4l2_ctrl *ctrl = ctx->ctrls.alpha; in fimc_alpha_ctrl_update()