Qcom-如何修改Camera预览、拍照、视频时支持的分辨率
如何在预览、拍照、录制视频时,提供一组1080*960的新分辨率。
vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/mct/pipeline/mct_pipeline.c
//预览
static cam_dimension_t default_preview_sizes[] = {
···
+{1080 , 960},// 100w (9:8)
···
}
//拍照
static cam_dimension_t default_picture_sizes[] = {
···
+{1080 , 960},// 100w (9:8)
···
}
//动态照片
static cam_dimension_t default_liveshot_sizes[] = {
···
+{1080 , 960},// 100w (9:8)
···
}
//视频
static cam_dimension_t default_video_sizes[] = {
···
+{1080 , 960},// 100w (9:8)
···
}
二、遇到的问题:MediaRecorder: start failed: -19
添加{1080 , 960}这组参数,出现录制视频失败的现象。
log分析:
StagefrightRecorder: Intended video encoding frame height (960) is too large and will be set to (720)
E CameraSource: Video dimension (1080x720) is unsupported
D mm-camera-intf: mm_stream_read