forked from marfrit/libva-v4l2-request-fourier
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>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user