NAzT
9/17/2013 - 3:49 AM

mmal.c

mmal.c

camera_preview_port = camera->output[MMAL_CAMERA_PREVIEW_PORT];
camera_video_port = camera->output[MMAL_CAMERA_VIDEO_PORT];
camera_still_port = camera->output[MMAL_CAMERA_CAPTURE_PORT];

{
    MMAL_PARAMETER_CAMERA_CONFIG_T cam_config = {
        { MMAL_PARAMETER_CAMERA_CONFIG, sizeof (cam_config)},
        .max_stills_w = 1280,
        .max_stills_h = 720,
        .stills_yuv422 = 0,
        .one_shot_stills = 0,
        .max_preview_video_w = 1280,
        .max_preview_video_h = 720,
        .num_preview_video_frames = 2,
        .stills_capture_circular_buffer_height = 0,
        .fast_preview_resume = 1,
        .use_stc_timestamp = MMAL_PARAM_TIMESTAMP_MODE_RESET_STC
    };

    mmal_port_parameter_set(camera->control, &cam_config.hdr);
}