{
int err = MM_ERROR_NONE;
int i = 0;
- int camera_width = 0;
- int camera_height = 0;
int camera_rotate = 0;
int camera_flip = 0;
int fps = 0;
}
err = mm_camcorder_get_attributes(handle, &err_name,
- MMCAM_CAMERA_WIDTH, &camera_width,
- MMCAM_CAMERA_HEIGHT, &camera_height,
MMCAM_CAMERA_FORMAT, &sc->info_image->preview_format,
MMCAM_CAMERA_FPS, &fps,
MMCAM_CAMERA_ROTATION, &camera_rotate,
bool _mmcamcorder_set_videosrc_rotation(MMHandleType handle, int videosrc_rotate)
{
- int width = 0;
- int height = 0;
int fps = 0;
_MMCamcorderSubContext *sc = NULL;
}
mm_camcorder_get_attributes(handle, NULL,
- MMCAM_CAMERA_WIDTH, &width,
- MMCAM_CAMERA_HEIGHT, &height,
+ MMCAM_CAMERA_WIDTH, &sc->info_video->preview_width,
+ MMCAM_CAMERA_HEIGHT, &sc->info_video->preview_height,
MMCAM_CAMERA_FPS, &fps,
NULL);
_mmcam_dbg_log("set rotate %d", videosrc_rotate);
- return _mmcamcorder_set_videosrc_caps(handle, sc->fourcc, width, height, fps, videosrc_rotate);
+ return _mmcamcorder_set_videosrc_caps(handle, sc->fourcc,
+ sc->info_video->preview_width, sc->info_video->preview_height,
+ fps, videosrc_rotate);
}