/hardware/qcom/display/msm8909/liboverlay/ |
H A D | overlayMdssRot.cpp | 128 void MdssRot::setDownscale(int downscale) { argument 129 mDownscale = downscale; 389 uint32_t downscale = min((adjCrop.w / dstW), (adjCrop.h / dstH)); local 391 downscale = (uint32_t) powf(2.0f, floorf(log2f((float)downscale))); 393 if(downscale < 2 or downscale > 32) return 0; 396 //be aligned to downscale. Progressively try with smaller downscale to see 399 Dim dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); 423 getDownscaleAdjustedCrop(const Dim& crop, const uint32_t& downscale) argument [all...] |
H A D | overlayRotator.h | 107 /* Returns downscale by successfully applying constraints 173 /* Applies downscale by taking areas 174 * Returns a log(downscale) 176 * - downscale should be a power of 2 177 * - Max downscale is 1/8 248 * Returns actual downscale (not a log value) 250 * - downscale should be a power of 2 251 * - Max downscale is 1/32 252 * - Equal downscale is applied in both directions 253 * - {srcW, srcH} mod downscale [all...] |
/hardware/qcom/display/msm8994/liboverlay/ |
H A D | overlayMdssRot.cpp | 128 void MdssRot::setDownscale(int downscale) { argument 129 mDownscale = downscale; 389 uint32_t downscale = min((adjCrop.w / dstW), (adjCrop.h / dstH)); local 391 downscale = (uint32_t) powf(2.0f, floorf(log2f((float)downscale))); 393 if(downscale < 2 or downscale > 32) return 0; 396 //be aligned to downscale. Progressively try with smaller downscale to see 399 Dim dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); 423 getDownscaleAdjustedCrop(const Dim& crop, const uint32_t& downscale) argument [all...] |
H A D | overlayRotator.h | 107 /* Returns downscale by successfully applying constraints 173 /* Applies downscale by taking areas 174 * Returns a log(downscale) 176 * - downscale should be a power of 2 177 * - Max downscale is 1/8 248 * Returns actual downscale (not a log value) 250 * - downscale should be a power of 2 251 * - Max downscale is 1/32 252 * - Equal downscale is applied in both directions 253 * - {srcW, srcH} mod downscale [all...] |
/hardware/qcom/display/msm8960/libhwcomposer/ |
H A D | hwc_utils.cpp | 817 //No 90 component and no rot-downscale then flips done by MDP 840 const int& downscale) { 844 rot->setDownscale(downscale); 947 int downscale = 0; local 955 downscale = getDownscaleFactor( 960 if(downscale) { 976 setMdpFlags(layer, mdpFlags, downscale); 979 if(isYuvBuffer(hnd) && //if 90 component or downscale, use rot 980 ((transform & HWC_TRANSFORM_ROT_90) || downscale || forceRot)) { 986 if(configRotator(*rot, whf, origWhf, mdpFlags, orient, downscale) < 837 configRotator(Rotator *rot, const Whf& whf, const Whf& origWhf, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 1028 const int downscale = 0; local [all...] |
/hardware/qcom/display/msm8996/sdm/libs/core/ |
H A D | resource_default.h | 120 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
|
H A D | resource_default.cpp | 863 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { argument 866 if (downscale <= max_down_scale) { 870 DLOGE("Downscaling exceeds the maximum MDP downscale limit but decimation not enabled"); 874 // Decimation is the remaining downscale factor after doing max SDE downscale. 876 // For ex: If a pipe needs downscale of 8 but max_down_scale is 4 878 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale)));
|
/hardware/qcom/display/msm8909/libhwcomposer/ |
H A D | hwc_utils.cpp | 1810 //No 90 component and no rot-downscale then flips done by MDP 1832 const eTransform& orient, const int& downscale) { 1851 rot->setDownscale(downscale); 1948 int downscale = 0; local 1966 downscale = Rotator::getDownscaleFactor(crop.right - crop.left, 1977 downscale = Rotator::getDownscaleFactor(adjCrop.w, adjCrop.h, pos.w, 1981 return downscale; 2086 int downscale = getRotDownscale(ctx, layer); local 2087 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); 2089 //if 90 component or downscale, us 1830 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 2187 int downscale = getRotDownscale(ctx, layer); local 2315 const int downscale = 0; local 2615 setBwc(const hwc_rect_t& crop, const hwc_rect_t& dst, const int& transform,const int& downscale, ovutils::eMdpFlags& mdpFlags) argument [all...] |
H A D | hwc_utils.h | 186 const int& transform, const int& downscale, 393 const ovutils::eTransform& orient, const int& downscale);
|
H A D | hwc_mdpcomp.cpp | 435 * maximum downscale support is overlay pipe downscale. 446 * 2. exceeds maximum downscale limit 786 // in such usecase, decimation gets used for downscale and there will be 2689 /* Calculate the external display position based on MDP downscale, 2693 int downscale = getRotDownscale(ctx, layer); local 2695 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); 2702 if((has90Transform(layer) or downscale) and isRotationDoable(ctx, hnd)) { 2708 BwcPM::setBwc(crop, dst, transform, downscale, mdpFlags); 2711 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < [all...] |
/hardware/qcom/display/msm8994/libhwcomposer/ |
H A D | hwc_utils.cpp | 1730 //No 90 component and no rot-downscale then flips done by MDP 1752 const eTransform& orient, const int& downscale) { 1771 rot->setDownscale(downscale); 1868 int downscale = 0; local 1886 downscale = Rotator::getDownscaleFactor(crop.right - crop.left, 1897 downscale = Rotator::getDownscaleFactor(adjCrop.w, adjCrop.h, pos.w, 1901 return downscale; 2006 int downscale = getRotDownscale(ctx, layer); local 2007 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); 2009 //if 90 component or downscale, us 1750 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 2106 int downscale = getRotDownscale(ctx, layer); local 2234 const int downscale = 0; local 2534 setBwc(const hwc_context_t *ctx, const int& dpy, const private_handle_t *hnd, const hwc_rect_t& crop, const hwc_rect_t& dst, const int& transform,const int& downscale, ovutils::eMdpFlags& mdpFlags) argument [all...] |
H A D | hwc_utils.h | 182 const int& transform, const int& downscale, 417 const ovutils::eTransform& orient, const int& downscale);
|
H A D | hwc_mdpcomp.cpp | 439 * maximum downscale support is overlay pipe downscale. 450 * 2. exceeds maximum downscale limit 2798 const uint32_t downscale = getRotDownscale(ctx, layer); local 2799 if(downscale) { 2800 cropWidth /= downscale; 2801 cropHeight /= downscale; 2869 /* Calculate the external display position based on MDP downscale, 2873 int downscale = getRotDownscale(ctx, layer); local 2875 setMdpFlags(ctx, layer, mdpFlags, downscale, transfor [all...] |
/hardware/qcom/display/msm8084/libhwcomposer/ |
H A D | hwc_utils.cpp | 271 // Read the system property to determine if downscale feature is enabled. 391 // if downscale Mode is enabled for external, need to query 628 // if downscale is enabled, map the co-ordinates to new 1479 //No 90 component and no rot-downscale then flips done by MDP 1501 const eTransform& orient, const int& downscale) { 1530 rot->setDownscale(downscale); 1644 int downscale = 0; local 1661 downscale = getDownscaleFactor( 1666 if(downscale) { 1671 setMdpFlags(layer, mdpFlags, downscale, transfor 1499 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 1751 const int downscale = 0; local 1896 const int downscale = 0; local [all...] |
H A D | hwc_utils.h | 330 const ovutils::eTransform& orient, const int& downscale);
|
H A D | hwc_mdpcomp.cpp | 356 * maximum downscale support is overlay pipe downscale. 367 * 2. exceeds maximum downscale limit 691 // in such usecase, decimation gets used for downscale and there will be 698 // check for action safe flag and downscale mode which requires scaling. 2103 const int downscale = 0; local 2136 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) {
|
/hardware/qcom/display/msm8226/libhwcomposer/ |
H A D | hwc_utils.cpp | 284 // Read the system property to determine if downscale feature is enabled. 406 // if downscale Mode is enabled for external, need to query 615 // if downscale is enabled, map the co-ordinates to new 1495 //No 90 component and no rot-downscale then flips done by MDP 1517 const eTransform& orient, const int& downscale) { 1536 rot->setDownscale(downscale); 1649 int downscale = 0; local 1666 downscale = getDownscaleFactor( 1671 if(downscale) { 1676 setMdpFlags(ctx, layer, mdpFlags, downscale, transfor 1515 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 1756 const int downscale = 0; local 1900 const int downscale = 0; local [all...] |
H A D | hwc_utils.h | 350 const ovutils::eTransform& orient, const int& downscale);
|
H A D | hwc_mdpcomp.cpp | 381 * maximum downscale support is overlay pipe downscale. 392 * 2. exceeds maximum downscale limit 704 // in such usecase, decimation gets used for downscale and there will be 711 // check for action safe flag and downscale mode which requires scaling. 2316 const int downscale = 0; local 2349 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) {
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
H A D | ml_math_func.c | 747 //long downscale, sqrt_downscale, downsclimit; 763 //downscale = 851995103L; 888 long upscale, downscale, upsclimit, downsclimit; local 906 downscale = 836504283L; 907 // int32(0.92/downscale*2^30) 931 x0 = inv_q30_mult(x0, downscale); 957 xx = inv_q30_mult( xx, downscale);
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
H A D | ml_math_func.c | 747 //long downscale, sqrt_downscale, downsclimit; 763 //downscale = 851995103L; 888 long upscale, downscale, upsclimit, downsclimit; local 906 downscale = 836504283L; 907 // int32(0.92/downscale*2^30) 931 x0 = inv_q30_mult(x0, downscale); 957 xx = inv_q30_mult( xx, downscale);
|