diff options
author | He Junyan <junyan.he@hotmail.com> | 2019-12-30 14:09:17 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-01-02 18:01:45 +0100 |
commit | a6cf75e8c65542409841a1a45661556c78dcba79 (patch) | |
tree | 8f5dff2ff3067d0035f08f2b58096ddd05b76660 /gst-libs/gst/vaapi/gstvaapiencoder.h | |
parent | b4d73433c39e2fadea4a4a43e5d8ce7278832f19 (diff) |
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>
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiencoder.h')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.h b/gst-libs/gst/vaapi/gstvaapiencoder.h index 84ca4aa6..1d81baf1 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.h +++ b/gst-libs/gst/vaapi/gstvaapiencoder.h @@ -181,8 +181,9 @@ GstVaapiEncoderStatus gst_vaapi_encoder_flush (GstVaapiEncoder * encoder); GArray * -gst_vaapi_encoder_get_surface_formats (GstVaapiEncoder * encoder, - GstVaapiProfile profile); +gst_vaapi_encoder_get_surface_attributes (GstVaapiEncoder * encoder, + GstVaapiProfile profile, gint * min_width, gint * min_height, + gint * max_width, gint * max_height); GstVaapiProfile gst_vaapi_encoder_get_profile (GstVaapiEncoder * encoder); |