summaryrefslogtreecommitdiffstats
path: root/src/v4l2.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2018-07-16 22:02:38 +0200
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-07-17 10:12:15 +0200
commit5aeb07f8bf0717aa1a1fb8baaa5905ebb5cd000d (patch)
treec34e1903c39a0e95cad3e2f8efcb68f63bc222c3 /src/v4l2.h
parentf831082a0914597220ae1920ca1cd5e38b12c420 (diff)
downloadlibva-v4l2-request-5aeb07f8bf0717aa1a1fb8baaa5905ebb5cd000d.tar.gz
libva-v4l2-request-5aeb07f8bf0717aa1a1fb8baaa5905ebb5cd000d.tar.bz2
libva-v4l2-request-5aeb07f8bf0717aa1a1fb8baaa5905ebb5cd000d.zip
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>
Diffstat (limited to 'src/v4l2.h')
-rw-r--r--src/v4l2.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/v4l2.h b/src/v4l2.h
index 703d17a..5bd2537 100644
--- a/src/v4l2.h
+++ b/src/v4l2.h
@@ -30,23 +30,24 @@
#define SOURCE_SIZE_MAX (1024 * 1024)
bool v4l2_find_format(int video_fd, unsigned int type,
- unsigned int pixelformat);
+ unsigned int pixelformat);
int v4l2_set_format(int video_fd, unsigned int type, unsigned int pixelformat,
- unsigned int width, unsigned int height);
+ unsigned int width, unsigned int height);
int v4l2_get_format(int video_fd, unsigned int type, unsigned int *width,
- unsigned int *height, unsigned int *bytesperline, unsigned int *sizes,
- unsigned int *planes_count);
+ unsigned int *height, unsigned int *bytesperline,
+ unsigned int *sizes, unsigned int *planes_count);
int v4l2_create_buffers(int video_fd, unsigned int type,
- unsigned int buffers_count);
+ unsigned int buffers_count);
int v4l2_request_buffer(int video_fd, unsigned int type, unsigned int index,
- unsigned int *lengths, unsigned int *offsets,
- unsigned int buffers_count);
+ unsigned int *lengths, unsigned int *offsets,
+ unsigned int buffers_count);
int v4l2_queue_buffer(int video_fd, int request_fd, unsigned int type,
- unsigned int index, unsigned int size, unsigned int buffers_count);
+ unsigned int index, unsigned int size,
+ unsigned int buffers_count);
int v4l2_dequeue_buffer(int video_fd, int request_fd, unsigned int type,
- unsigned int index, unsigned int buffers_count);
+ unsigned int index, unsigned int buffers_count);
int v4l2_set_control(int video_fd, int request_fd, unsigned int id, void *data,
- unsigned int size);
+ unsigned int size);
int v4l2_set_stream(int video_fd, unsigned int type, bool enable);
#endif