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:
+12
-8
@@ -31,7 +31,8 @@
|
||||
#include "object_heap.h"
|
||||
#include "sunxi_cedrus.h"
|
||||
|
||||
#define BUFFER(data, id) ((struct object_buffer *) object_heap_lookup(&(data)->buffer_heap, id))
|
||||
#define BUFFER(data, id) \
|
||||
((struct object_buffer *)object_heap_lookup(&(data)->buffer_heap, id))
|
||||
#define BUFFER_ID_OFFSET 0x08000000
|
||||
|
||||
struct object_buffer {
|
||||
@@ -46,18 +47,21 @@ struct object_buffer {
|
||||
};
|
||||
|
||||
VAStatus SunxiCedrusCreateBuffer(VADriverContextP context,
|
||||
VAContextID context_id, VABufferType type, unsigned int size,
|
||||
unsigned int count, void *data, VABufferID *buffer_id);
|
||||
VAContextID context_id, VABufferType type,
|
||||
unsigned int size, unsigned int count,
|
||||
void *data, VABufferID *buffer_id);
|
||||
void sunxi_cedrus_destroy_buffer(struct cedrus_data *driver_data,
|
||||
struct object_buffer *obj_buffer);
|
||||
struct object_buffer *obj_buffer);
|
||||
VAStatus SunxiCedrusDestroyBuffer(VADriverContextP context,
|
||||
VABufferID buffer_id);
|
||||
VABufferID buffer_id);
|
||||
VAStatus SunxiCedrusMapBuffer(VADriverContextP context, VABufferID buffer_id,
|
||||
void **data_map);
|
||||
void **data_map);
|
||||
VAStatus SunxiCedrusUnmapBuffer(VADriverContextP context, VABufferID buffer_id);
|
||||
VAStatus SunxiCedrusBufferSetNumElements(VADriverContextP context,
|
||||
VABufferID buffer_id, unsigned int count);
|
||||
VABufferID buffer_id,
|
||||
unsigned int count);
|
||||
VAStatus SunxiCedrusBufferInfo(VADriverContextP context, VABufferID buffer_id,
|
||||
VABufferType *type, unsigned int *size, unsigned int *count);
|
||||
VABufferType *type, unsigned int *size,
|
||||
unsigned int *count);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user