mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
context: re-indent all GstVaapiContext related source code.
This commit is contained in:
parent
c5bdeb6980
commit
1ffdc010ad
2 changed files with 584 additions and 629 deletions
File diff suppressed because it is too large
Load diff
|
@ -34,10 +34,10 @@
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_VAAPI_CONTEXT(obj) \
|
#define GST_VAAPI_CONTEXT(obj) \
|
||||||
((GstVaapiContext *)(obj))
|
((GstVaapiContext *) (obj))
|
||||||
|
|
||||||
typedef struct _GstVaapiContext GstVaapiContext;
|
typedef struct _GstVaapiContext GstVaapiContext;
|
||||||
typedef struct _GstVaapiContextInfo GstVaapiContextInfo;
|
typedef struct _GstVaapiContextInfo GstVaapiContextInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstVaapiContextInfo:
|
* GstVaapiContextInfo:
|
||||||
|
@ -49,88 +49,75 @@ typedef struct _GstVaapiContextInfo GstVaapiContextInfo;
|
||||||
* Note: @rc_mode is only valid for VA context used for encoding,
|
* Note: @rc_mode is only valid for VA context used for encoding,
|
||||||
* i.e. if @entrypoint is set to @GST_VAAPI_ENTRYPOINT_SLICE_ENCODE.
|
* i.e. if @entrypoint is set to @GST_VAAPI_ENTRYPOINT_SLICE_ENCODE.
|
||||||
*/
|
*/
|
||||||
struct _GstVaapiContextInfo {
|
struct _GstVaapiContextInfo
|
||||||
GstVaapiProfile profile;
|
{
|
||||||
GstVaapiEntrypoint entrypoint;
|
GstVaapiProfile profile;
|
||||||
GstVaapiRateControl rc_mode;
|
GstVaapiEntrypoint entrypoint;
|
||||||
guint width;
|
GstVaapiRateControl rc_mode;
|
||||||
guint height;
|
guint width;
|
||||||
guint ref_frames;
|
guint height;
|
||||||
|
guint ref_frames;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstVaapiContext *
|
GstVaapiContext *
|
||||||
gst_vaapi_context_new(
|
gst_vaapi_context_new (GstVaapiDisplay * display, GstVaapiProfile profile,
|
||||||
GstVaapiDisplay *display,
|
GstVaapiEntrypoint entrypoint, guint width, guint height);
|
||||||
GstVaapiProfile profile,
|
|
||||||
GstVaapiEntrypoint entrypoint,
|
|
||||||
guint width,
|
|
||||||
guint height
|
|
||||||
);
|
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstVaapiContext *
|
GstVaapiContext *
|
||||||
gst_vaapi_context_new_full(GstVaapiDisplay *display,
|
gst_vaapi_context_new_full (GstVaapiDisplay * display,
|
||||||
const GstVaapiContextInfo *cip);
|
const GstVaapiContextInfo * cip);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gboolean
|
gboolean
|
||||||
gst_vaapi_context_reset(
|
gst_vaapi_context_reset (GstVaapiContext * context, GstVaapiProfile profile,
|
||||||
GstVaapiContext *context,
|
GstVaapiEntrypoint entrypoint, guint width, guint height);
|
||||||
GstVaapiProfile profile,
|
|
||||||
GstVaapiEntrypoint entrypoint,
|
|
||||||
guint width,
|
|
||||||
guint height
|
|
||||||
);
|
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gboolean
|
gboolean
|
||||||
gst_vaapi_context_reset_full(GstVaapiContext *context,
|
gst_vaapi_context_reset_full (GstVaapiContext * context,
|
||||||
const GstVaapiContextInfo *new_cip);
|
const GstVaapiContextInfo * new_cip);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstVaapiID
|
GstVaapiID
|
||||||
gst_vaapi_context_get_id(GstVaapiContext *context);
|
gst_vaapi_context_get_id (GstVaapiContext * context);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstVaapiProfile
|
GstVaapiProfile
|
||||||
gst_vaapi_context_get_profile(GstVaapiContext *context);
|
gst_vaapi_context_get_profile (GstVaapiContext * context);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gboolean
|
gboolean
|
||||||
gst_vaapi_context_set_profile(GstVaapiContext *context, GstVaapiProfile profile);
|
gst_vaapi_context_set_profile (GstVaapiContext * context,
|
||||||
|
GstVaapiProfile profile);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstVaapiEntrypoint
|
GstVaapiEntrypoint
|
||||||
gst_vaapi_context_get_entrypoint(GstVaapiContext *context);
|
gst_vaapi_context_get_entrypoint (GstVaapiContext * context);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
void
|
void
|
||||||
gst_vaapi_context_get_size(
|
gst_vaapi_context_get_size (GstVaapiContext * context,
|
||||||
GstVaapiContext *context,
|
guint * pwidth, guint * pheight);
|
||||||
guint *pwidth,
|
|
||||||
guint *pheight
|
|
||||||
);
|
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstVaapiSurfaceProxy *
|
GstVaapiSurfaceProxy *
|
||||||
gst_vaapi_context_get_surface_proxy(GstVaapiContext *context);
|
gst_vaapi_context_get_surface_proxy (GstVaapiContext * context);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
guint
|
guint
|
||||||
gst_vaapi_context_get_surface_count(GstVaapiContext *context);
|
gst_vaapi_context_get_surface_count (GstVaapiContext * context);
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gboolean
|
gboolean
|
||||||
gst_vaapi_context_apply_composition(
|
gst_vaapi_context_apply_composition (GstVaapiContext * context,
|
||||||
GstVaapiContext *context,
|
GstVideoOverlayComposition * composition);
|
||||||
GstVideoOverlayComposition *composition
|
|
||||||
);
|
|
||||||
|
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gboolean
|
gboolean
|
||||||
gst_vaapi_context_get_attribute(GstVaapiContext *context,
|
gst_vaapi_context_get_attribute (GstVaapiContext * context,
|
||||||
VAConfigAttribType type, guint *out_value_ptr);
|
VAConfigAttribType type, guint * out_value_ptr);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue