Home
last modified time | relevance | path

Searched refs:downscale (Results 1 – 23 of 23) sorted by relevance

/hardware/qcom/display/msm8994/liboverlay/
DoverlayMdssRot.cpp128 void MdssRot::setDownscale(int downscale) { in setDownscale() argument
129 mDownscale = downscale; in setDownscale()
389 uint32_t downscale = min((adjCrop.w / dstW), (adjCrop.h / dstH)); in getDownscaleFactor() local
391 downscale = (uint32_t) powf(2.0f, floorf(log2f((float)downscale))); in getDownscaleFactor()
393 if(downscale < 2 or downscale > 32) return 0; in getDownscaleFactor()
399 Dim dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); in getDownscaleFactor()
400 while(downscale > 2 and (adjCrop.w > dsAdjCrop.w or in getDownscaleFactor()
402 downscale /= 2; in getDownscaleFactor()
403 dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); in getDownscaleFactor()
407 return downscale; in getDownscaleFactor()
[all …]
DoverlayRotator.h264 const uint32_t& downscale);
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp842 const int& downscale) { in configRotator() argument
846 rot->setDownscale(downscale); in configRotator()
949 int downscale = 0; in configureLowRes() local
957 downscale = getDownscaleFactor( in configureLowRes()
962 if(downscale) { in configureLowRes()
978 setMdpFlags(layer, mdpFlags, downscale); in configureLowRes()
982 ((transform & HWC_TRANSFORM_ROT_90) || downscale || forceRot)) { in configureLowRes()
988 if(configRotator(*rot, whf, origWhf, mdpFlags, orient, downscale) < 0) in configureLowRes()
1030 const int downscale = 0; in configureHighRes() local
1045 if(configRotator(*rot, whf, origWhf, mdpFlagsL, orient, downscale) < 0) in configureHighRes()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c888 long upscale, downscale, upsclimit, downsclimit; in inv_one_over_x() local
906 downscale = 836504283L; in inv_one_over_x()
931 x0 = inv_q30_mult(x0, downscale); in inv_one_over_x()
957 xx = inv_q30_mult( xx, downscale); in inv_one_over_x()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c888 long upscale, downscale, upsclimit, downsclimit; in inv_one_over_x() local
906 downscale = 836504283L; in inv_one_over_x()
931 x0 = inv_q30_mult(x0, downscale); in inv_one_over_x()
957 xx = inv_q30_mult( xx, downscale); in inv_one_over_x()
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp1503 const eTransform& orient, const int& downscale) { in configRotator() argument
1532 rot->setDownscale(downscale); in configRotator()
1646 int downscale = 0; in configureNonSplit() local
1663 downscale = getDownscaleFactor( in configureNonSplit()
1668 if(downscale) { in configureNonSplit()
1673 setMdpFlags(layer, mdpFlags, downscale, transform); in configureNonSplit()
1676 ((transform & HWC_TRANSFORM_ROT_90) || downscale)) { in configureNonSplit()
1683 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configureNonSplit()
1753 const int downscale = 0; in configureSplit() local
1789 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureSplit()
[all …]
Dhwc_utils.h330 const ovutils::eTransform& orient, const int& downscale);
Dhwc_mdpcomp.cpp2103 const int downscale = 0; in configure() local
2136 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configure()
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp1519 const eTransform& orient, const int& downscale) { in configRotator() argument
1538 rot->setDownscale(downscale); in configRotator()
1651 int downscale = 0; in configureNonSplit() local
1668 downscale = getDownscaleFactor( in configureNonSplit()
1673 if(downscale) { in configureNonSplit()
1678 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); in configureNonSplit()
1681 if((has90Transform(layer) && isRotationDoable(ctx, hnd)) || downscale) { in configureNonSplit()
1689 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configureNonSplit()
1758 const int downscale = 0; in configureSplit() local
1794 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureSplit()
[all …]
Dhwc_utils.h350 const ovutils::eTransform& orient, const int& downscale);
Dhwc_mdpcomp.cpp2316 const int downscale = 0; in configure() local
2349 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configure()
/hardware/qcom/display/msm8996/sdm/libs/core/
Dresource_default.h130 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
/hardware/qcom/sdm845/display/sdm/libs/core/
Dresource_default.h137 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/
Dresource_default.h137 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
/hardware/qcom/display/msm8909/sdm/libs/core/
Dresource_default.h137 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
Dresource_default.cpp907 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { in CalculateDecimation() argument
910 if (downscale <= max_down_scale) { in CalculateDecimation()
922 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale))); in CalculateDecimation()
/hardware/qcom/sm8150/display/sdm/libs/core/
Dresource_default.h142 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
Dresource_default.cpp899 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { in CalculateDecimation() argument
902 if (downscale <= max_down_scale) { in CalculateDecimation()
914 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale))); in CalculateDecimation()
/hardware/qcom/sm7250/display/sdm/libs/core/
Dresource_default.h146 DisplayError CalculateDecimation(float downscale, uint8_t *decimation);
Dresource_default.cpp896 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { in CalculateDecimation() argument
899 if (downscale <= max_down_scale) { in CalculateDecimation()
911 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale))); in CalculateDecimation()
/hardware/qcom/display/msm8998/sdm/libs/core/
Dresource_default.cpp907 DisplayError ResourceDefault::CalculateDecimation(float downscale, uint8_t *decimation) { in CalculateDecimation() argument
910 if (downscale <= max_down_scale) { in CalculateDecimation()
922 *decimation = UINT8(ceilf(log2f(downscale / max_down_scale))); in CalculateDecimation()
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_mdpcomp.cpp2798 const uint32_t downscale = getRotDownscale(ctx, layer); in acquireMDPPipes() local
2799 if(downscale) { in acquireMDPPipes()
2800 cropWidth /= downscale; in acquireMDPPipes()
2801 cropHeight /= downscale; in acquireMDPPipes()
2873 int downscale = getRotDownscale(ctx, layer); in configure() local
2875 setMdpFlags(ctx, layer, mdpFlags, downscale, transform); in configure()
2882 if((has90Transform(layer) or downscale) and isRotationDoable(ctx, hnd)) { in configure()
2888 BwcPM::setBwc(ctx, mDpy, hnd, crop, dst, transform, downscale, in configure()
2892 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configure()
Dhwc_utils.h182 const int& transform, const int& downscale,
417 const ovutils::eTransform& orient, const int& downscale);