微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > camera插值到1200W

camera插值到1200W

时间:10-02 整理:3721RD 点击:
   有人CAMERA插值到1200W吗?现插值不成功!应该是有些地方漏了!求指点!

你插到800W行不行?

800W是可以的  直接在hal/camera/camera里面设置一下就可以了!但1200W不行  

应该还有一个地方没设置好!

在功能机上我碰到过如果插值不成功,要么是RAM分配不够。
要么时速度太快,可以加一个延时试一下。

应该不是这个问题!可能是因为MTK只做了800W。1200的没有 要自己搞

哪我也不知道了。

现在是1200W这个菜单都没出来!app/camera这应该我已经加了1200W了!所以觉得应该在其他地方还有设置的!

哪还是先将1200W菜单搞出来。

可以了!刚才还有一个地方(external)没设置到!

牛X....           

怎么修改的,小编分享一下!

UI做一个1200   hardware哪里加上1200  其他插800一样

帅哥,可以分享一下你的经验吗?

在alps/mediatek/source/external/camera/mt6575/CamAdapter/mHal/mHalCamParameters.cpp


  1. //modify at 20121011 by zhu for camera 1200W
  2. int picSizes[] = {
  3.         CAPTURE_SIZE_4000_3000,CAPTURE_SIZE_3264_2448, CAPTURE_SIZE_2560_1920, CAPTURE_SIZE_2048_1536, CAPTURE_SIZE_1600_1200, CAPTURE_SIZE_1280_960,
  4.         CAPTURE_SIZE_1024_768, CAPTURE_SIZE_640_480, CAPTURE_SIZE_320_240};
  5.     const char *ppicSizes[] = {
  6.         "4000x3000","3264x2448", "2560x1920", "2048x1536", "1600x1200", "1280x960", "1024x768",
  7.         "640x480", "320x240"};
  8. alps/mediatek/custom/common/hal/camera/camera/cfg_ftbl_custom_raw_main.h
  9. 在这文件capture里面添加1200W像素。
  10. CONFIG_FEATURE(FID_CAP_SIZE,
  11.         BY_DEFAULT(CAPTURE_SIZE_2560_1920),
  12.         CAPTURE_SIZE_640_480,
  13.         CAPTURE_SIZE_1280_960,  CAPTURE_SIZE_1600_1200,
  14.         CAPTURE_SIZE_2048_1536, CAPTURE_SIZE_2560_1920,
  15.         CAPTURE_SIZE_3264_2448,CAPTURE_SIZE_4000_3000
  16.     )
  17. 在alps/mediatek/custom/common/kernel/imgsensor/inc/kd_camera_feature_enum.h这里面添加:
  18. //  Capture Size
  19. FID_TO_TYPE_ENUM  (
  20.     FID_CAP_SIZE,
  21.     FTYPE_ENUM  (
  22.         CAPTURE_SIZE_BEGIN      =   0,
  23.         CAPTURE_SIZE_320_240    =   CAPTURE_SIZE_BEGIN,
  24.         CAPTURE_SIZE_640_480,
  25.         CAPTURE_SIZE_1024_768,
  26.         CAPTURE_SIZE_1280_960,
  27.         CAPTURE_SIZE_1600_1200,
  28.         CAPTURE_SIZE_2048_1536,
  29.         CAPTURE_SIZE_2560_1920,
  30.         CAPTURE_SIZE_3264_2448,
  31.         CAPTURE_SIZE_4000_3000,
  32.         NUM_OF_CAPTURE_SIZE
  33.     )
  34. ) CAPTURE_SIZE_T;

  35. alps/packages/apps/Camera/res/values/arrays.xml添加:
  36. <!-- Camera Preferences Picture size dialog box entries -->
  37.     <string-array name="pref_camera_picturesize_entries" translatable="false">
  38.         <!-- TODO: Change to a better name of the preference.
  39.                 The first element of the array sould be
  40.                 "pref_camera_picturesize_entry_2592x1944". However, we are too
  41.                 late for the translation. Since we show the same label as the
  42.                 second item, we just use the second one instead.
  43.         -->
  44.     <!--add at 20121011 by zhu for camera 1200M pixels-->
  45.         <item>@string/pref_camera_picturesize_entry_4000x3000</item>
  46.     <!--add at 20121011 by zhu for camera 1200M pixels end-->
  47.         <item>@string/pref_camera_picturesize_entry_3264x2448</item>
  48.         <item>@string/pref_camera_picturesize_entry_2592x1936</item>
  49.         <item>@string/pref_camera_picturesize_entry_2592x1936</item>
  50.         <item>@string/pref_camera_picturesize_entry_2592x1936</item>
  51.         <item>@string/pref_camera_picturesize_entry_2048x1536</item>
  52.         <item>@string/pref_camera_picturesize_entry_1600x1200</item>
  53.         <item>@string/pref_camera_picturesize_entry_1280x960</item>
  54.         <item>@string/pref_camera_picturesize_entry_1024x768</item>
  55.         <item>@string/pref_camera_picturesize_entry_640x480</item>
  56.         <item>@string/pref_camera_picturesize_entry_320x240</item>
  57. </string-array>

  58. <string-array name="pref_camera_picturesize_entryvalues" translatable="false">
  59. <!--add at 20121011 by zhu for camera 1200M pixels-->
  60.         <item>4000x3000</item>
  61.     <!--add at 20121011 by zhu for camera 1200M pixels end-->
  62.         <item>3264x2448</item>
  63.         <item>2592x1944</item>
  64.         <item>2592x1936</item>
  65.         <item>2560x1920</item>
  66.         <item>2048x1536</item>
  67.         <item>1600x1200</item>
  68.         <item>1280x960</item>
  69.         <item>1024x768</item>
  70.         <item>640x480</item>
  71.         <item>320x240</item>
  72.     </string-array>

复制代码

在strings.xml添加字符串就行了pref_camera_picturesize_entry_4000x3000

牛,  能说说插值的步骤是怎么样的吗?

不是已经说清楚了吗

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top