Commit 160f187d authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

vout: set visible resolution of input/output video formats in SpuRenderCreateAndLoadScale().

Enable video filters using the visible dimension of the picture.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 446593be
......@@ -238,12 +238,16 @@ static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
es_format_Init(&scale->fmt_in, VIDEO_ES, 0);
scale->fmt_in.video.i_chroma = src_chroma;
scale->fmt_in.video.i_width =
scale->fmt_in.video.i_height = 32;
scale->fmt_in.video.i_visible_width =
scale->fmt_in.video.i_height =
scale->fmt_in.video.i_visible_height = 32;
es_format_Init(&scale->fmt_out, VIDEO_ES, 0);
scale->fmt_out.video.i_chroma = dst_chroma;
scale->fmt_out.video.i_width =
scale->fmt_out.video.i_height = require_resize ? 16 : 32;
scale->fmt_out.video.i_visible_width =
scale->fmt_out.video.i_height =
scale->fmt_out.video.i_visible_height = require_resize ? 16 : 32;
scale->pf_video_buffer_new = spu_new_video_buffer;
scale->pf_video_buffer_del = spu_del_video_buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment