From 2dd020efc297454fb50ddef0eb56db17e33530a0 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Fri, 29 Dec 2017 22:45:55 -0800 Subject: vo_gpu/android: fallback to EGL_WIDTH/HEIGHT Uses the EGL width/height by default when the user fails to set the android-surface-width/android-surface-height options. This means the vo-resize command is optional, and does not need to be implemented on android devices which do not support rotation. Signed-off-by: Aman Gupta --- DOCS/man/options.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index c68f1468d4..eabaa2eb96 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4755,8 +4755,10 @@ The following video options are currently all specific to ``--vo=gpu`` and ``--android-surface-width=``, ``--android-surface-height=`` Set dimensions of the rendering surface used by the Android gpu context. - Needs to be set by the embedding application. Setting these does not re- - configure the vo, thus ``vo-resize`` should be called afterwards. + Needs to be set by the embedding application if the dimensions change during + runtime (i.e. if the device is rotated), via the surfaceChanged callback. + Setting these does not re-configure the vo, thus ``vo-resize`` should be + called afterwards. Android with ``--gpu-context=android`` only. -- cgit v1.2.3