[vlc-commits] vout: set visible resolution of input/ output video formats in SpuRenderCreateAndLoadScale().
Felix Abecassis
git at videolan.org
Sun Dec 8 13:48:34 CET 2013
vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Tue Nov 26 14:21:31 2013 +0100| [160f187de2622e8108c40289a14677240de457fd] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=160f187de2622e8108c40289a14677240de457fd
---
src/video_output/vout_subpictures.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 416a04c..9a16590 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -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;
More information about the vlc-commits
mailing list