[vlc-devel] commit: Increase the number of video/sub buffer. (Laurent Aimar )

git version control git at videolan.org
Sat Nov 1 16:47:23 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Nov  1 16:22:52 2008 +0100| [af6303149338a6b448cb08b440e88d69ab34c7f7] | committer: Laurent Aimar 

Increase the number of video/sub buffer.

Only if OPTIMIZE_MEMORY is not defined.
If allows better performance at the expense of memory.

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

 include/vlc_config.h |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/include/vlc_config.h b/include/vlc_config.h
index d795cb2..269c6ce 100644
--- a/include/vlc_config.h
+++ b/include/vlc_config.h
@@ -148,14 +148,26 @@
 
 /* Video heap size - remember that a decompressed picture is big
  * (~1 Mbyte) before using huge values */
-#define VOUT_MAX_PICTURES               8
+#ifdef OPTIMIZE_MEMORY
+#   define VOUT_MAX_PICTURES               8
+#else
+#   define VOUT_MAX_PICTURES              16
+#endif
 
 /* Minimum number of direct pictures the video output will accept without
  * creating additional pictures in system memory */
-#define VOUT_MIN_DIRECT_PICTURES        6
+#ifdef OPTIMIZE_MEMORY
+#   define VOUT_MIN_DIRECT_PICTURES        6
+#else
+#   define VOUT_MIN_DIRECT_PICTURES        12
+#endif
 
 /* Number of simultaneous subpictures */
-#define VOUT_MAX_SUBPICTURES            8
+#ifdef OPTIMIZE_MEMORY
+#   define VOUT_MAX_SUBPICTURES            8
+#else
+#   define VOUT_MAX_SUBPICTURES            16
+#endif
 
 /* Statistics are displayed every n loops (=~ pictures) */
 #define VOUT_STATS_NB_LOOPS             100




More information about the vlc-devel mailing list