整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
39
video/v4l2/InputFormat.h
Normal file
39
video/v4l2/InputFormat.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue