summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2018-07-16 21:04:18 +0200
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-07-17 09:32:19 +0200
commit23be0e66a35dff9430ee8875f5a55464c3c09162 (patch)
tree4efa7cd5aa8d2248b9345c38b5861375fa8ca984 /src
parent2208d57b8f3c28177cd7f3ef1af8058479f1498b (diff)
downloadlibva-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.c5
-rw-r--r--src/video.h5
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