Lines Matching defs:oc
392 omap4_hwc_setup_layer_base(struct dss2_ovl_cfg *oc, int index, int format, int blended, int width, int height)
405 oc->color_mode = OMAP_DSS_COLOR_ARGB32;
412 oc->color_mode = OMAP_DSS_COLOR_RGB24U;
417 oc->color_mode = OMAP_DSS_COLOR_RGB16;
423 oc->color_mode = OMAP_DSS_COLOR_NV12;
425 oc->cconv = ctbl_bt601_5;
434 oc->width = width;
435 oc->height = height;
436 oc->stride = ALIGN(width, HW_ALIGN) * bits_per_pixel / 8;
438 oc->enabled = 1;
439 oc->global_alpha = 255;
440 oc->zorder = index;
441 oc->ix = 0;
444 oc->crop.w = oc->win.w = width;
445 oc->crop.h = oc->win.h = height;
448 oc->ilace = OMAP_DSS_ILACE_NONE;
449 oc->vc1.enable = 0;
457 struct dss2_ovl_cfg *oc = &ovl->cfg;
461 omap4_hwc_setup_layer_base(oc, index, format, is_BLENDED(layer), width, height);
465 oc->mirror = 1;
467 oc->rotation = 2;
468 oc->mirror = !oc->mirror;
471 oc->rotation += oc->mirror ? -1 : 1;
472 oc->rotation &= 3;
475 oc->pre_mult_alpha = layer->blending == HWC_BLENDING_PREMULT;
478 oc->win.x = layer->displayFrame.left;
479 oc->win.y = layer->displayFrame.top;
480 oc->win.w = WIDTH(layer->displayFrame);
481 oc->win.h = HEIGHT(layer->displayFrame);
484 oc->crop.x = layer->sourceCrop.left;
485 oc->crop.y = layer->sourceCrop.top;
486 oc->crop.w = WIDTH(layer->sourceCrop);
487 oc->crop.h = HEIGHT(layer->sourceCrop);
666 struct dss2_ovl_cfg *oc = &ovl->cfg;
677 x = ext->m[0][0] * oc->win.x + ext->m[0][1] * oc->win.y + ext->m[0][2];
678 y = ext->m[1][0] * oc->win.x + ext->m[1][1] * oc->win.y + ext->m[1][2];
679 w = ext->m[0][0] * oc->win.w + ext->m[0][1] * oc->win.h;
680 h = ext->m[1][0] * oc->win.w + ext->m[1][1] * oc->win.h;
681 oc->win.x = m_round(w > 0 ? x : x + w);
682 oc->win.y = m_round(h > 0 ? y : y + h);
683 oc->win.w = m_round(w > 0 ? w : -w);
684 oc->win.h = m_round(h > 0 ? h : -h);
687 oc->rotation += (oc->mirror ? -1 : 1) * ext->current.rotation;
688 oc->rotation &= 3;
690 oc->mirror = !oc->mirror;