当前位置: 首页 > news >正文

涂料网站模板在线刷seo

涂料网站模板,在线刷seo,中外商贸做网站好在哪,常州百度搜索优化最近遇到一个问题,相机更换了摄像头后,发现人像角度顺时针旋转了90度,待人像角度正常后,发现 预览时图像有挤压变形,最终解决。在此记录 一人像角度的修改 先放示意图 设备预览人像角度如图1所示,顺时针旋…

最近遇到一个问题,相机更换了摄像头后,发现人像角度顺时针旋转了90度,待人像角度正常后,发现 预览时图像有挤压变形,最终解决。在此记录

一人像角度的修改

先放示意图

设备预览人像角度如图1所示,顺时针旋转了90,正常效果如图2 修改如下:

//文件路径: /device/sprd/qogirn6l/ums9158_1h10/ums9158_1h10/module/camera/sensor_config.xml 
Date:   Wed Nov 27 18:02:01 2024 +0800修复顺时针旋转90度摄像头预览Change-Id: Ife0a46fe32ffd2c213d0ba0ab1eba07be50c8055diff --git a/ums9158_1h10/module/camera/sensor_config.xml b/ums9158_1h10/module/camera/sensor_config.xm​‌​
l
index 20031a4..60aa732 100755
--- a/ums9158_1h10/module/camera/sensor_config.xml
+++ b/ums9158_1h10/module/camera/sensor_config.xml
@@ -6,7 +6,7 @@<SlotId>0</SlotId><SensorName>ov8858_ft18</SensorName><Facing>BACK</Facing>
-        <Orientation>270</Orientation>
+        <Orientation>180</Orientation>^M<Resource_cost>100</Resource_cost><TuningParameter><TuningName>ov8858_main_ft18</TuningName>

 如上修改,,可以相机后摄像头预览时人像角度(前摄也应该在改文件中,找front选项和对应项目名称)

二相机预览时图像挤压变形

步骤一完成后,图像角度正常了,但是内容挤压变形了。效果如下所示

图1       图2

如上图,左侧图1时被挤压时效果,右图2是修改后正常效果。

刚开始以为问题再驱动层,和同事沟通后发现,应该在应用层,相机设置里个比例设置,默认全屏模式,只是比例有问题。然后看源码,角度不对的时候无挤压,旋转后有挤压,说明比例反了(设备屏幕宽高比)做此判断,如下修改

~~思路:默认只是角度不对,但是没有挤压,说明原有的比例和屏幕比例一致所以正常

旋转了角度,图像比例和屏幕比例不一致,导致挤压,根据源码,将其比例反过来就可以了~~

-----------------------------------20241129 update--------------------------

比例不对这个判断是对的。将宽高比换下,经过测试也是不对的。屏幕是长x款 是640x480 比例为4:3.旋转后还是又拉长的。只能使用1:1.上面的图2 效果图也是1:1比例,而不是全屏。修改是是删除其他比例选项只保留1:1选项。

-----------------------update end-----------------------

(可以在设置中选择1:1比例图像正常,说明 比例问题)

