diff options
author | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-07-16 21:04:18 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-07-17 09:32:19 +0200 |
commit | 23be0e66a35dff9430ee8875f5a55464c3c09162 (patch) | |
tree | 4efa7cd5aa8d2248b9345c38b5861375fa8ca984 /src | |
parent | 2208d57b8f3c28177cd7f3ef1af8058479f1498b (diff) | |
download | libva-v4l2-request-23be0e66a35dff9430ee8875f5a55464c3c09162.tar.gz libva-v4l2-request-23be0e66a35dff9430ee8875f5a55464c3c09162.tar.bz2 libva-v4l2-request-23be0e66a35dff9430ee8875f5a55464c3c09162.zip |
video: Make video_v4l2_format function private
The video_v4l2_format function is defined as inline in the header, but not
static. This will lead to a linker failure when you have multiple files
including the header.
Since it's not used anywhere but in video.c, move it there.
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/video.c | 5 | ||||
-rw-r--r-- | src/video.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/video.c b/src/video.c index 2b30e08..42a5821 100644 --- a/src/video.c +++ b/src/video.c @@ -34,6 +34,11 @@ #include "video.h" #include "utils.h" +static inline unsigned int video_v4l2_format(bool tiled_format) +{ + return tiled_format ? V4L2_PIX_FMT_MB32_NV12 : V4L2_PIX_FMT_NV12; +} + static struct video_format formats[] = { { .description = "NV12 YUV", diff --git a/src/video.h b/src/video.h index 021b869..e1cdcb8 100644 --- a/src/video.h +++ b/src/video.h @@ -37,11 +37,6 @@ struct video_format { unsigned int bpp; }; -inline unsigned int video_v4l2_format(bool tiled_format) -{ - return tiled_format ? V4L2_PIX_FMT_MB32_NV12 : V4L2_PIX_FMT_NV12; -} - struct video_format *video_format_find(bool tiled_format); #endif |