mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Pattern generator improvement
Testing gstreamer feature to provide only available patterns, and added many more patterns to choose from.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user