[vlc-devel] [PATCH 1/2] vout: set an i_order to subpictures when they are rendered

Thomas Guillem thomas at gllm.fr
Fri Feb 20 11:00:16 CET 2015


This i_order can be used by vout display modules to easily compare subpictures.
That way, a module can bypass a subpicture rendering if it has been previously
rendered.
---
 src/video_output/vout_subpictures.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 544bb5c..b3f0152 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -980,6 +980,7 @@ static subpicture_t *SpuRenderSubpictures(spu_t *spu,
     subpicture_t *output = subpicture_New(NULL);
     if (!output)
         return NULL;
+    output->i_order = pp_subpicture[i_subpicture - 1]->i_order;
     output->i_original_picture_width  = fmt_dst->i_visible_width;
     output->i_original_picture_height = fmt_dst->i_visible_height;
     subpicture_region_t **output_last_ptr = &output->p_region;
-- 
2.1.3




More information about the vlc-devel mailing list