p26001-store-acs-soc-fw-app/video/v4l2/InputFormat.h
2026-09-28 21:33:04 +08:00

39 lines
967 B
C++

#ifndef D1EA41B1_FDDE_44D4_BDD5_2BA3EEBAC3B5
#define D1EA41B1_FDDE_44D4_BDD5_2BA3EEBAC3B5
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "Capture.h"
namespace Video
{
namespace V4L2
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
struct InputFormat
{
struct Resolution
{
uint32_t width;
uint32_t height;
uint32_t fps;
};
using Collection = std::list<InputFormat>;
uint32_t pixelFormat;
std::string description;
std::list<Resolution> resolutions;
public:
static void enumerate(const std::string& deviceName, Collection& c);
};
}
}
#endif