projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidy up creation of analysis a bit.
[dcpomatic.git]
/
src
/
lib
/
filter.h
diff --git
a/src/lib/filter.h
b/src/lib/filter.h
index 20c55049c4367dad7fb8dae691e437078245fb34..205d92482b3aa16d3fd134476335e6b6c77336e6 100644
(file)
--- a/
src/lib/filter.h
+++ b/
src/lib/filter.h
@@
-33,7
+33,7
@@
class Filter
{
public:
class Filter
{
public:
- Filter (std::string, std::string, std::string, std::string);
+ Filter (std::string, std::string, std::string, std::string
, std::string
);
/** @return our id */
std::string id () const {
/** @return our id */
std::string id () const {
@@
-54,6
+54,10
@@
public:
std::string pp () const {
return _pp;
}
std::string pp () const {
return _pp;
}
+
+ std::string category () const {
+ return _category;
+ }
static std::vector<Filter const *> all ();
static Filter const * from_id (std::string);
static std::vector<Filter const *> all ();
static Filter const * from_id (std::string);
@@
-66,6
+70,7
@@
private:
std::string _id;
/** user-visible name */
std::string _name;
std::string _id;
/** user-visible name */
std::string _name;
+ std::string _category;
/** string for a FFmpeg video filter descriptor */
std::string _vf;
/** string for a FFmpeg post-processing descriptor */
/** string for a FFmpeg video filter descriptor */
std::string _vf;
/** string for a FFmpeg post-processing descriptor */
@@
-73,6
+78,7
@@
private:
/** all available filters */
static std::vector<Filter const *> _filters;
/** all available filters */
static std::vector<Filter const *> _filters;
+ static void maybe_add (std::string, std::string, std::string, std::string, std::string);
};
#endif
};
#endif