/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...] |
/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...] |
/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);
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
H A D | hwc_utils.cpp | 819 //No 90 component and no rot-downscale then flips done by MDP 842 const int& downscale) { 846 rot->setDownscale(downscale); 949 int downscale = 0; local 957 downscale = getDownscaleFactor( 962 if(downscale) { 978 setMdpFlags(layer, mdpFlags, downscale); 981 if(isYuvBuffer(hnd) && //if 90 component or downscale, use rot 982 ((transform & HWC_TRANSFORM_ROT_90) || downscale || forceRot)) { 988 if(configRotator(*rot, whf, origWhf, mdpFlags, orient, downscale) < 839 configRotator(Rotator *rot, const Whf& whf, const Whf& origWhf, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 1030 const int downscale = 0; local [all...] |
/hardware/qcom/display/msm8996/sdm/libs/core/ |
H A D | resource_default.cpp | 870 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { argument 873 if (downscale <= max_down_scale) { 877 DLOGE("Downscaling exceeds the maximum MDP downscale limit but decimation not enabled"); 881 // Decimation is the remaining downscale factor after doing max SDE downscale. 883 // For ex: If a pipe needs downscale of 8 but max_down_scale is 4 885 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale)));
|
/hardware/qcom/display/msm8998/sdm/libs/core/ |
H A D | resource_default.cpp | 907 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { argument 910 if (downscale <= max_down_scale) { 914 DLOGE("Downscaling exceeds the maximum MDP downscale limit but decimation not enabled"); 918 // Decimation is the remaining downscale factor after doing max SDE downscale. 920 // For ex: If a pipe needs downscale of 8 but max_down_scale is 4 922 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale)));
|
/hardware/qcom/display/sdm845/sdm/libs/core/ |
H A D | resource_default.cpp | 907 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { argument 910 if (downscale <= max_down_scale) { 914 DLOGE("Downscaling exceeds the maximum MDP downscale limit but decimation not enabled"); 918 // Decimation is the remaining downscale factor after doing max SDE downscale. 920 // For ex: If a pipe needs downscale of 8 but max_down_scale is 4 922 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale)));
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
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) {
|
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 1481 //No 90 component and no rot-downscale then flips done by MDP 1503 const eTransform& orient, const int& downscale) { 1532 rot->setDownscale(downscale); 1646 int downscale = 0; local 1663 downscale = getDownscaleFactor( 1668 if(downscale) { 1673 setMdpFlags(layer, mdpFlags, downscale, transfor 1501 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 1753 const int downscale = 0; local 1898 const int downscale = 0; local [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
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) {
|
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 1497 //No 90 component and no rot-downscale then flips done by MDP 1519 const eTransform& orient, const int& downscale) { 1538 rot->setDownscale(downscale); 1651 int downscale = 0; local 1668 downscale = getDownscaleFactor( 1673 if(downscale) { 1678 setMdpFlags(ctx, layer, mdpFlags, downscale, transfor 1517 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 1758 const int downscale = 0; local 1902 const int downscale = 0; local [all...] |
/hardware/qcom/display/msm8909/libhwcomposer/ |
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...] |
H A D | hwc_utils.cpp | 1812 //No 90 component and no rot-downscale then flips done by MDP 1834 const eTransform& orient, const int& downscale) { 1853 rot->setDownscale(downscale); 1950 int downscale = 0; local 1968 downscale = Rotator::getDownscaleFactor(crop.right - crop.left, 1979 downscale = Rotator::getDownscaleFactor(adjCrop.w, adjCrop.h, pos.w, 1983 return downscale; 2088 int downscale = getRotDownscale(ctx, layer); local 2089 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); 2091 //if 90 component or downscale, us 1832 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 2189 int downscale = getRotDownscale(ctx, layer); local 2317 const int downscale = 0; local 2617 setBwc(const hwc_rect_t& crop, const hwc_rect_t& dst, const int& transform,const int& downscale, ovutils::eMdpFlags& mdpFlags) argument [all...] |
/hardware/qcom/display/msm8994/libhwcomposer/ |
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...] |
H A D | hwc_utils.cpp | 1732 //No 90 component and no rot-downscale then flips done by MDP 1754 const eTransform& orient, const int& downscale) { 1773 rot->setDownscale(downscale); 1870 int downscale = 0; local 1888 downscale = Rotator::getDownscaleFactor(crop.right - crop.left, 1899 downscale = Rotator::getDownscaleFactor(adjCrop.w, adjCrop.h, pos.w, 1903 return downscale; 2008 int downscale = getRotDownscale(ctx, layer); local 2009 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); 2011 //if 90 component or downscale, us 1752 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument 2108 int downscale = getRotDownscale(ctx, layer); local 2236 const int downscale = 0; local 2536 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...] |