[vlc-commits] Allowed rendering OSD at display resolution when possible and of higher quality .

Laurent Aimar git at videolan.org
Sat Feb 12 20:05:47 CET 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 12 19:38:36 2011 +0100| [4dae8e1b1c57e8f0ae7cde657d7936efd33171b0] | committer: Laurent Aimar

Allowed rendering OSD at display resolution when possible and of higher quality.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4dae8e1b1c57e8f0ae7cde657d7936efd33171b0
---

 src/video_output/video_output.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index f390e7d..351a9fa 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -907,7 +907,13 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
     const bool do_dr_spu = !do_snapshot &&
                            vd->info.subpicture_chromas &&
                            *vd->info.subpicture_chromas != 0;
-    const bool do_early_spu = true; /* TODO */
+    const bool do_early_spu = !do_dr_spu &&
+                              (vd->info.is_slow ||
+                               sys->display.use_dr ||
+                               do_snapshot ||
+                               !vout_IsDisplayFiltered(vd) ||
+                               vd->fmt.i_width * vd->fmt.i_height <= vd->source.i_width * vd->source.i_height);
+
     const vlc_fourcc_t *subpicture_chromas;
     video_format_t fmt_spu;
     if (do_dr_spu) {



More information about the vlc-commits mailing list