mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +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
|
||||
|
||||
#define GST_VAAPI_CONTEXT(obj) \
|
||||
((GstVaapiContext *)(obj))
|
||||
((GstVaapiContext *) (obj))
|
||||
|
||||
typedef struct _GstVaapiContext GstVaapiContext;
|
||||
typedef struct _GstVaapiContextInfo GstVaapiContextInfo;
|
||||
typedef struct _GstVaapiContext GstVaapiContext;
|
||||
typedef struct _GstVaapiContextInfo GstVaapiContextInfo;
|
||||
|
||||
/**
|
||||
* GstVaapiContextInfo:
|
||||
|
@ -49,88 +49,75 @@ typedef struct _GstVaapiContextInfo GstVaapiContextInfo;
|
|||
* Note: @rc_mode is only valid for VA context used for encoding,
|
||||
* i.e. if @entrypoint is set to @GST_VAAPI_ENTRYPOINT_SLICE_ENCODE.
|
||||
*/
|
||||
struct _GstVaapiContextInfo {
|
||||
GstVaapiProfile profile;
|
||||
GstVaapiEntrypoint entrypoint;
|
||||
GstVaapiRateControl rc_mode;
|
||||
guint width;
|
||||
guint height;
|
||||
guint ref_frames;
|
||||
struct _GstVaapiContextInfo
|
||||
{
|
||||
GstVaapiProfile profile;
|
||||
GstVaapiEntrypoint entrypoint;
|
||||
GstVaapiRateControl rc_mode;
|
||||
guint width;
|
||||
guint height;
|
||||
guint ref_frames;
|
||||
};
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GstVaapiContext *
|
||||
gst_vaapi_context_new(
|
||||
GstVaapiDisplay *display,
|
||||
GstVaapiProfile profile,
|
||||
GstVaapiEntrypoint entrypoint,
|
||||
guint width,
|
||||
guint height
|
||||
);
|
||||
gst_vaapi_context_new (GstVaapiDisplay * display, GstVaapiProfile profile,
|
||||
GstVaapiEntrypoint entrypoint, guint width, guint height);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GstVaapiContext *
|
||||
gst_vaapi_context_new_full(GstVaapiDisplay *display,
|
||||
const GstVaapiContextInfo *cip);
|
||||
gst_vaapi_context_new_full (GstVaapiDisplay * display,
|
||||
const GstVaapiContextInfo * cip);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gboolean
|
||||
gst_vaapi_context_reset(
|
||||
GstVaapiContext *context,
|
||||
GstVaapiProfile profile,
|
||||
GstVaapiEntrypoint entrypoint,
|
||||
guint width,
|
||||
guint height
|
||||
);
|
||||
gst_vaapi_context_reset (GstVaapiContext * context, GstVaapiProfile profile,
|
||||
GstVaapiEntrypoint entrypoint, guint width, guint height);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gboolean
|
||||
gst_vaapi_context_reset_full(GstVaapiContext *context,
|
||||
const GstVaapiContextInfo *new_cip);
|
||||
gst_vaapi_context_reset_full (GstVaapiContext * context,
|
||||
const GstVaapiContextInfo * new_cip);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GstVaapiID
|
||||
gst_vaapi_context_get_id(GstVaapiContext *context);
|
||||
gst_vaapi_context_get_id (GstVaapiContext * context);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GstVaapiProfile
|
||||
gst_vaapi_context_get_profile(GstVaapiContext *context);
|
||||
gst_vaapi_context_get_profile (GstVaapiContext * context);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gboolean
|
||||
gst_vaapi_context_set_profile(GstVaapiContext *context, GstVaapiProfile profile);
|
||||
gst_vaapi_context_set_profile (GstVaapiContext * context,
|
||||
GstVaapiProfile profile);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GstVaapiEntrypoint
|
||||
gst_vaapi_context_get_entrypoint(GstVaapiContext *context);
|
||||
gst_vaapi_context_get_entrypoint (GstVaapiContext * context);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gst_vaapi_context_get_size(
|
||||
GstVaapiContext *context,
|
||||
guint *pwidth,
|
||||
guint *pheight
|
||||
);
|
||||
gst_vaapi_context_get_size (GstVaapiContext * context,
|
||||
guint * pwidth, guint * pheight);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GstVaapiSurfaceProxy *
|
||||
gst_vaapi_context_get_surface_proxy(GstVaapiContext *context);
|
||||
gst_vaapi_context_get_surface_proxy (GstVaapiContext * context);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
guint
|
||||
gst_vaapi_context_get_surface_count(GstVaapiContext *context);
|
||||
gst_vaapi_context_get_surface_count (GstVaapiContext * context);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gboolean
|
||||
gst_vaapi_context_apply_composition(
|
||||
GstVaapiContext *context,
|
||||
GstVideoOverlayComposition *composition
|
||||
);
|
||||
gst_vaapi_context_apply_composition (GstVaapiContext * context,
|
||||
GstVideoOverlayComposition * composition);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gboolean
|
||||
gst_vaapi_context_get_attribute(GstVaapiContext *context,
|
||||
VAConfigAttribType type, guint *out_value_ptr);
|
||||
gst_vaapi_context_get_attribute (GstVaapiContext * context,
|
||||
VAConfigAttribType type, guint * out_value_ptr);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue