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
- //modify at 20121011 by zhu for camera 1200W
- int picSizes[] = {
- CAPTURE_SIZE_4000_3000,CAPTURE_SIZE_3264_2448, CAPTURE_SIZE_2560_1920, CAPTURE_SIZE_2048_1536, CAPTURE_SIZE_1600_1200, CAPTURE_SIZE_1280_960,
- CAPTURE_SIZE_1024_768, CAPTURE_SIZE_640_480, CAPTURE_SIZE_320_240};
- const char *ppicSizes[] = {
- "4000x3000","3264x2448", "2560x1920", "2048x1536", "1600x1200", "1280x960", "1024x768",
- "640x480", "320x240"};
- alps/mediatek/custom/common/hal/camera/camera/cfg_ftbl_custom_raw_main.h
- 在这文件capture里面添加1200W像素。
- CONFIG_FEATURE(FID_CAP_SIZE,
- BY_DEFAULT(CAPTURE_SIZE_2560_1920),
- CAPTURE_SIZE_640_480,
- CAPTURE_SIZE_1280_960, CAPTURE_SIZE_1600_1200,
- CAPTURE_SIZE_2048_1536, CAPTURE_SIZE_2560_1920,
- CAPTURE_SIZE_3264_2448,CAPTURE_SIZE_4000_3000
- )
- 在alps/mediatek/custom/common/kernel/imgsensor/inc/kd_camera_feature_enum.h这里面添加:
- // Capture Size
- FID_TO_TYPE_ENUM (
- FID_CAP_SIZE,
- FTYPE_ENUM (
- CAPTURE_SIZE_BEGIN = 0,
- CAPTURE_SIZE_320_240 = CAPTURE_SIZE_BEGIN,
- CAPTURE_SIZE_640_480,
- CAPTURE_SIZE_1024_768,
- CAPTURE_SIZE_1280_960,
- CAPTURE_SIZE_1600_1200,
- CAPTURE_SIZE_2048_1536,
- CAPTURE_SIZE_2560_1920,
- CAPTURE_SIZE_3264_2448,
- CAPTURE_SIZE_4000_3000,
- NUM_OF_CAPTURE_SIZE
- )
- ) CAPTURE_SIZE_T;
- alps/packages/apps/Camera/res/values/arrays.xml添加:
- <!-- Camera Preferences Picture size dialog box entries -->
- <string-array name="pref_camera_picturesize_entries" translatable="false">
- <!-- TODO: Change to a better name of the preference.
- The first element of the array sould be
- "pref_camera_picturesize_entry_2592x1944". However, we are too
- late for the translation. Since we show the same label as the
- second item, we just use the second one instead.
- -->
- <!--add at 20121011 by zhu for camera 1200M pixels-->
- <item>@string/pref_camera_picturesize_entry_4000x3000</item>
- <!--add at 20121011 by zhu for camera 1200M pixels end-->
- <item>@string/pref_camera_picturesize_entry_3264x2448</item>
- <item>@string/pref_camera_picturesize_entry_2592x1936</item>
- <item>@string/pref_camera_picturesize_entry_2592x1936</item>
- <item>@string/pref_camera_picturesize_entry_2592x1936</item>
- <item>@string/pref_camera_picturesize_entry_2048x1536</item>
- <item>@string/pref_camera_picturesize_entry_1600x1200</item>
- <item>@string/pref_camera_picturesize_entry_1280x960</item>
- <item>@string/pref_camera_picturesize_entry_1024x768</item>
- <item>@string/pref_camera_picturesize_entry_640x480</item>
- <item>@string/pref_camera_picturesize_entry_320x240</item>
- </string-array>
- <string-array name="pref_camera_picturesize_entryvalues" translatable="false">
- <!--add at 20121011 by zhu for camera 1200M pixels-->
- <item>4000x3000</item>
- <!--add at 20121011 by zhu for camera 1200M pixels end-->
- <item>3264x2448</item>
- <item>2592x1944</item>
- <item>2592x1936</item>
- <item>2560x1920</item>
- <item>2048x1536</item>
- <item>1600x1200</item>
- <item>1280x960</item>
- <item>1024x768</item>
- <item>640x480</item>
- <item>320x240</item>
- </string-array>
牛, 能说说插值的步骤是怎么样的吗?
不是已经说清楚了吗
