Instead of having to include linux/drm_fourcc.h everywhere a DRM FourCC is used in conjunction with PixelFormat include the header directly in pixelformats.h. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
21 lines
393 B
C++
21 lines
393 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2019, Google Inc.
|
|
*
|
|
* pixelformats.h - libcamera pixel formats
|
|
*/
|
|
#ifndef __LIBCAMERA_PIXEL_FORMATS_H__
|
|
#define __LIBCAMERA_PIXEL_FORMATS_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <linux/drm_fourcc.h>
|
|
|
|
namespace libcamera {
|
|
|
|
using PixelFormat = uint32_t;
|
|
|
|
} /* namespace libcamera */
|
|
|
|
#endif /* __LIBCAMERA_PIXEL_FORMATS_H__ */
|