关于sub sensor的角度 问题
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
关于mainsensor和subsensor的角度问题
[SOLUTION]
1.mediatek/custom/common/hal/CAMERA/camera/cfg_tuning_MT6573.h
或者mediatek/custom/common/hal/camera/camera/MT6577/cfg_setting_imgsensor.h
getSensorOrientation()里修改:
u4Degree_0表示main//通常横装的是90度
u4Degree_1表示sub//subsensor竖装是0都,横装的90/270度
2.xxxyuv_Sensor.c
xxx_Preview()和xxx_Capture()
必须调用xxxSetMirror(sensor_config_data->SensorImageMirror);
也必须正确的实现xxxSetMirror()函数
3.另外注意:
xxxGetResolution()里previw的Width/Height都必须小于capture的,这样才能区别preview和capture,参考下面的修改:
关于mainsensor和subsensor的角度问题
[SOLUTION]
1.mediatek/custom/common/hal/CAMERA/camera/cfg_tuning_MT6573.h
或者mediatek/custom/common/hal/camera/camera/MT6577/cfg_setting_imgsensor.h
getSensorOrientation()里修改:
u4Degree_0表示main//通常横装的是90度
u4Degree_1表示sub//subsensor竖装是0都,横装的90/270度
2.xxxyuv_Sensor.c
xxx_Preview()和xxx_Capture()
必须调用xxxSetMirror(sensor_config_data->SensorImageMirror);
也必须正确的实现xxxSetMirror()函数
3.另外注意:
xxxGetResolution()里previw的Width/Height都必须小于capture的,这样才能区别preview和capture,参考下面的修改:
- pSensorResolution->SensorFullWidth=xxx_IMAGE_SENSOR_WIDTH_DRV;
- pSensorResolution->SensorFullHeight=xxx_IMAGE_SENSOR_HEIGHT_DRV;
- pSensorResolution->SensorPreviewWidth=xxx_IMAGE_SENSOR_WIDTH_DRV-2;
- pSensorResolution->SensorPreviewHeight=xxx_IMAGE_SENSOR_HEIGHT_DRV-2;
- switch(ScenarioId)
- {
- caseMSDK_SCENARIO_ID_CAMERA_PREVIEW:
- casEMSDK_SCENARIO_ID_VIDEO_PREVIEW:
- caseMSDK_SCENARIO_ID_VIDEO_CAPTURE_MPEG4:
- xxx_Preview(pImageWindow,pSensorConfigData);
- break;
- caseMSDK_SCENARIO_ID_CAMERA_CAPTURE_JPEG:
- caseMSDK_SCENARIO_ID_CAMERA_CAPTURE_MEM:
- xxx_Capture(pImageWindow,pSensorConfigData);
- break;
- default:
- returnERROR_INVALID_SCENARIO_ID;
- }