libs: encoder: get surfaces resolution the same time with formats.
authorHe Junyan <junyan.he@hotmail.com>
Mon, 30 Dec 2019 06:09:17 +0000 (14:09 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 2 Jan 2020 17:01:45 +0000 (18:01 +0100)
commita6cf75e8c65542409841a1a45661556c78dcba79
tree8f5dff2ff3067d0035f08f2b58096ddd05b76660
parentb4d73433c39e2fadea4a4a43e5d8ce7278832f19
libs: encoder: get surfaces resolution the same time with formats.

We can get all the information about the video format at one shot
when we create the test context for getting the supported formats.

The current way to get the width and height ranges are inefficient,
since it calls the function gst_vaapi_profile_caps_append_encoder()
and it creates another temporal context to detect the resolution
information.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
gst-libs/gst/vaapi/gstvaapiencoder.c
gst-libs/gst/vaapi/gstvaapiencoder.h
gst/vaapi/gstvaapiencode.c