Lines Matching refs:sc

191     CScalerM2M1SHOT sc(dev_num);  in exynos_sc_copy_pixels()  local
193 if (!sc.Valid()) in exynos_sc_copy_pixels()
202 if (!sc.SetSrcFormat(pxinfo->src.width, pxinfo->src.height, srcfmt)) in exynos_sc_copy_pixels()
205 if (!sc.SetDstFormat(pxinfo->dst.width, pxinfo->dst.height, dstfmt)) in exynos_sc_copy_pixels()
208 if (!sc.SetSrcCrop(pxinfo->src.crop_left, pxinfo->src.crop_top, in exynos_sc_copy_pixels()
212 if (!sc.SetDstCrop(pxinfo->dst.crop_left, pxinfo->dst.crop_top, in exynos_sc_copy_pixels()
216 if (!sc.SetRotate(pxinfo->rotate, pxinfo->hflip, pxinfo->vflip)) in exynos_sc_copy_pixels()
229 if (!sc.SetSrcAddr(addr, V4L2_MEMORY_USERPTR)) in exynos_sc_copy_pixels()
233 if (!sc.SetDstAddr(addr, V4L2_MEMORY_USERPTR)) in exynos_sc_copy_pixels()
236 return sc.Run(); in exynos_sc_copy_pixels()
252 CScalerNonStream *sc = reinterpret_cast<CScalerNonStream *>(handle); in GetNonStreamScaler() local
253 if (!sc->Valid()) { in GetNonStreamScaler()
258 return sc; in GetNonStreamScaler()
263 CScalerNonStream *sc = new CScalerNonStream(dev_num); in exynos_sc_create() local
265 if (!sc) { in exynos_sc_create()
270 if (!sc->Valid()) { in exynos_sc_create()
272 delete sc; in exynos_sc_create()
276 return reinterpret_cast<void *>(sc); in exynos_sc_create()
283 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_destroy() local
284 if (!sc) in exynos_sc_destroy()
287 if (!sc->Stop()) { in exynos_sc_destroy()
292 delete sc; in exynos_sc_destroy()
304 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_csc_property() local
305 if (!sc) in exynos_sc_set_csc_property()
308 sc->SetCSCWide(csc_range); in exynos_sc_set_csc_property()
309 sc->SetCSCEq(v4l2_colorspace); in exynos_sc_set_csc_property()
310 sc->SetFilter(filter); in exynos_sc_set_csc_property()
328 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_src_format() local
329 if (!sc) in exynos_sc_set_src_format()
332 sc->SetSrcPremultiplied(premultiplied != 0); in exynos_sc_set_src_format()
333 sc->SetSrcCacheable(cacheable != 0); in exynos_sc_set_src_format()
334 sc->SetDRM(mode_drm != 0); in exynos_sc_set_src_format()
336 if (!sc->SetSrcFormat(width, height, v4l2_colorformat)) in exynos_sc_set_src_format()
339 return sc->SetSrcCrop(crop_left, crop_top, crop_width, crop_height) ? 0 : -1; in exynos_sc_set_src_format()
355 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_dst_format() local
356 if (!sc) in exynos_sc_set_dst_format()
359 sc->SetDstPremultiplied(premultiplied != 0); in exynos_sc_set_dst_format()
360 sc->SetDstCacheable(cacheable != 0); in exynos_sc_set_dst_format()
361 sc->SetDRM(mode_drm != 0); in exynos_sc_set_dst_format()
363 if (!sc->SetDstFormat(width, height, v4l2_colorformat)) in exynos_sc_set_dst_format()
366 if (!sc->SetDstCrop(crop_left, crop_top, crop_width, crop_height)) in exynos_sc_set_dst_format()
378 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_rotation() local
379 if (!sc) in exynos_sc_set_rotation()
382 return sc->SetRotate(rot, flip_h, flip_v) ? 0 : -1; in exynos_sc_set_rotation()
389 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_framerate() local
390 if (!sc) in exynos_sc_set_framerate()
393 sc->SetFrameRate(framerate); in exynos_sc_set_framerate()
402 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_src_addr() local
403 if (!sc) in exynos_sc_set_src_addr()
407 return sc->SetSrcAddr(addr, mem_type) ? 0 : -1; in exynos_sc_set_src_addr()
416 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_dst_addr() local
417 if (!sc) in exynos_sc_set_dst_addr()
421 return sc->SetDstAddr(addr, mem_type) ? 0 : -1; in exynos_sc_set_dst_addr()
426 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_convert() local
427 if (!sc) in exynos_sc_convert()
430 return sc->Run() ? 0 : -1; in exynos_sc_convert()
440 CScalerBlendV4L2 *sc = reinterpret_cast<CScalerBlendV4L2 *>(handle); in GetScalerBlend() local
441 if (!sc->Valid()) { in GetScalerBlend()
446 return sc; in GetScalerBlend()
456 CScalerV4L2 *sc = reinterpret_cast<CScalerV4L2 *>(handle); in GetScaler() local
457 if (!sc->Valid()) { in GetScaler()
462 return sc; in GetScaler()
470 CScalerV4L2 *sc; in exynos_sc_create_exclusive() local
472 sc = new CScalerV4L2(dev_num, allow_drm); in exynos_sc_create_exclusive()
473 if (!sc) { in exynos_sc_create_exclusive()
478 if (!sc->Valid()) { in exynos_sc_create_exclusive()
480 delete sc; in exynos_sc_create_exclusive()
485 return reinterpret_cast<void *>(sc); in exynos_sc_create_exclusive()
490 CScalerV4L2 *sc = GetScaler(handle); in exynos_sc_free_and_close() local
491 if (!sc) in exynos_sc_free_and_close()
495 if (!sc->Stop()) { in exynos_sc_free_and_close()
500 delete sc; in exynos_sc_free_and_close()
507 CScalerV4L2 *sc = GetScaler(handle); in exynos_sc_stop_exclusive() local
508 if (!sc) in exynos_sc_stop_exclusive()
511 if (!sc->Stop()) { in exynos_sc_stop_exclusive()
523 CScalerV4L2 *sc = GetScaler(handle); in exynos_sc_csc_exclusive() local
524 if (!sc) in exynos_sc_csc_exclusive()
527 sc->SetCSCWide(range_full); in exynos_sc_csc_exclusive()
528 sc->SetCSCEq(v4l2_colorspace); in exynos_sc_csc_exclusive()
538 CScalerV4L2 *sc = GetScaler(handle); in exynos_sc_config_exclusive() local
539 if (!sc) in exynos_sc_config_exclusive()
542 if (src_img->drmMode && !sc->IsDRMAllowed()) { in exynos_sc_config_exclusive()
544 sc->GetScalerID(), src_img->drmMode, dst_img->drmMode); in exynos_sc_config_exclusive()
563 if (!sc->SetRotate(rot, flip_h, flip_v)) { in exynos_sc_config_exclusive()
572 if (!sc->SetSrcFormat(src_img->fw, src_img->fh, src_color_space)) in exynos_sc_config_exclusive()
575 if (!sc->SetSrcCrop(src_img->x, src_img->y, src_img->w, src_img->h)) in exynos_sc_config_exclusive()
578 if (!sc->SetDstFormat(dst_img->fw, dst_img->fh, dst_color_space)) in exynos_sc_config_exclusive()
581 if (!sc->SetDstCrop(dst_img->x, dst_img->y, dst_img->w, dst_img->h)) in exynos_sc_config_exclusive()
584 sc->SetCSCWide(!dst_img->narrowRgb); in exynos_sc_config_exclusive()
586 sc->SetSrcCacheable(src_img->cacheable != 0); in exynos_sc_config_exclusive()
587 sc->SetDstCacheable(dst_img->cacheable != 0); in exynos_sc_config_exclusive()
589 sc->SetSrcPremultiplied(src_img->pre_multi); in exynos_sc_config_exclusive()
590 sc->SetDstPremultiplied(dst_img->pre_multi); in exynos_sc_config_exclusive()
592 sc->SetDRM(src_img->drmMode != 0 || dst_img->drmMode != 0); in exynos_sc_config_exclusive()
602 CScalerV4L2 *sc = GetScaler(handle); in exynos_sc_run_exclusive() local
603 if (!sc) in exynos_sc_run_exclusive()
611 sc->SetSrcAddr(addr, src_img->mem_type, src_img->acquireFenceFd); in exynos_sc_run_exclusive()
616 sc->SetDstAddr(addr, dst_img->mem_type, dst_img->acquireFenceFd); in exynos_sc_run_exclusive()
618 if (!sc->DevSetCtrl()) in exynos_sc_run_exclusive()
621 if (!sc->DevSetFormat()) in exynos_sc_run_exclusive()
624 if (!sc->ReqBufs()) in exynos_sc_run_exclusive()
629 if (!sc->QBuf(&fdSrcReleaseFence, &fdDstReleaseFence)) in exynos_sc_run_exclusive()
632 if (!sc->StreamOn()) { in exynos_sc_run_exclusive()
649 CScalerBlendV4L2 *sc; in exynos_sc_create_blend_exclusive() local
651 sc = new CScalerBlendV4L2(dev_num, allow_drm); in exynos_sc_create_blend_exclusive()
652 if (!sc) { in exynos_sc_create_blend_exclusive()
657 if (!sc->Valid()) { in exynos_sc_create_blend_exclusive()
659 delete sc; in exynos_sc_create_blend_exclusive()
664 return reinterpret_cast<void *>(sc); in exynos_sc_create_blend_exclusive()
674 CScalerBlendV4L2 *sc = GetScalerBlend(handle); in exynos_sc_config_blend_exclusive() local
675 if (!sc) in exynos_sc_config_blend_exclusive()
678 if (src_img->drmMode && !sc->IsDRMAllowed()) { in exynos_sc_config_blend_exclusive()
680 sc->GetScalerID(), src_img->drmMode, dst_img->drmMode); in exynos_sc_config_blend_exclusive()
698 if (!sc->SetRotate(rot, flip_h, flip_v)) { in exynos_sc_config_blend_exclusive()
708 sc->GetCustomAlphaBlendFmt(src_color_space, src_blend_color_space); in exynos_sc_config_blend_exclusive()
714 sc->SetSrcBlendOp(srcblendinfo->blop); in exynos_sc_config_blend_exclusive()
716 sc->SetSrcGlobalAlpha(srcblendinfo->globalalpha.val, in exynos_sc_config_blend_exclusive()
719 sc->SetSrcBlendVPos(srcblendinfo->srcblendvpos); in exynos_sc_config_blend_exclusive()
721 sc->SetSrcBlendHPos(srcblendinfo->srcblendhpos); in exynos_sc_config_blend_exclusive()
723 sc->SetSrcBlendPremulti(srcblendinfo->srcblendpremulti); in exynos_sc_config_blend_exclusive()
725 sc->SetSrcBlendFmt(src_blend_color_space); in exynos_sc_config_blend_exclusive()
727 sc->SetSrcBlendStride(srcblendinfo->srcblendstride); in exynos_sc_config_blend_exclusive()
729 sc->SetSrcBlendWidth(srcblendinfo->srcblendwidth); in exynos_sc_config_blend_exclusive()
731 sc->SetSrcBlendHeight(srcblendinfo->srcblendheight); in exynos_sc_config_blend_exclusive()
733 sc->SetSrcBlendCSCSpace(srcblendinfo->cscspec.enable, in exynos_sc_config_blend_exclusive()
737 if (!sc->SetSrcFormat(src_img->fw, src_img->fh, src_color_space)) in exynos_sc_config_blend_exclusive()
740 if (!sc->SetSrcCrop(src_img->x, src_img->y, src_img->w, src_img->h)) in exynos_sc_config_blend_exclusive()
743 if (!sc->SetDstFormat(dst_img->fw, dst_img->fh, dst_color_space)) in exynos_sc_config_blend_exclusive()
746 if (!sc->SetDstCrop(dst_img->x, dst_img->y, dst_img->w, dst_img->h)) in exynos_sc_config_blend_exclusive()
749 sc->SetSrcCacheable(src_img->cacheable != 0); in exynos_sc_config_blend_exclusive()
750 sc->SetDstCacheable(dst_img->cacheable != 0); in exynos_sc_config_blend_exclusive()
752 sc->SetDRM(src_img->drmMode != 0 || dst_img->drmMode != 0); in exynos_sc_config_blend_exclusive()
760 CScalerV4L2 *sc = GetScaler(handle); in exynos_sc_wait_frame_done_exclusive() local
761 if (!sc) in exynos_sc_wait_frame_done_exclusive()
764 return sc->DQBuf() ? 0 : -1; in exynos_sc_wait_frame_done_exclusive()