filter: re-indent all GstVaapiFilter related source code.

This commit is contained in:
Gwenole Beauchesne 2014-10-29 16:35:46 +01:00
parent c472403bb4
commit c537648c5b
2 changed files with 1008 additions and 1025 deletions

File diff suppressed because it is too large Load diff

View file

@ -44,15 +44,15 @@ typedef struct _GstVaapiFilterOpInfo GstVaapiFilterOpInfo;
* The set of operations that could be applied to the filter. * The set of operations that could be applied to the filter.
*/ */
typedef enum { typedef enum {
GST_VAAPI_FILTER_OP_FORMAT = 1, GST_VAAPI_FILTER_OP_FORMAT = 1,
GST_VAAPI_FILTER_OP_CROP, GST_VAAPI_FILTER_OP_CROP,
GST_VAAPI_FILTER_OP_DENOISE, GST_VAAPI_FILTER_OP_DENOISE,
GST_VAAPI_FILTER_OP_SHARPEN, GST_VAAPI_FILTER_OP_SHARPEN,
GST_VAAPI_FILTER_OP_HUE, GST_VAAPI_FILTER_OP_HUE,
GST_VAAPI_FILTER_OP_SATURATION, GST_VAAPI_FILTER_OP_SATURATION,
GST_VAAPI_FILTER_OP_BRIGHTNESS, GST_VAAPI_FILTER_OP_BRIGHTNESS,
GST_VAAPI_FILTER_OP_CONTRAST, GST_VAAPI_FILTER_OP_CONTRAST,
GST_VAAPI_FILTER_OP_DEINTERLACING, GST_VAAPI_FILTER_OP_DEINTERLACING,
} GstVaapiFilterOp; } GstVaapiFilterOp;
/** /**
@ -62,9 +62,10 @@ typedef enum {
* *
* A #GstVaapiFilterOp descriptor. * A #GstVaapiFilterOp descriptor.
*/ */
struct _GstVaapiFilterOpInfo { struct _GstVaapiFilterOpInfo
const GstVaapiFilterOp op; {
GParamSpec * const pspec; const GstVaapiFilterOp op;
GParamSpec *const pspec;
}; };
/** /**
@ -79,12 +80,12 @@ struct _GstVaapiFilterOpInfo {
* Video processing status for gst_vaapi_filter_process(). * Video processing status for gst_vaapi_filter_process().
*/ */
typedef enum { typedef enum {
GST_VAAPI_FILTER_STATUS_SUCCESS = 0, GST_VAAPI_FILTER_STATUS_SUCCESS = 0,
GST_VAAPI_FILTER_STATUS_ERROR_ALLOCATION_FAILED, GST_VAAPI_FILTER_STATUS_ERROR_ALLOCATION_FAILED,
GST_VAAPI_FILTER_STATUS_ERROR_OPERATION_FAILED, GST_VAAPI_FILTER_STATUS_ERROR_OPERATION_FAILED,
GST_VAAPI_FILTER_STATUS_ERROR_INVALID_PARAMETER, GST_VAAPI_FILTER_STATUS_ERROR_INVALID_PARAMETER,
GST_VAAPI_FILTER_STATUS_ERROR_UNSUPPORTED_OPERATION, GST_VAAPI_FILTER_STATUS_ERROR_UNSUPPORTED_OPERATION,
GST_VAAPI_FILTER_STATUS_ERROR_UNSUPPORTED_FORMAT, GST_VAAPI_FILTER_STATUS_ERROR_UNSUPPORTED_FORMAT,
} GstVaapiFilterStatus; } GstVaapiFilterStatus;
/** /**
@ -100,11 +101,11 @@ typedef enum {
* Deinterlacing algorithms. * Deinterlacing algorithms.
*/ */
typedef enum { typedef enum {
GST_VAAPI_DEINTERLACE_METHOD_NONE, GST_VAAPI_DEINTERLACE_METHOD_NONE,
GST_VAAPI_DEINTERLACE_METHOD_BOB, GST_VAAPI_DEINTERLACE_METHOD_BOB,
GST_VAAPI_DEINTERLACE_METHOD_WEAVE, GST_VAAPI_DEINTERLACE_METHOD_WEAVE,
GST_VAAPI_DEINTERLACE_METHOD_MOTION_ADAPTIVE, GST_VAAPI_DEINTERLACE_METHOD_MOTION_ADAPTIVE,
GST_VAAPI_DEINTERLACE_METHOD_MOTION_COMPENSATED, GST_VAAPI_DEINTERLACE_METHOD_MOTION_COMPENSATED,
} GstVaapiDeinterlaceMethod; } GstVaapiDeinterlaceMethod;
/** /**
@ -124,9 +125,9 @@ typedef enum {
* The set of gst_vaapi_filter_set_deinterlacing() flags. * The set of gst_vaapi_filter_set_deinterlacing() flags.
*/ */
typedef enum { typedef enum {
GST_VAAPI_DEINTERLACE_FLAG_TFF = 1 << 31, GST_VAAPI_DEINTERLACE_FLAG_TFF = 1 << 31,
GST_VAAPI_DEINTERLACE_FLAG_ONEFIELD = 1 << 30, GST_VAAPI_DEINTERLACE_FLAG_ONEFIELD = 1 << 30,
GST_VAAPI_DEINTERLACE_FLAG_TOPFIELD = 1 << 29, GST_VAAPI_DEINTERLACE_FLAG_TOPFIELD = 1 << 29,
} GstVaapiDeinterlaceFlags; } GstVaapiDeinterlaceFlags;
#define GST_VAAPI_TYPE_DEINTERLACE_METHOD \ #define GST_VAAPI_TYPE_DEINTERLACE_METHOD \
@ -136,80 +137,80 @@ typedef enum {
gst_vaapi_deinterlace_flags_get_type() gst_vaapi_deinterlace_flags_get_type()
GType GType
gst_vaapi_deinterlace_method_get_type(void) G_GNUC_CONST; gst_vaapi_deinterlace_method_get_type (void) G_GNUC_CONST;
GType GType
gst_vaapi_deinterlace_flags_get_type(void) G_GNUC_CONST; gst_vaapi_deinterlace_flags_get_type (void) G_GNUC_CONST;
GstVaapiFilter * GstVaapiFilter *
gst_vaapi_filter_new(GstVaapiDisplay *display); gst_vaapi_filter_new (GstVaapiDisplay * display);
GstVaapiFilter * GstVaapiFilter *
gst_vaapi_filter_ref(GstVaapiFilter *filter); gst_vaapi_filter_ref (GstVaapiFilter * filter);
void void
gst_vaapi_filter_unref(GstVaapiFilter *filter); gst_vaapi_filter_unref (GstVaapiFilter * filter);
void void
gst_vaapi_filter_replace(GstVaapiFilter **old_filter_ptr, gst_vaapi_filter_replace (GstVaapiFilter ** old_filter_ptr,
GstVaapiFilter *new_filter); GstVaapiFilter * new_filter);
GPtrArray * GPtrArray *
gst_vaapi_filter_get_operations(GstVaapiFilter *filter); gst_vaapi_filter_get_operations (GstVaapiFilter * filter);
gboolean gboolean
gst_vaapi_filter_has_operation(GstVaapiFilter *filter, GstVaapiFilterOp op); gst_vaapi_filter_has_operation (GstVaapiFilter * filter, GstVaapiFilterOp op);
gboolean gboolean
gst_vaapi_filter_use_operation(GstVaapiFilter *filter, GstVaapiFilterOp op); gst_vaapi_filter_use_operation (GstVaapiFilter * filter, GstVaapiFilterOp op);
gboolean gboolean
gst_vaapi_filter_set_operation(GstVaapiFilter *filter, GstVaapiFilterOp op, gst_vaapi_filter_set_operation (GstVaapiFilter * filter, GstVaapiFilterOp op,
const GValue *value); const GValue * value);
GstVaapiFilterStatus GstVaapiFilterStatus
gst_vaapi_filter_process(GstVaapiFilter *filter, GstVaapiSurface *src_surface, gst_vaapi_filter_process (GstVaapiFilter * filter,
GstVaapiSurface *dst_surface, guint flags); GstVaapiSurface * src_surface, GstVaapiSurface * dst_surface, guint flags);
GArray * GArray *
gst_vaapi_filter_get_formats(GstVaapiFilter *filter); gst_vaapi_filter_get_formats (GstVaapiFilter * filter);
gboolean gboolean
gst_vaapi_filter_set_format(GstVaapiFilter *filter, GstVideoFormat format); gst_vaapi_filter_set_format (GstVaapiFilter * filter, GstVideoFormat format);
gboolean gboolean
gst_vaapi_filter_set_cropping_rectangle(GstVaapiFilter *filter, gst_vaapi_filter_set_cropping_rectangle (GstVaapiFilter * filter,
const GstVaapiRectangle *rect); const GstVaapiRectangle * rect);
gboolean gboolean
gst_vaapi_filter_set_target_rectangle(GstVaapiFilter *filter, gst_vaapi_filter_set_target_rectangle (GstVaapiFilter * filter,
const GstVaapiRectangle *rect); const GstVaapiRectangle * rect);
gboolean gboolean
gst_vaapi_filter_set_denoising_level(GstVaapiFilter *filter, gfloat level); gst_vaapi_filter_set_denoising_level (GstVaapiFilter * filter, gfloat level);
gboolean gboolean
gst_vaapi_filter_set_sharpening_level(GstVaapiFilter *filter, gfloat level); gst_vaapi_filter_set_sharpening_level (GstVaapiFilter * filter, gfloat level);
gboolean gboolean
gst_vaapi_filter_set_hue(GstVaapiFilter *filter, gfloat value); gst_vaapi_filter_set_hue (GstVaapiFilter * filter, gfloat value);
gboolean gboolean
gst_vaapi_filter_set_saturation(GstVaapiFilter *filter, gfloat value); gst_vaapi_filter_set_saturation (GstVaapiFilter * filter, gfloat value);
gboolean gboolean
gst_vaapi_filter_set_brightness(GstVaapiFilter *filter, gfloat value); gst_vaapi_filter_set_brightness (GstVaapiFilter * filter, gfloat value);
gboolean gboolean
gst_vaapi_filter_set_contrast(GstVaapiFilter *filter, gfloat value); gst_vaapi_filter_set_contrast (GstVaapiFilter * filter, gfloat value);
gboolean gboolean
gst_vaapi_filter_set_deinterlacing(GstVaapiFilter *filter, gst_vaapi_filter_set_deinterlacing (GstVaapiFilter * filter,
GstVaapiDeinterlaceMethod method, guint flags); GstVaapiDeinterlaceMethod method, guint flags);
gboolean gboolean
gst_vaapi_filter_set_deinterlacing_references(GstVaapiFilter *filter, gst_vaapi_filter_set_deinterlacing_references (GstVaapiFilter * filter,
GstVaapiSurface **forward_references, guint num_forward_references, GstVaapiSurface ** forward_references, guint num_forward_references,
GstVaapiSurface **backward_references, guint num_backward_references); GstVaapiSurface ** backward_references, guint num_backward_references);
#endif /* GST_VAAPI_FILTER_H */ #endif /* GST_VAAPI_FILTER_H */