Pattern generator improvement

Testing gstreamer feature to provide only available patterns, and added many more patterns to choose from.
This commit is contained in:
Bruno Herbelin
2021-11-08 00:05:16 +01:00
parent d00f4cf715
commit 593363732a
6 changed files with 114 additions and 113 deletions

View File

@@ -5,10 +5,22 @@
#include "StreamSource.h"
typedef struct pattern_ {
std::string label;
std::string feature;
std::string pipeline;
bool animated;
bool available;
} pattern_descriptor;
class Pattern : public Stream
{
static std::vector<pattern_descriptor> patterns_;
public:
static std::vector<std::string> pattern_types;
static pattern_descriptor get(uint type);
static uint count();
Pattern();
void open( uint pattern, glm::ivec2 res);