Home | History | Annotate | Download | only in hwc

Lines Matching defs:oc

581 omap4_hwc_setup_layer_base(struct dss2_ovl_cfg *oc, int index, int format, int blended, int width, int height)
594 oc->color_mode = OMAP_DSS_COLOR_ARGB32;
601 oc->color_mode = OMAP_DSS_COLOR_RGB24U;
606 oc->color_mode = OMAP_DSS_COLOR_RGB16;
612 oc->color_mode = OMAP_DSS_COLOR_NV12;
614 oc->cconv = ctbl_bt601_5;
623 oc->width = width;
624 oc->height = height;
625 oc->stride = ALIGN(width, HW_ALIGN) * bits_per_pixel / 8;
627 oc->enabled = 1;
628 oc->global_alpha = 255;
629 oc->zorder = index;
630 oc->ix = 0;
633 oc->crop.w = oc->win.w = width;
634 oc->crop.h = oc->win.h = height;
637 oc->ilace = OMAP_DSS_ILACE_NONE;
638 oc->vc1.enable = 0;
646 struct dss2_ovl_cfg *oc = &ovl->cfg;
650 omap4_hwc_setup_layer_base(oc, index, format, is_BLENDED(layer), width, height);
654 oc->mirror = 1;
656 oc->rotation = 2;
657 oc->mirror = !oc->mirror;
660 oc->rotation += oc->mirror ? -1 : 1;
661 oc->rotation &= 3;
664 oc->pre_mult_alpha = layer->blending == HWC_BLENDING_PREMULT;
667 oc->win.x = layer->displayFrame.left;
668 oc->win.y = layer->displayFrame.top;
669 oc->win.w = WIDTH(layer->displayFrame);
670 oc->win.h = HEIGHT(layer->displayFrame);
673 oc->crop.x = layer->sourceCrop.left;
674 oc->crop.y = layer->sourceCrop.top;
675 oc->crop.w = WIDTH(layer->sourceCrop);
676 oc->crop.h = HEIGHT(layer->sourceCrop);
853 omap4_hwc_apply_transform(float transform[2][3],struct dss2_ovl_cfg *oc)
858 x = transform[0][0] * oc->win.x + transform[0][1] * oc->win.y + transform[0][2];
859 y = transform[1][0] * oc->win.x + transform[1][1] * oc->win.y + transform[1][2];
860 w = transform[0][0] * oc->win.w + transform[0][1] * oc->win.h;
861 h = transform[1][0] * oc->win.w + transform[1][1] * oc->win.h;
862 oc->win.x = m_round(w > 0 ? x : x + w);
863 oc->win.y = m_round(h > 0 ? y : y + h);
864 oc->win.w = m_round(w > 0 ? w : -w);
865 oc->win.h = m_round(h > 0 ? h : -h);
871 struct dss2_ovl_cfg *oc = &ovl->cfg;
880 omap4_hwc_apply_transform(ext->m, oc);
883 oc->rotation += (oc->mirror ? -1 : 1) * ext->current.rotation;
884 oc->rotation &= 3;
886 oc->mirror = !oc->mirror;
894 struct dss2_ovl_cfg *oc = &ovl->cfg;
901 omap4_hwc_apply_transform(hwc_dev->primary_m, oc);
904 oc->rotation += (oc->mirror ? -1 : 1) * hwc_dev->primary_rotation;
905 oc->rotation &= 3;