From d5615102d5bce7c506279a2578a34da25f91301f Mon Sep 17 00:00:00 2001 From: Muhammad Faiz Date: Fri, 24 Jun 2016 00:49:10 +0700 Subject: vo_opengl: add output_size uniform to custom shader logically, scaler should know its input and output size Signed-off-by: wm4 --- DOCS/man/vo.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS/man/vo.rst') diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index d9d4bb4d91..b8b7244c00 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -629,6 +629,9 @@ Available video output drivers are: never resets (regardless of seeks). vec2 image_size The size in pixels of the input image. + vec2 target_size + The size in pixels of the visible part of the scaled (and possibly + cropped) image. For example, a shader that inverts the colors could look like this:: -- cgit v1.2.3