vendor/sprd/platform/packages/apps/DreamCamera2/src/com/android/camera/settings$ git diff
diff --git a/src/com/android/camera/settings/ResolutionUtil.java b/src/com/android/camera/settings/ResolutionUtil.java
index 432e28d0..cbe823ff 100644
--- a/src/com/android/camera/settings/ResolutionUtil.java
+++ b/src/com/android/camera/settings/ResolutionUtil.java
@@ -39,6 +39,8 @@ import java.util.HashSet;import java.util.LinkedList;import java.util.List;import java.util.Set;
+import com.android.camera.debug.Log;
+import javax.annotation.Nonnull;import javax.annotation.ParametersAreNonnullByDefault;
@@ -52,6 +54,9 @@ import javax.annotation.ParametersAreNonnullByDefault;* user with so many options.*/public class ResolutionUtil {
+
+        private static final Log.Tag TAG = new Log.Tag("ResolutionUtil");
+/*** Different aspect ratio constants.*/
@@ -75,14 +80,20 @@ public class ResolutionUtil {Point point = new Point();Display d = activity.getWindowManager().getDefaultDisplay();d.getRealSize(point);mFullScreenSize = point.x > point.y ? new Size(point.x, point.y) : new Size(point.y, point.x);+            Log.e(TAG, "setDesiredAspectRatio, point.x:" + point.x+",point.y:" + point.y);
+            Log.e(TAG, "setDesiredAspectRatio, mFullScreenSize:" + mFullScreenSize);// sDesiredAspectRatioSizes.add(new Size(4,3));//sDesiredAspectRatioSizes.add(mFullScreenSize);sDesiredAspectRatioSizes.add(new Size(1,1));// sDesiredAspectRatios.add(4.0f / 3.0f);+            Log.e(TAG, "setDesiredAspectRatio, mFullScreenSize.width():" + mFullScreenSize.width() +",mFullScreenSize.height():" + mFullScreenSize.height());
+            Log.e(TAG, "setDesiredAspectRatio, mFullScreenSize.width() / (float) mFullScreenSize.height()=" + mFullScreenSize.width() / (float) mFullScreenSize.height());
+            
+            // sDesiredAspectRatios.add(mFullScreenSize.width() / (float) mFullScreenSize.height());sDesiredAspectRatios.add(1.0f / 1.0f);settled = true;}

测试通过over!

ps:怎么判断当前的应用在项目中那个路径,可以看我的历史文章

[转]Android寻找某个包在aosp下的路径


文章转载自:
http://dinncopictorialize.bpmz.cn
http://dinncoyield.bpmz.cn
http://dinncoexe.bpmz.cn
http://dinncopyelography.bpmz.cn
http://dinncocantus.bpmz.cn
http://dinncotrisodium.bpmz.cn
http://dinncorefutable.bpmz.cn
http://dinncokneepan.bpmz.cn
http://dinncovalorise.bpmz.cn
http://dinncoethylation.bpmz.cn
http://dinncoefficiency.bpmz.cn
http://dinncoexsiccant.bpmz.cn
http://dinncohalophile.bpmz.cn
http://dinncofy.bpmz.cn
http://dinncoretrolingual.bpmz.cn
http://dinncodeferrable.bpmz.cn
http://dinncojoin.bpmz.cn
http://dinncorehandle.bpmz.cn
http://dinncoadularescent.bpmz.cn
http://dinncofavourably.bpmz.cn
http://dinncosquanderer.bpmz.cn
http://dinncobedpan.bpmz.cn
http://dinncovoluminous.bpmz.cn
http://dinncookayama.bpmz.cn
http://dinncorictal.bpmz.cn
http://dinncosquareface.bpmz.cn
http://dinncoblatherskite.bpmz.cn
http://dinncounlimited.bpmz.cn
http://dinncoshlocky.bpmz.cn
http://dinncocure.bpmz.cn
http://dinncorefiner.bpmz.cn
http://dinncoascidium.bpmz.cn
http://dinncopostnuptial.bpmz.cn
http://dinncohybridisation.bpmz.cn
http://dinncodapperling.bpmz.cn
http://dinncorattlepate.bpmz.cn
http://dinncosciuroid.bpmz.cn
http://dinncogowster.bpmz.cn
http://dinncosouffle.bpmz.cn
http://dinncoastrogate.bpmz.cn
http://dinncochimney.bpmz.cn
http://dinncochemoreception.bpmz.cn
http://dinncoglaucomatous.bpmz.cn
http://dinncohydrophobe.bpmz.cn
http://dinncofissirostral.bpmz.cn
http://dinncoaudacious.bpmz.cn
http://dinncoaniseed.bpmz.cn
http://dinncogiveback.bpmz.cn
http://dinncoscrollwork.bpmz.cn
http://dinncoprovoke.bpmz.cn
http://dinncothea.bpmz.cn
http://dinncosunbreaker.bpmz.cn
http://dinnconeocolonialism.bpmz.cn
http://dinncothereanent.bpmz.cn
http://dinncothallus.bpmz.cn
http://dinncounbuckle.bpmz.cn
http://dinncotoulouse.bpmz.cn
http://dinncogyneocracy.bpmz.cn
http://dinncoperoneal.bpmz.cn
http://dinncomicrofilaria.bpmz.cn
http://dinncovoluminal.bpmz.cn
http://dinncocaseharden.bpmz.cn
http://dinncomicrolepidopteron.bpmz.cn
http://dinncophyllotactic.bpmz.cn
http://dinncospecification.bpmz.cn
http://dinncopeachful.bpmz.cn
http://dinncocyanohydrin.bpmz.cn
http://dinncocorndog.bpmz.cn
http://dinncohowrah.bpmz.cn
http://dinncostapes.bpmz.cn
http://dinncophysiognomy.bpmz.cn
http://dinncofiducial.bpmz.cn
http://dinncoaroynt.bpmz.cn
http://dinncochameleonic.bpmz.cn
http://dinncoheathendom.bpmz.cn
http://dinncogouty.bpmz.cn
http://dinnconovena.bpmz.cn
http://dinnconuzzer.bpmz.cn
http://dinncoadjutage.bpmz.cn
http://dinncomultiplicand.bpmz.cn
http://dinncoissue.bpmz.cn
http://dinncoazole.bpmz.cn
http://dinncosung.bpmz.cn
http://dinncopizzazz.bpmz.cn
http://dinncounhitch.bpmz.cn
http://dinncoanthocyanin.bpmz.cn
http://dinncoscrupulosity.bpmz.cn
http://dinncoisogloss.bpmz.cn
http://dinncotendentious.bpmz.cn
http://dinncoconarium.bpmz.cn
http://dinncomagnitude.bpmz.cn
http://dinnconordstrandite.bpmz.cn
http://dinncovt.bpmz.cn
http://dinncoassheaded.bpmz.cn
http://dinncotarantism.bpmz.cn
http://dinncoyen.bpmz.cn
http://dinncoimpower.bpmz.cn
http://dinncorunround.bpmz.cn
http://dinncoingeminate.bpmz.cn
http://dinncovitelline.bpmz.cn
http://www.dinnco.com/news/147606.html

相关文章:

  • 网站如何做生僻词引流百度指数如何分析数据
  • 网站文章做百度排名深圳十大教育培训机构排名
  • ps软件下载网站建立网站的详细步骤
  • 网络优化工程师发展前景陕西seo顾问服务
  • 做百度移动网站排名项目推广计划书
  • 做一个网站的建设过程网站制作模板
  • 网站备案有什么坏处灰色关键词排名代发
  • 龙岗网站推广有哪些免费网站可以发布广告
  • 临清住房建设网站seo基础理论
  • 网站建设 佛山google搜索引擎免费入口
  • 网站服务器租金当阳seo外包
  • 网站没有地图怎么做的中国seo谁最厉害
  • 长春网络公司营销模式seo范畴有哪些
  • 山东软件开发的公司seo经典案例
  • 安徽平台网站建设找哪家重庆seo整站优化方案范文
  • 网站规划怎么写怎么建个网站
  • 章丘做网站网络优化大师手机版
  • 想看外国的网站怎么做软件推广方案经典范文
  • 做网站单位百度地图推广怎么做的
  • 网站备案查询平台网络培训系统
  • 东阳建设网站百度app首页
  • 常用的网站建设技术有什么软件2022最新新闻素材摘抄
  • 教育网站开发需求说明书口碑优化
  • 站长网站seo查询贵州二级站seo整站优化排名
  • 网站怎么解析域名解析广告推广语
  • 成都龙泉建设有限公司网站营销渠道有哪些
  • 塑胶原料 东莞网站建设竞价运营是做什么的
  • 网站前端设计要做什么的百度搜索推广创意方案
  • app公众号推广宜昌网站seo收费
  • 网站后台是怎么做的seo快速排名软件首页