- if (p_vout->p_sys->i_verbosity > VERB_WARN)
- msg_Info(p_vout, "Configuration: opencv-scale: %f, opencv-chroma: %d, "
- "opencv-output: %d, opencv-verbosity %d, opencv-filter %s",
- p_vout->p_sys->f_scale,
- p_vout->p_sys->i_internal_chroma,
- p_vout->p_sys->i_wrapper_output,
- p_vout->p_sys->i_verbosity,
- p_vout->p_sys->psz_inner_name);
-
- return VLC_SUCCESS;
-}
-
-/*****************************************************************************
- * Init: initialize opencv_wrapper video thread output method
- *****************************************************************************/
-static int Init( vout_thread_t *p_vout )
-{
- int i_index;
- picture_t *p_pic;
- video_format_t fmt;
- vout_sys_t *p_sys = p_vout->p_sys;
- I_OUTPUTPICTURES = 0;
-
- /* Initialize the output video format */
- memset( &fmt, 0, sizeof(video_format_t) );
- p_vout->output.i_chroma = p_vout->render.i_chroma;
- p_vout->output.i_width = p_vout->render.i_width;
- p_vout->output.i_height = p_vout->render.i_height;
- p_vout->output.i_aspect = p_vout->render.i_aspect;
- p_vout->fmt_out = p_vout->fmt_in; //set to input video format
-
- fmt = p_vout->fmt_out;
- if (p_sys->i_wrapper_output == PROCESSED) //set to processed video format
- {
- fmt.i_width = fmt.i_width * p_sys->f_scale;
- fmt.i_height = fmt.i_height * p_sys->f_scale;
- fmt.i_visible_width = fmt.i_visible_width * p_sys->f_scale;
- fmt.i_visible_height = fmt.i_visible_height * p_sys->f_scale;
- fmt.i_x_offset = fmt.i_x_offset * p_sys->f_scale;
- fmt.i_y_offset = fmt.i_y_offset * p_sys->f_scale;
-
- if (p_sys->i_internal_chroma == GREY)
- fmt.i_chroma = VLC_FOURCC('I','4','2','0');
- else if (p_sys->i_internal_chroma == RGB)
- fmt.i_chroma = VLC_FOURCC('R','V','3','2');