vout_zoom.diff

来自「Last change: 2008-02-03 This is the sou」· DIFF 代码 · 共 19 行

DIFF
19
字号
Index: src/video_output/vout_pictures.c
===================================================================
--- src/video_output/vout_pictures.c	(revision 9302)
+++ src/video_output/vout_pictures.c	(working copy)
@@ -446,8 +446,11 @@
     }
     else
     {
-        *pi_width = __MIN( i_width, p_vout->render.i_width );
-        *pi_height = __MIN( i_height, p_vout->render.i_height );
+        vlc_value_t val;
+        var_Get( p_vout, "zoom", &val );
+
+        *pi_width = __MIN( i_width, p_vout->render.i_width * val.f_float );
+        *pi_height = __MIN( i_height, p_vout->render.i_height * val.f_float );
     }
 
     if( VOUT_ASPECT_FACTOR * *pi_width / *pi_height < p_vout->render.i_aspect )

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?