aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 05:18:21 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 07:20:49 -0300
commit16c8f03b7cd32dd040af1771411c9a906af94fe8 (patch)
tree1b93967d5701f69b84bfe06a8ed31501e8167b9e /src/v4l.h
parent3cada8d74f6a4e82538bc17923f27bd3e03f4e8e (diff)
Do some code cleanups
When building it with: CFLAGS="-Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Werror=return-type" Lots of warning appear. Clean up the most trivial ones. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/v4l.h')
-rw-r--r--src/v4l.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/v4l.h b/src/v4l.h
index c1180f5..337f6ca 100644
--- a/src/v4l.h
+++ b/src/v4l.h
@@ -44,13 +44,12 @@ struct buffer_start_len {
};
struct resolutions {
- int x, y;
+ unsigned int x, y;
};
typedef struct camera {
int dev;
- int width;
- int height;
+ unsigned int width, height;
int bpp;
int desk_depth;
CamoImageSize size;
@@ -59,9 +58,9 @@ typedef struct camera {
unsigned int pixformat;
int frame_number;
- int min_width, min_height, max_width, max_height;
+ unsigned int min_width, min_height, max_width, max_height;
- int n_res;
+ unsigned int n_res;
struct resolutions *res;
char *video_dev;
@@ -100,13 +99,13 @@ typedef struct camera {
void camera_cap (cam_t *);
void print_cam (cam_t *);
-void try_set_win_info(cam_t *cam, int *x, int *y);
+void try_set_win_info(cam_t *cam, unsigned int *x, unsigned int *y);
void set_win_info (cam_t *cam);
void get_pic_info (cam_t *);
void get_win_info (cam_t *);
void get_supported_resolutions(cam_t *cam);
void start_streaming(cam_t *cam);
-void capture_buffers(cam_t *cam, unsigned char *outbuf, int len);
+void capture_buffers(cam_t *cam, unsigned char *outbuf, unsigned int len);
void stop_streaming(cam_t *cam);
#endif /* !CAMORAMA_V4L_H */

Privacy Policy