Top | ![]() |
![]() |
![]() |
![]() |
GstVaapiContext * | gst_vaapi_context_new () |
gboolean | gst_vaapi_context_reset () |
GstVaapiID | gst_vaapi_context_get_id () |
GstVaapiSurfaceProxy * | gst_vaapi_context_get_surface_proxy () |
guint | gst_vaapi_context_get_surface_count () |
struct | GstVaapiConfigInfoEncoder |
struct | GstVaapiContextInfo |
struct | GstVaapiContext |
enum | GstVaapiContextUsage |
GstVaapiContext * gst_vaapi_context_new (GstVaapiDisplay *display
,const GstVaapiContextInfo *cip
);
Creates a new GstVaapiContext with the configuration specified by
cip
, thus including profile, entry-point, encoded size and maximum
number of reference frames reported by the bitstream.
gboolean gst_vaapi_context_reset (GstVaapiContext *context
,const GstVaapiContextInfo *new_cip
);
Resets context
to the configuration specified by new_cip
, thus
including profile, entry-point, encoded size and maximum number of
reference frames reported by the bitstream.
GstVaapiID
gst_vaapi_context_get_id (GstVaapiContext *context
);
Returns the underlying VAContextID of the context
.
GstVaapiSurfaceProxy *
gst_vaapi_context_get_surface_proxy (GstVaapiContext *context
);
Acquires a free surface, wrapped into a GstVaapiSurfaceProxy. The
returned surface will be automatically released when the proxy is
destroyed. So, it is enough to call gst_vaapi_surface_proxy_unref()
after usage.
This function returns NULL
if there is no free surface available
in the pool. The surfaces are pre-allocated during context creation
though.
guint
gst_vaapi_context_get_surface_count (GstVaapiContext *context
);
Retrieves the number of free surfaces left in the pool.
struct GstVaapiConfigInfoEncoder { GstVaapiRateControl rc_mode; guint packed_headers; };
Extra configuration for encoding.
rate-control mode (GstVaapiRateControl). |
||
guint |
notify encoder that packed headers are submitted (mask). |
struct GstVaapiContextInfo { GstVaapiContextUsage usage; GstVaapiProfile profile; GstVaapiEntrypoint entrypoint; GstVaapiChromaType chroma_type; guint width; guint height; guint ref_frames; union _GstVaapiConfigInfo { GstVaapiConfigInfoEncoder encoder; } config; };
Structure holding VA context info like encoded size, decoder profile and entry-point to use, and maximum number of reference frames reported by the bitstream.