icfans

自动测试时预览界面被旋转了90度

0
阅读(209) 评论(0)

[DESCRIPTION]
自动测试时预览界面被旋转了90度
[KEYWORD]
Camera MMI
[SOLUTION]来自半导体社区
1.在mmi_fm_camera_entry_preview_screen()函数中 gdi_layer_blt_previous(0, 0, UI_device_width - 1,
UI_device_height - 1);语句的前边增加下列语句:
camera_setting_data.lcm_rotate = MDI_CAMERA_LCM_ROTATE_90;
gdi_layer_set_position(0, 0);
gdi_layer_resize(LCD_HEIGHT,LCD_WIDTH);
gdi_lcd_set_rotate_by_layer(TRUE);
gdi_layer_set_rotate(GDI_LCD_LAYER_ROTATE_90);
修改camera_setting_data.preview_width = CAMERA_FACTORY_PREVIEW_WIDTH;
camera_setting_data.preview_height = CAMERA_FACTORY_PREVIEW_HEIGHT;

camera_setting_data.preview_width = CAMERA_FACTORY_PREVIEW_HEIGHT;
camera_setting_data.preview_height =CAMERA_FACTORY_PREVIEW_WIDTH ;
2. 在EntryFMCameraTransientScreen函数中起始位置增加
gdi_lcd_set_rotate_by_layer(TRUE);
gdi_layer_set_rotate(GDI_LCD_LAYER_ROTATE_0);
gdi_layer_set_position(0, 0);