forked from marfrit/libva-v4l2-request-fourier
tree: Run clang-format to conform to the kernel coding style
The coding style has been a bit erratic. Enforce the linux kernel coding style by reusing their .clang-format file, running clang-format on the source, and ignoring the few shortcomings that clang-format has at the moment (especially on aligning the define values). Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
+7
-5
@@ -30,7 +30,8 @@
|
||||
|
||||
#include "object_heap.h"
|
||||
|
||||
#define CONTEXT(data, id) ((struct object_context *) object_heap_lookup(&(data)->context_heap, id))
|
||||
#define CONTEXT(data, id) \
|
||||
((struct object_context *)object_heap_lookup(&(data)->context_heap, id))
|
||||
#define CONTEXT_ID_OFFSET 0x02000000
|
||||
|
||||
struct object_context {
|
||||
@@ -47,10 +48,11 @@ struct object_context {
|
||||
};
|
||||
|
||||
VAStatus SunxiCedrusCreateContext(VADriverContextP context,
|
||||
VAConfigID config_id, int picture_width, int picture_height, int flags,
|
||||
VASurfaceID *surfaces_ids, int surfaces_count,
|
||||
VAContextID *context_id);
|
||||
VAConfigID config_id, int picture_width,
|
||||
int picture_height, int flags,
|
||||
VASurfaceID *surfaces_ids, int surfaces_count,
|
||||
VAContextID *context_id);
|
||||
VAStatus SunxiCedrusDestroyContext(VADriverContextP context,
|
||||
VAContextID context_id);
|
||||
VAContextID context_id);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user