Lines Matching refs:crop
970 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
977 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
985 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in trimList() local
990 (hwc_rect_t&)crop, in trimList()
992 layer->sourceCropf.left = (float)crop.left; in trimList()
993 layer->sourceCropf.right = (float)crop.right; in trimList()
994 layer->sourceCropf.top = (float)crop.top; in trimList()
995 layer->sourceCropf.bottom = (float)crop.bottom; in trimList()
1249 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
1252 int& crop_l = crop.left; in calculate_crop_rects()
1253 int& crop_t = crop.top; in calculate_crop_rects()
1254 int& crop_r = crop.right; in calculate_crop_rects()
1255 int& crop_b = crop.bottom; in calculate_crop_rects()
1256 int crop_w = crop.right - crop.left; in calculate_crop_rects()
1257 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
1753 hwc_rect_t& crop, const eMdpFlags& mdpFlags, in configRotator() argument
1766 Dim rotCrop(crop.left, crop.top, crop.right - crop.left, in configRotator()
1767 crop.bottom - crop.top); in configRotator()
1779 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
1785 int crop_w = crop.right - crop.left; in configMdp()
1786 int crop_h = crop.bottom - crop.top; in configMdp()
1787 Dim dcrop(crop.left, crop.top, crop_w, crop_h); in configMdp()
1842 hwc_rect_t& crop, Rotator *rot) { in updateSource() argument
1843 Dim transformedCrop(crop.left, crop.top, in updateSource()
1844 crop.right - crop.left, in updateSource()
1845 crop.bottom - crop.top); in updateSource()
1859 crop.left = transformedCrop.x; in updateSource()
1860 crop.top = transformedCrop.y; in updateSource()
1861 crop.right = transformedCrop.x + transformedCrop.w; in updateSource()
1862 crop.bottom = transformedCrop.y + transformedCrop.h; in updateSource()
1871 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in getRotDownscale() local
1888 downscale = Rotator::getDownscaleFactor(crop.right - crop.left, in getRotDownscale()
1889 crop.bottom - crop.top, dst.right - dst.left, in getRotDownscale()
1892 Dim adjCrop(crop.left, crop.top, crop.right - crop.left, in getRotDownscale()
1893 crop.bottom - crop.top); in getRotDownscale()
1906 bool isZoomModeEnabled(hwc_rect_t crop) { in isZoomModeEnabled() argument
1908 return(crop.top > 0 || crop.left > 0); in isZoomModeEnabled()
1911 void updateCropAIVVideoMode(hwc_context_t *ctx, hwc_rect_t& crop, int dpy) { in updateCropAIVVideoMode() argument
1913 crop.left, crop.top, crop.right, crop.bottom); in updateCropAIVVideoMode()
1914 if(isZoomModeEnabled(crop)) { in updateCropAIVVideoMode()
1915 Dim srcCrop(crop.left, crop.top, in updateCropAIVVideoMode()
1916 crop.right - crop.left, in updateCropAIVVideoMode()
1917 crop.bottom - crop.top); in updateCropAIVVideoMode()
1923 crop.top += offset; in updateCropAIVVideoMode()
1924 crop.bottom -= offset; in updateCropAIVVideoMode()
1927 crop.left += offset; in updateCropAIVVideoMode()
1928 crop.right -= offset; in updateCropAIVVideoMode()
1932 crop.left, crop.top, crop.right, crop.bottom); in updateCropAIVVideoMode()
1936 void updateDestAIVVideoMode(hwc_context_t *ctx, hwc_rect_t crop, in updateDestAIVVideoMode() argument
1940 Dim srcCrop(crop.left, crop.top, in updateDestAIVVideoMode()
1941 crop.right - crop.left, in updateDestAIVVideoMode()
1942 crop.bottom - crop.top); in updateDestAIVVideoMode()
1953 (isZoomModeEnabled(crop))) { in updateDestAIVVideoMode()
1962 crop.left, crop.top, crop.right, crop.bottom); in updateDestAIVVideoMode()
1965 void updateCoordinates(hwc_context_t *ctx, hwc_rect_t& crop, in updateCoordinates() argument
1967 updateCropAIVVideoMode(ctx, crop, dpy); in updateCoordinates()
1968 updateDestAIVVideoMode(ctx, crop, dst, dpy); in updateCoordinates()
1988 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configureNonSplit() local
2005 updateCoordinates(ctx, crop, dst, dpy); in configureNonSplit()
2007 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient); in configureNonSplit()
2016 BwcPM::setBwc(ctx, dpy, hnd, crop, dst, transform, downscale, in configureNonSplit()
2019 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configureNonSplit()
2023 updateSource(orient, whf, crop, *rot); in configureNonSplit()
2034 if(configMdp(ctx->mOverlay, parg, orient, crop, dst, metadata, dest) < 0) { in configureNonSplit()
2084 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configureSplit() local
2102 updateCoordinates(ctx, crop, dst, dpy); in configureSplit()
2107 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient); in configureSplit()
2118 if(ctx->mAD->prepare(ctx, crop, whf, hnd)) { in configureSplit()
2128 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureSplit()
2132 updateSource(orient, whf, crop, *rot); in configureSplit()
2146 tmp_cropL = crop; in configureSplit()
2155 tmp_cropR = crop; in configureSplit()
2232 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);; in configureSourceSplit() local
2248 updateCoordinates(ctx, crop, dst, dpy); in configureSourceSplit()
2253 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient); in configureSourceSplit()
2256 trimLayer(ctx, dpy, transform, crop, dst); in configureSourceSplit()
2263 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureSourceSplit()
2267 updateSource(orient, whf, crop, *rot); in configureSourceSplit()
2278 tmp_cropL = crop; in configureSourceSplit()
2284 tmp_cropR = crop; in configureSourceSplit()
2538 const hwc_rect_t& crop, const hwc_rect_t& dst, in setBwc() argument
2555 int src_w = crop.right - crop.left; in setBwc()
2556 int src_h = crop.bottom - crop.top; in setBwc()